Skip to content

Commit 80de2e7

Browse files
committed
Added locale [skip ci]
1 parent 2690df9 commit 80de2e7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

e2e-playwright/src/helper/browsers/browserManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { LaunchOptions, chromium, firefox, webkit } from "@playwright/test";
22

33
const options: LaunchOptions = {
4-
headless: process.env.HEAD !== "true"
4+
headless: process.env.HEAD !== "true",
5+
args: ['--lang=en-US'],
56
}
67
export const invokeBrowser = () => {
78
const browserType = process.env.npm_config_BROWSER || "chrome";
@@ -17,4 +18,4 @@ export const invokeBrowser = () => {
1718
throw new Error("Please set the proper browser!")
1819
}
1920

20-
}
21+
}

e2e-playwright/src/hooks/hooks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ setDefaultTimeout(60 * 1000);
2828
Before(async function ({ pickle }) {
2929
const scenarioName = pickle.name + pickle.id
3030
context = await browser.newContext({
31-
recordVideo: { dir: 'test-results/videos/' }
31+
recordVideo: { dir: 'test-results/videos/' },
32+
locale: 'en-US'
3233
});
3334
await context.tracing.start({
3435
name: scenarioName,

0 commit comments

Comments
 (0)