use crash helper
This commit is contained in:
parent
6edd10df6d
commit
cc78c53093
|
|
@ -80,10 +80,10 @@ test('should be able to close context when page crashes', async ({ isAndroid, is
|
|||
await page.context().close();
|
||||
});
|
||||
|
||||
test('should not hang when page crashed', async ({ page }) => {
|
||||
test('should not hang when page crashed', async ({ page, crash }) => {
|
||||
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 => {});
|
||||
crash();
|
||||
await expect(expectPromise).rejects.toThrowError();
|
||||
});
|
||||
Loading…
Reference in a new issue