test: unflake "should display waitForLoadState even if did not wait for it"
This commit is contained in:
parent
5d21e3729c
commit
ec71246ccc
|
|
@ -894,6 +894,7 @@ test('should display waitForLoadState even if did not wait for it', async ({ run
|
||||||
const traceViewer = await runAndTrace(async () => {
|
const traceViewer = await runAndTrace(async () => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
await page.waitForLoadState('load');
|
await page.waitForLoadState('load');
|
||||||
|
await new Promise(f => setTimeout(f, 10));
|
||||||
await page.waitForLoadState('load');
|
await page.waitForLoadState('load');
|
||||||
});
|
});
|
||||||
await expect(traceViewer.actionTitles).toHaveText([
|
await expect(traceViewer.actionTitles).toHaveText([
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue