19 lines
576 B
TypeScript
19 lines
576 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
import { resolve } from "node:path";
|
|
|
|
export const HUB_HOME = resolve(import.meta.dirname, ".e2e-hub");
|
|
|
|
export default defineConfig({
|
|
testDir: "e2e",
|
|
workers: 1,
|
|
timeout: 60_000,
|
|
use: { baseURL: "http://127.0.0.1:8791", trace: "retain-on-failure", viewport: { width: 1600, height: 1000 } },
|
|
webServer: {
|
|
command: "npm run build && bash scripts/test-hub.sh",
|
|
url: "http://127.0.0.1:8791/app/",
|
|
reuseExistingServer: false,
|
|
timeout: 120_000,
|
|
env: { JIRA_HUB_HOME: HUB_HOME, PORT: "8791" },
|
|
},
|
|
});
|