vector-im-hydrogen-web/playwright.config.ts

22 lines
586 B
TypeScript
Raw Normal View History

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 = {
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;