mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-07 11:46:42 +03:00
test(firefox): add a failing slow test (#4216)
This commit is contained in:
parent
ea910a4ce2
commit
b3b46db560
@ -136,3 +136,23 @@ it('should wait for networkidle from the child frame', async ({page, server}) =>
|
|||||||
return page.goto(server.PREFIX + '/networkidle-frame.html', { waitUntil: 'networkidle' });
|
return page.goto(server.PREFIX + '/networkidle-frame.html', { waitUntil: 'networkidle' });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should wait for networkidle from the popup', (test, { browserName }) => {
|
||||||
|
test.fixme(browserName === 'firefox', 'Times out due to inactive layout / raf throttling');
|
||||||
|
}, async ({page, server}) => {
|
||||||
|
await page.goto(server.EMPTY_PAGE);
|
||||||
|
await page.setContent(`
|
||||||
|
<button id=box1 onclick="window.open('./popup/popup.html')">Button1</button>
|
||||||
|
<button id=box2 onclick="window.open('./popup/popup.html')">Button2</button>
|
||||||
|
<button id=box3 onclick="window.open('./popup/popup.html')">Button3</button>
|
||||||
|
<button id=box4 onclick="window.open('./popup/popup.html')">Button4</button>
|
||||||
|
<button id=box5 onclick="window.open('./popup/popup.html')">Button5</button>
|
||||||
|
`);
|
||||||
|
for (let i = 1; i < 6; ++i) {
|
||||||
|
const [popup] = await Promise.all([
|
||||||
|
page.waitForEvent('popup'),
|
||||||
|
page.click('#box' + i)
|
||||||
|
]);
|
||||||
|
await popup.waitForLoadState('networkidle');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user