Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: update expectation after webkit roll (#14718)
Yury Semikhatsky21d570f62ebc
diff --git a/tests/playwright-test/playwright.spec.ts b/tests/playwright-test/playwright.spec.tsindex 0915e5ced3..760bb16729 100644--- a/tests/playwright-test/playwright.spec.ts+++ b/tests/playwright-test/playwright.spec.ts@@ -192,7 +192,7 @@ test('should respect context options in various contexts', async ({ runInlineTesimport rimraf from 'rimraf';const { test } = pwt;- test.use({ locale: 'fr-CH' });+ test.use({ locale: 'fr-FR' });let context;test.beforeAll(async ({ browser }) => {@@ -206,19 +206,19 @@ test('should respect context options in various contexts', async ({ runInlineTestest('shared context', async ({}) => {const page = await context.newPage();expect(page.viewportSize()).toEqual({ width: 500, height: 500 });- expect(await page.evaluate(() => navigator.language)).toBe('fr-CH');+ expect(await page.evaluate(() => navigator.language)).toBe('fr-FR');});test('own context', async ({ browser }) => {const page = await browser.newPage();expect(page.viewportSize()).toEqual({ width: 500, height: 500 });- expect(await page.evaluate(() => navigator.language)).toBe('fr-CH');+ expect(await page.evaluate(() => navigator.language)).toBe('fr-FR');await page.close();});test('default context', async ({ page }) => {expect(page.viewportSize()).toEqual({ width: 500, height: 500 });- expect(await page.evaluate(() => navigator.language)).toBe('fr-CH');+ expect(await page.evaluate(() => navigator.language)).toBe('fr-FR');});test('persistent context', async ({ playwright, browserName }) => {@@ -227,7 +227,7 @@ test('should respect context options in various contexts', async ({ runInlineTesconst page = context.pages()[0];expect(page.viewportSize()).toEqual({ width: 500, height: 500 });- expect(await page.evaluate(() => navigator.language)).toBe('fr-CH');+ expect(await page.evaluate(() => navigator.language)).toBe('fr-FR');await context.close();rimraf.sync(dir);@@ -237,7 +237,7 @@ test('should respect context options in various contexts', async ({ runInlineTesconst browser = await playwright.webkit.launch();const page = await browser.newPage();- expect(await page.evaluate(() => navigator.language)).toBe('fr-CH');+ expect(await page.evaluate(() => navigator.language)).toBe('fr-FR');await browser.close();});