Skip to content

Commit 4d9b1bb

Browse files
committed
test: Add fr lang to tests
1 parent 490b5a8 commit 4d9b1bb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

playwright.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { defineConfig, devices } from "@playwright/test";
22

3+
const LANGUAGES = ["en", "de", "ru", "fr"] as const;
4+
const COLOR_SCHEMES = ["dark", "light"] as const;
5+
36
/**
4-
* See https://playwright.dev/docs/test-configuration.
7+
* @see https://playwright.dev/docs/test-configuration.
58
*/
69
export default defineConfig({
710
testDir: "./tests",
@@ -16,14 +19,11 @@ export default defineConfig({
1619
},
1720

1821
projects: [
19-
...["en", "de", "ru"]
20-
.map((locale) =>
21-
(["dark", "light"] as const).map((colorScheme) => ({
22-
name: `Chrome | ${locale} (${colorScheme})`,
23-
use: { ...devices["Desktop Chrome"], viewport: { width: 320, height: 548 }, colorScheme, locale, timezoneId: "Europe/Berlin" },
24-
fullyParallel: false,
25-
}))
26-
)
27-
.flat(),
22+
...LANGUAGES.map((locale) =>
23+
COLOR_SCHEMES.map((colorScheme) => ({
24+
name: `Chrome | ${locale} (${colorScheme})`,
25+
use: { ...devices["Desktop Chrome"], viewport: { width: 320, height: 548 }, colorScheme, locale, timezoneId: "Europe/Berlin" },
26+
}))
27+
).flat(),
2828
],
2929
});

0 commit comments

Comments
 (0)