Advance M7 workflows and release operations
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
import { defineConfig, devices } from "@playwright/test";
|
||||
import { execFileSync } from "node:child_process";
|
||||
|
||||
const chromePath = process.env.CHROME_PATH ?? "/home/mes123456/.local/bin/google-chrome";
|
||||
function resolveChromePath(): string | undefined {
|
||||
if (process.env.CHROME_PATH) return process.env.CHROME_PATH;
|
||||
try { return execFileSync("which", ["google-chrome"], { encoding: "utf8" }).trim() || undefined; }
|
||||
catch { return undefined; }
|
||||
}
|
||||
|
||||
const chromePath = resolveChromePath();
|
||||
const testPort = Number.parseInt(process.env.WEB_TEST_PORT ?? "5173", 10) || 5173;
|
||||
const testOrigin = `http://127.0.0.1:${testPort}`;
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "tests/e2e",
|
||||
testIgnore: ["archive-offline.spec.ts", "single-thread-unisolated.spec.ts"],
|
||||
timeout: 30_000,
|
||||
expect: { timeout: 10_000 },
|
||||
fullyParallel: false,
|
||||
@@ -15,7 +23,7 @@ export default defineConfig({
|
||||
...devices["Desktop Chrome"],
|
||||
headless: true,
|
||||
launchOptions: {
|
||||
executablePath: chromePath,
|
||||
...(chromePath ? { executablePath: chromePath } : {}),
|
||||
args: ["--no-sandbox", "--use-gl=swiftshader", "--enable-unsafe-swiftshader", "--enable-unsafe-webgpu", "--enable-dawn-features=allow_unsafe_apis", "--use-webgpu-adapter=swiftshader"],
|
||||
},
|
||||
screenshot: "only-on-failure",
|
||||
|
||||
Reference in New Issue
Block a user