Add Chromium-only Blender WebEngine parity work
This commit is contained in:
28
web/playwright.release.config.ts
Normal file
28
web/playwright.release.config.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { defineConfig, devices } from "@playwright/test";
|
||||
|
||||
const testPort = Number.parseInt(process.env.WEB_TEST_PORT ?? "5174", 10) || 5174;
|
||||
const testOrigin = `http://127.0.0.1:${testPort}`;
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "tests/e2e",
|
||||
testMatch: "cross-browser.spec.ts",
|
||||
timeout: 45_000,
|
||||
expect: { timeout: 15_000 },
|
||||
fullyParallel: false,
|
||||
reporter: [["list"]],
|
||||
projects: [
|
||||
{ name: "chromium", use: { ...devices["Desktop Chrome"], launchOptions: { executablePath: process.env.CHROME_PATH ?? "/home/mes123456/.local/bin/google-chrome", args: ["--no-sandbox", "--use-gl=swiftshader", "--enable-unsafe-swiftshader"] } } },
|
||||
],
|
||||
use: {
|
||||
baseURL: testOrigin,
|
||||
headless: true,
|
||||
screenshot: "only-on-failure",
|
||||
trace: "retain-on-failure",
|
||||
},
|
||||
webServer: {
|
||||
command: `npm run dev -- --host 127.0.0.1 --port ${testPort} --strictPort`,
|
||||
url: testOrigin,
|
||||
reuseExistingServer: false,
|
||||
timeout: 30_000,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user