ghostguild-org/playwright.config.js
Jennie Robinson Faber fb25e72215
Some checks failed
Test / vitest (push) Successful in 10m36s
Test / playwright (push) Failing after 9m23s
Test / visual (push) Failing after 9m13s
Test / Notify on failure (push) Successful in 2s
Huge bunch of UI/UX improvements and tweaks!
2026-04-06 16:17:12 +01:00

34 lines
848 B
JavaScript

import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
outputDir: "e2e/test-results",
snapshotDir: "e2e/__screenshots__",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: "html",
timeout: 60000,
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
navigationTimeout: 45000,
},
projects: [
{
name: "chromium",
use: { browserName: "chromium" },
},
],
webServer: {
command: "npm run build && NODE_ENV=development npm run preview",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
env: {
NUXT_PUBLIC_COMING_SOON: "false",
NODE_ENV: "development",
ALLOW_DEV_TEST_ENDPOINTS: "true",
},
},
});