Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: change locale for number format tests (#40276)

Holger Benl3f60e53a97fb
diff --git a/tests/library/browsercontext-locale.spec.ts b/tests/library/browsercontext-locale.spec.ts
index ea0dbb0662..787dcb2ff5 100644
--- a/tests/library/browsercontext-locale.spec.ts
+++ b/tests/library/browsercontext-locale.spec.ts
@@ -44,7 +44,7 @@ it('should format number', async ({ browser, server }) => {
await context.close();
}
{
- const context = await browser.newContext({ locale: 'fr-CH' });
+ const context = await browser.newContext({ locale: 'fr-FR' });
const page = await context.newPage();
await page.goto(server.EMPTY_PAGE);
expect(await page.evaluate(() => (1000000.50).toLocaleString().replace(/\s/g, ' '))).toBe('1 000 000,5');
@@ -72,7 +72,7 @@ it('should format date', async ({ browser, server, browserName }) => {
});
it('should format number in popups', async ({ browser, server }) => {
- const context = await browser.newContext({ locale: 'fr-CH' });
+ const context = await browser.newContext({ locale: 'fr-FR' });
const page = await context.newPage();
await page.goto(server.EMPTY_PAGE);