Spaces:
Running
Running
File size: 849 Bytes
d3c7f96 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import { defineConfig } from "@playwright/test";
import config from "./argo.config.mjs";
const scale = Math.max(1, Math.round(config.video?.deviceScaleFactor ?? 1));
const width = config.video?.width ?? 1920;
const height = config.video?.height ?? 1080;
export default defineConfig({
preserveOutput: "always",
projects: [
{
name: "demos",
testDir: "demos",
testMatch: "**/*.demo.ts",
use: {
browserName: "chromium",
channel: "chrome",
baseURL:
process.env.BASE_URL || config.baseURL || "http://localhost:5173",
viewport: { width, height },
deviceScaleFactor: scale,
launchOptions: config.video?.launchOptions ?? {},
video: {
mode: "on",
size: { width: width * scale, height: height * scale },
},
},
},
],
});
|