2022-10-25 13:32:17 +02:00
|
|
|
import type { PlaywrightTestConfig } from "@playwright/test";
|
2022-10-18 20:14:58 +02:00
|
|
|
|
|
|
|
const BASE_URL = process.env["BASE_URL"] ?? "http://127.0.0.1:3000";
|
|
|
|
|
|
|
|
const config: PlaywrightTestConfig = {
|
2022-10-25 13:32:17 +02:00
|
|
|
use: {
|
|
|
|
headless: false,
|
|
|
|
viewport: { width: 1280, height: 720 },
|
|
|
|
ignoreHTTPSErrors: true,
|
|
|
|
video: "on-first-retry",
|
|
|
|
baseURL: BASE_URL,
|
|
|
|
},
|
|
|
|
testDir: "./playwright/tests",
|
|
|
|
globalSetup: require.resolve("./playwright/global-setup"),
|
|
|
|
webServer: {
|
|
|
|
command: "yarn start",
|
|
|
|
url: `${BASE_URL}/#/login`,
|
|
|
|
},
|
2022-10-25 17:48:56 +02:00
|
|
|
workers: 1
|
2022-10-18 20:14:58 +02:00
|
|
|
};
|
|
|
|
export default config;
|