test: increase page-event-crash timeout

This commit is contained in:
Max Schmitt 2024-12-31 09:43:00 +01:00
parent 940230d43a
commit 213b62d945

View file

@ -32,6 +32,10 @@ const test = testBase.extend<{ crash: () => void }, { dummy: string }>({
dummy: ['', { scope: 'worker' }], 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 }) => { test('should emit crash event when page crashes', async ({ page, crash }) => {
await page.setContent(`<div>This page should crash</div>`); await page.setContent(`<div>This page should crash</div>`);
crash(); crash();