From 213b62d945e6f2060b6e4069a66377dcc713fb67 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 31 Dec 2024 09:43:00 +0100 Subject: [PATCH] test: increase page-event-crash timeout --- tests/library/page-event-crash.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/library/page-event-crash.spec.ts b/tests/library/page-event-crash.spec.ts index 1bf9c396dd..d185fa5a19 100644 --- a/tests/library/page-event-crash.spec.ts +++ b/tests/library/page-event-crash.spec.ts @@ -32,6 +32,10 @@ const test = testBase.extend<{ crash: () => void }, { dummy: string }>({ dummy: ['', { scope: 'worker' }], }); +test.beforeEach(({ platform, browserName }) => { + test.slow(platform === 'linux' && browserName === 'webkit', 'WebKit/Linux tests are consistently slower on some Linux environments. Most likely WebContent process is not getting terminated properly and is causing the slowdown.'); +}); + test('should emit crash event when page crashes', async ({ page, crash }) => { await page.setContent(`
This page should crash
`); crash();