test: fix link navigation test so that it passes in Chromium (#1448)
This commit is contained in:
parent
16c7a5bd5c
commit
4320d4ba83
|
|
@ -20,7 +20,7 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WE
|
||||||
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;
|
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;
|
||||||
|
|
||||||
describe('Link navigation', function() {
|
describe('Link navigation', function() {
|
||||||
it.fail(CHROMIUM)('should inherit user agent from browser context', async function({browser, server}) {
|
it('should inherit user agent from browser context', async function({browser, server}) {
|
||||||
const context = await browser.newContext({
|
const context = await browser.newContext({
|
||||||
userAgent: 'hey'
|
userAgent: 'hey'
|
||||||
});
|
});
|
||||||
|
|
@ -32,6 +32,7 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WE
|
||||||
context.waitForEvent('page'),
|
context.waitForEvent('page'),
|
||||||
page.click('a'),
|
page.click('a'),
|
||||||
]);
|
]);
|
||||||
|
await popup.waitForLoadState({waitUntil: 'domcontentloaded'})
|
||||||
const userAgent = await popup.evaluate(() => window.initialUserAgent);
|
const userAgent = await popup.evaluate(() => window.initialUserAgent);
|
||||||
const request = await requestPromise;
|
const request = await requestPromise;
|
||||||
await context.close();
|
await context.close();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue