22 lines
680 B
TypeScript
22 lines
680 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
export default defineConfig({
|
|
testDir: ".",
|
|
testMatch: "replay.spec.ts",
|
|
workers: 1,
|
|
timeout: 60000,
|
|
outputDir: process.env["PROFILE_REVEAL"]
|
|
? "../../reports/image-reveal-demo/profile-recordings"
|
|
: "../../reports/image-reveal-demo/replay-recordings",
|
|
use: {
|
|
launchOptions: {
|
|
headless: false,
|
|
args: ["--enable-unsafe-webgpu", "--use-angle=metal"],
|
|
},
|
|
baseURL: "http://127.0.0.1:3000",
|
|
viewport: { width: 540, height: 900 },
|
|
reducedMotion: "no-preference",
|
|
video: process.env["PROFILE_REVEAL"]
|
|
? "off"
|
|
: { mode: "on", size: { width: 540, height: 900 } },
|
|
},
|
|
});
|