Skip to content

Commit

Permalink
test: fix link navigation test so that it passes in Chromium (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Mar 20, 2020
1 parent 16c7a5b commit 4320d4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/popup.spec.js
Expand Up @@ -20,7 +20,7 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WE
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;

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({
userAgent: 'hey'
});
Expand All @@ -32,6 +32,7 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WE
context.waitForEvent('page'),
page.click('a'),
]);
await popup.waitForLoadState({waitUntil: 'domcontentloaded'})
const userAgent = await popup.evaluate(() => window.initialUserAgent);
const request = await requestPromise;
await context.close();
Expand Down

0 comments on commit 4320d4b

Please sign in to comment.