2022-10-25 17:02:17 +05:30
|
|
|
import type { PlaywrightTestConfig } from "@playwright/test";
|
2022-10-18 23:44:58 +05:30
|
|
|
|
|
|
|
const BASE_URL = process.env["BASE_URL"] ?? "http://127.0.0.1:3000";
|
|
|
|
|
|
|
|
const config: PlaywrightTestConfig = {
|
2022-10-25 17:02:17 +05:30
|
|
|
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 21:18:56 +05:30
|
|
|
workers: 1
|
2022-10-18 23:44:58 +05:30
|
|
|
};
|
|
|
|
export default config;
|