- web: playwright.config.ts + e2e/navigation.spec.ts (7 navigation tests, scaffolded) - web: exclude e2e/ from tsconfig (playwright not yet installed as dep) - mobile: notes-store.test.ts (7 tests: hydrate, openNote, saveDraft, updateNote) - mobile: workspace-store.test.ts (5 tests: hydrate, preserve/reset active, set/clear) - mobile: inbox-store.test.ts (5 tests: hydrate, approve, reject, unknown id guards) - mobile: auth-store.test.ts (6 tests: bootstrap, signIn, signOut, failure paths) - Total: 76 backend, 14 web, 23 mobile = 113 tests
21 lines
483 B
TypeScript
21 lines
483 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: "html",
|
|
use: {
|
|
baseURL: "http://localhost:3000",
|
|
trace: "on-first-retry",
|
|
},
|
|
webServer: {
|
|
command: "npm run dev",
|
|
url: "http://localhost:3000",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 30_000,
|
|
},
|
|
});
|