feat(09-03): configure Playwright for E2E testing
- Set testDir to './tests/e2e' for E2E tests - Configure single worker for database safety - Add desktop and mobile viewports (Desktop Chrome, Pixel 5) - Enable screenshots on failure, disable video - Add webServer to auto-build and preview app - Create separate docker config for deployment tests
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
"test:unit:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:docker": "BASE_URL=http://localhost:3000 playwright test tests/docker-deployment.spec.ts"
|
||||
"test:e2e:docker": "BASE_URL=http://localhost:3000 playwright test --config=playwright.docker.config.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.58.1",
|
||||
|
||||
Reference in New Issue
Block a user