repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

test(e2e): cover chromium and firefox

7e6d750b84d1cc7f2234b0e89a6db116e8b925a6

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

extensions/diff-review/playwright.config.ts

Modified
5 5 testMatch: "*.spec.ts",
6 6 timeout: 30_000,
7 7 retries: 1,
8 + projects: [
9 + { name: "chromium", use: { browserName: "chromium" } },
10 + { name: "firefox", use: { browserName: "firefox" } },
11 + ],
8 12 use: {
9 13 headless: true,
10 - browserName: "firefox",

extensions/ui/playwright.config.ts

Modified
1 -import { existsSync } from "node:fs";
2 1 import { defineConfig } from "@playwright/test";
4 -const chromePath = "C:/Program Files/Google/Chrome/Application/chrome.exe";
6 3 export default defineConfig({
7 4 testDir: "./__e2e__",
8 5 timeout: 30_000,
9 6 expect: { timeout: 5_000 },
7 + projects: [
8 + { name: "chromium", use: { browserName: "chromium" } },
9 + { name: "firefox", use: { browserName: "firefox" } },
10 + ],
10 11 use: {
11 12 headless: true,
12 13 viewport: { width: 900, height: 700 },
13 - launchOptions: existsSync(chromePath) ? { executablePath: chromePath } : {},
15 - projects: [{ name: "chromium", use: { browserName: "chromium" } }],