Add Chromium-only Blender WebEngine parity work

This commit is contained in:
mes123456
2026-08-12 04:47:48 -04:00
commit 9fd26010f6
18225 changed files with 11622124 additions and 0 deletions

30
web/playwright.config.ts Normal file
View File

@@ -0,0 +1,30 @@
import { defineConfig, devices } from "@playwright/test";
const chromePath = process.env.CHROME_PATH ?? "/home/mes123456/.local/bin/google-chrome";
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",
timeout: 30_000,
expect: { timeout: 10_000 },
fullyParallel: false,
reporter: [["list"]],
use: {
baseURL: testOrigin,
...devices["Desktop Chrome"],
headless: true,
launchOptions: {
executablePath: chromePath,
args: ["--no-sandbox", "--use-gl=swiftshader", "--enable-unsafe-swiftshader"],
},
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,
},
});