turn an assertion as retryable with expect.poll

This commit is contained in:
Valere
2026-04-22 18:06:24 +02:00
parent 1b9682869a
commit 5c4d6d0317
6 changed files with 62 additions and 71 deletions
+1 -9
View File
@@ -72,15 +72,7 @@ modePairs.forEach(([rtcMode1, rtcMode2]) => {
const videoElements = await frame.locator("video").all();
expect(videoElements.length).toBe(2);
const blockDisplayCount = await frame
.locator("video")
.evaluateAll(
(videos: Element[]) =>
videos.filter(
(v: Element) => window.getComputedStyle(v).display === "block",
).length,
);
expect(blockDisplayCount).toBe(2);
await TestHelpers.expectVisibleVideoCount(frame, 2);
}
// await florian.page.pause();