23 lines
549 B
JavaScript
23 lines
549 B
JavaScript
const { defineConfig } = require("./node_modules/@playwright/test");
|
|
|
|
const isLiveStack = process.env.PLAYWRIGHT_LIVE_STACK === "1";
|
|
const baseURL = process.env.PLAYWRIGHT_BASE_URL || "http://127.0.0.1:4173";
|
|
|
|
module.exports = defineConfig({
|
|
testDir: "./tests/ui",
|
|
timeout: 30000,
|
|
retries: 0,
|
|
use: {
|
|
baseURL,
|
|
headless: true,
|
|
},
|
|
webServer: isLiveStack
|
|
? undefined
|
|
: {
|
|
command: "node tests/ui/server.js",
|
|
url: "http://127.0.0.1:4173",
|
|
reuseExistingServer: true,
|
|
timeout: 30000,
|
|
},
|
|
});
|