Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: unflake toBeInViewport test (#36527)

Max Schmitted9b6dd346b7
diff --git a/tests/page/expect-misc.spec.ts b/tests/page/expect-misc.spec.ts
index 37cbdb1c0c..497af07484 100644
--- a/tests/page/expect-misc.spec.ts
+++ b/tests/page/expect-misc.spec.ts
@@ -464,7 +464,7 @@ test.describe('toBeInViewport', () => {
test('should have good stack', async ({ page }) => {
let error;
try {
- await expect(page.locator('body')).not.toBeInViewport({ timeout: 100 });
+ await expect(page.locator('body')).not.toBeInViewport({ timeout: 500 });
} catch (e) {
error = e;
}