CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
playwright.config.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| a014def | 1 | import { defineConfig, devices } from "@playwright/test"; |
| 2 | ||
| 3 | /** | |
| 4 | * Playwright E2E configuration. | |
| 5 | * | |
| 6 | * Targets a locally running Gluecron server at http://localhost:3000. | |
| 7 | * Run the server first with `bun dev` or `bun start`, then: `bun run e2e` | |
| 8 | */ | |
| 9 | export default defineConfig({ | |
| 10 | testDir: "./", | |
| 11 | testMatch: "**/*.spec.ts", | |
| 12 | ||
| 13 | /* Maximum time one test can run. */ | |
| 14 | timeout: 30_000, | |
| 15 | ||
| 16 | /* Fail the build on CI if you accidentally left `test.only`. */ | |
| 17 | forbidOnly: !!process.env.CI, | |
| 18 | ||
| 19 | /* No retries in CI — flaky tests should be fixed, not hidden. */ | |
| 20 | retries: process.env.CI ? 0 : 0, | |
| 21 | ||
| 22 | /* Run tests serially by default to avoid auth/DB contention. */ | |
| 23 | workers: process.env.CI ? 1 : 1, | |
| 24 | ||
| 25 | /* Reporter */ | |
| 26 | reporter: process.env.CI | |
| 27 | ? [["github"], ["list"]] | |
| 28 | : [["list"], ["html", { open: "never" }]], | |
| 29 | ||
| 30 | use: { | |
| 31 | baseURL: process.env.E2E_BASE_URL ?? "http://localhost:3000", | |
| 32 | /* Collect trace on first retry to ease debugging. */ | |
| 33 | trace: "on-first-retry", | |
| 34 | /* Give each navigation a generous budget. */ | |
| 35 | navigationTimeout: 15_000, | |
| 36 | actionTimeout: 10_000, | |
| 37 | }, | |
| 38 | ||
| 39 | projects: [ | |
| 40 | { | |
| 41 | name: "chromium", | |
| 42 | use: { ...devices["Desktop Chrome"] }, | |
| 43 | }, | |
| 44 | ], | |
| 45 | }); |