test: unflake "should display waitForLoadState even if did not wait for it"

This commit is contained in:
Dmitry Gozman 2024-05-06 11:00:11 -07:00
parent 5d21e3729c
commit ec71246ccc

View file

@ -894,6 +894,7 @@ test('should display waitForLoadState even if did not wait for it', async ({ run
const traceViewer = await runAndTrace(async () => {
await page.goto(server.EMPTY_PAGE);
await page.waitForLoadState('load');
await new Promise(f => setTimeout(f, 10));
await page.waitForLoadState('load');
});
await expect(traceViewer.actionTitles).toHaveText([