test: increase page-event-crash timeout (#34178)

This commit is contained in:
Max Schmitt 2025-01-02 16:04:51 +01:00 committed by GitHub
parent acdd666d95
commit 175f05cafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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(`<div>This page should crash</div>`);
crash();