turn an assertion as retryable with expect.poll
This commit is contained in:
1 parent
1b9682869a
commit
5c4d6d0317
6 files changed
+62
-71
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user