Fix end-to-end tests

This commit is contained in:
Robin
2026-07-08 16:20:57 +02:00
parent 9f681b87a0
commit 4b50a191ba
2 changed files with 8 additions and 21 deletions

View File

@@ -385,11 +385,9 @@ export class TestHelpers {
frame: FrameLocator,
count: number,
): Promise<void> {
await expect(
frame
.getByRole("img")
.and(frame.locator("video"))
.filter({ visible: true }),
).toHaveCount(count, { timeout: 10000 });
await expect(frame.locator("video").filter({ visible: true })).toHaveCount(
count,
{ timeout: 10000 },
);
}
}