Skip to content

Commit

Permalink
Add class
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmooney committed Feb 12, 2024
1 parent 845c58a commit 7e20ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/src/streams/Media.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class MediaStreamView extends DOMWidgetView {
this.video.controls = true;
this.pWidget.addClass("jupyter-widgets");
this.pWidget.addClass("widget-image");
this.pWidget.addClass("video-stream");

this.initPromise = this.model.captureStream();

Expand Down
2 changes: 1 addition & 1 deletion tests/test_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ def kernel_code():
display(videoStream)

ipywidgets_runner(kernel_code)
vid = page_session.locator(".widget-image").wait_for()
vid = page_session.locator(".video-stream").wait_for()
playwright.sync_api.expect(vid).to_be_visible()

0 comments on commit 7e20ef0

Please sign in to comment.