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: document broken firefox worker locale (#38920)
Simon Knott480111742424
diff --git a/tests/library/browsercontext-locale.spec.ts b/tests/library/browsercontext-locale.spec.tsindex b89cfaf866..231961785e 100644--- a/tests/library/browsercontext-locale.spec.ts+++ b/tests/library/browsercontext-locale.spec.ts@@ -163,15 +163,16 @@ it('should not change default locale in another context', async ({ browser }) =>}});-it('should format number in workers', async ({ browser, server }) => {- const context = await browser.newContext({ locale: 'es-MX' });+it('should format number in workers', async ({ browser, browserName, server }) => {+ it.fail(browserName === 'firefox', 'https://github.com/microsoft/playwright/issues/38919');+ const context = await browser.newContext({ locale: 'ru-RU' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);const [worker] = await Promise.all([page.waitForEvent('worker'),page.evaluate(() => new Worker(URL.createObjectURL(new Blob(['console.log(1)'], { type: 'application/javascript' })))),]);- expect(await worker.evaluate(() => (10000.20).toLocaleString())).toBe('10,000.2');+ expect(await worker.evaluate(() => (10000.20).toLocaleString())).toBe('10\u00A0000,2');await context.close();});