mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
test: disable firefox popup tests that rely on waitForLoadState (#768)
We have a race between opening a popup and calling waitForLoadState that sometimes causes waitForLoadState to timeout.
This commit is contained in:
parent
13445962f6
commit
ca49d50b9c
@ -139,7 +139,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF
|
||||
expect(await page.evaluate(() => !!window.opener)).toBe(false);
|
||||
expect(await popup.evaluate(() => !!window.opener)).toBe(false);
|
||||
});
|
||||
it('should work with clicking target=_blank', async({page, server}) => {
|
||||
it.skip(FFOX)('should work with clicking target=_blank', async({page, server}) => {
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.setContent('<a target=_blank rel="opener" href="/one-style.html">yo</a>');
|
||||
const [popup] = await Promise.all([
|
||||
@ -162,7 +162,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF
|
||||
// FFOX is slow enough to trigger this. We should do something about popups api.
|
||||
expect(await popup.evaluate(() => !!window.opener)).toBe(false);
|
||||
});
|
||||
it('should work with clicking target=_blank and rel=noopener', async({page, server}) => {
|
||||
it.skip(FFOX)('should work with clicking target=_blank and rel=noopener', async({page, server}) => {
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');
|
||||
const [popup] = await Promise.all([
|
||||
|
Loading…
Reference in New Issue
Block a user