nxtgauge-frontend-solid/playwright.config.ts
Ashwin Kumar Sivakumar 2cb4d52fb3 fix: Storybook, Playwright runtime, accessibility color contrast, test routes
- Fix Storybook path alias resolution for ~ imports
- Fix Playwright runtime error by using production build
- Fix accessibility color contrast issues (WCAG AA compliant)
- Fix test route from /jobs to /professionals
- Update chip-btn.active and .btn.primary colors to #a33500
2026-07-06 22:02:39 +05:30

32 lines
No EOL
847 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 4 : undefined,
reporter: [["list"], ["html", { outputFolder: "./playwright-reports/html" }]],
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
{
name: "chromium-mobile",
use: { ...devices["Pixel 5"] },
},
],
webServer: {
command: "npm run build && node .output/server/index.mjs",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
timeout: 180 * 1000,
},
});