Skip to content

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

chore: bump timeouts in ui mode tests (#22526)

Pavel Feldmand9a7aa584c1c
diff --git a/tests/playwright-test/ui-mode-trace.spec.ts b/tests/playwright-test/ui-mode-trace.spec.ts
index 042591a781..ed36d41378 100644
--- a/tests/playwright-test/ui-mode-trace.spec.ts
+++ b/tests/playwright-test/ui-mode-trace.spec.ts
@@ -42,7 +42,7 @@ test('should merge trace events', async ({ runUITest, server }) => {
/expect\.toBe[\d.]+m?s/,
/locator\.clickgetByRole\('button'\)[\d.]+m?s/,
/expect\.toBe[\d.]+m?s/,
- ]);
+ ], { timeout: 15000 });
});
test('should locate sync assertions in source', async ({ runUITest, server }) => {
@@ -60,7 +60,7 @@ test('should locate sync assertions in source', async ({ runUITest, server }) =>
await expect(
page.locator('.CodeMirror .source-line-running'),
'check source tab',
- ).toHaveText('4 expect(1).toBe(1);');
+ ).toHaveText('4 expect(1).toBe(1);', { timeout: 15000 });
});
test('should show snapshots for sync assertions', async ({ runUITest, server }) => {