From 8b361ee268f925f5db418fec80b665d371a54b44 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 19 Feb 2020 18:27:16 -0800 Subject: [PATCH] fix test --- test/emulation.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/emulation.spec.js b/test/emulation.spec.js index 5a0f6fc478..3f9140999d 100644 --- a/test/emulation.spec.js +++ b/test/emulation.spec.js @@ -256,7 +256,7 @@ module.exports.describe = function({testRunner, expect, playwright, headless, FF describe.skip(CHROMIUM || FFOX)('BrowserContext({locale})', function() { it('should affect accept-language header', async({browser, server}) => { const context = await browser.newContext({ locale: 'fr-CH' }); - const page = await browser.newPage(); + const page = await context.newPage(); const [request] = await Promise.all([ server.waitForRequest('/empty.html'), page.goto(server.EMPTY_PAGE),