add repro

This commit is contained in:
Simon Knott 2024-07-30 17:58:20 +02:00
parent 99724d0322
commit 3a02389cb2
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -79,3 +79,11 @@ test('should be able to close context when page crashes', async ({ isAndroid, is
await page.waitForEvent('crash');
await page.context().close();
});
test('should not hang when page crashed', async ({ page }) => {
test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31907' });
const expectPromise = expect(page.getByText('child')).toBeVisible();
await page.goto('chrome://crash').catch(e => {});
await expectPromise;
});