mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 04:33:11 +00:00
32 lines
1,016 B
TypeScript
32 lines
1,016 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
testIgnore: "**/*.visual.spec.ts",
|
|
fullyParallel: true,
|
|
forbidOnly: Boolean(process.env.CI),
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 2 : undefined,
|
|
reporter: process.env.CI ? "github" : "list",
|
|
use: {
|
|
// Port 4173 isolates Playwright from the app's normal port 3000 server.
|
|
baseURL: "http://localhost:4173",
|
|
// Pin the browser timezone to UTC so date-to-ISO assertions in the default
|
|
// create flow are deterministic regardless of host locale. DST-transition
|
|
// scenarios override this with their own non-UTC context.
|
|
timezoneId: "UTC",
|
|
trace: "on-first-retry",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
webServer: {
|
|
command: "npm run dev -- --port 4173 --strictPort",
|
|
url: "http://localhost:4173",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120_000,
|
|
},
|
|
});
|