30 lines
823 B
TypeScript
30 lines
823 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./tests/visual",
|
|
testMatch: "memento-legacy-parity.visual.spec.ts",
|
|
outputDir: "./artifacts/tests/visual-legacy/results",
|
|
reporter: [["list"]],
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
baseURL: "http://127.0.0.1:4174",
|
|
colorScheme: "light",
|
|
locale: "en-US",
|
|
trace: "retain-on-failure",
|
|
},
|
|
webServer: [
|
|
{
|
|
command:
|
|
"corepack pnpm build && corepack pnpm preview --host 127.0.0.1 --port 4174",
|
|
url: "http://127.0.0.1:4174",
|
|
reuseExistingServer: false,
|
|
},
|
|
{
|
|
command: "node scripts/serve-memento-legacy-visual.ts 4195",
|
|
url: "http://127.0.0.1:4195",
|
|
reuseExistingServer: false,
|
|
},
|
|
],
|
|
projects: [{ name: "chromium-legacy-parity" }],
|
|
});
|