mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
22 lines
586 B
TypeScript
22 lines
586 B
TypeScript
import type { PlaywrightTestConfig } from "@playwright/test";
|
|
|
|
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`,
|
|
},
|
|
workers: 1
|
|
};
|
|
export default config;
|