Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/studio/tests/e2e/preview-video-regression.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async function nativeOnlyHandoff() {
await host.frame.evaluate(() => window.__hf.setPausedVideoFrameProvider(null));
await seek(host, 0);
await host.frame.waitForFunction(
() => !document.querySelector("[data-hf-preview-video-canvas]"),
() => !document.querySelector("canvas[data-hf-preview-video-canvas]"),
);
const baseline = await picture(host, "native-only-paused");
assert.equal(baseline.scene, "A");
Expand Down Expand Up @@ -312,7 +312,7 @@ async function delayedNativeRecovery() {
const deliveredAt = performance.now();
await release();
await host.frame.waitForFunction(
() => !document.querySelector("[data-hf-preview-video-canvas]"),
() => !document.querySelector("canvas[data-hf-preview-video-canvas]"),
{ timeout: 5000 },
);
const recovery = await host.frame.evaluate(() => ({
Expand Down Expand Up @@ -423,7 +423,7 @@ try {
assert.equal(await host.frame.evaluate(() => window.__player.isPlaying()), false);
await play(host);
await host.frame.waitForFunction(
() => document.querySelectorAll("[data-hf-preview-video-canvas]").length === 0,
() => document.querySelectorAll("canvas[data-hf-preview-video-canvas]").length === 0,
);
await collectGarbage(host);
assert.deepEqual(errors, [], "Browser logged an error or unclosed VideoSample");
Expand Down
Loading