This directory contains end-to-end tests organized by Angular project.
e2e/
├── arc-docs/ # Tests for arc-docs project
│ ├── playwright.config.ts # Project-specific config
│ └── tests/ # Test files
│ ├── auth/
│ ├── getting-started/
│ ├── guide/
│ └── navigation-and-page-loading/
├── arc/ # Tests for arc project
│ ├── playwright.config.ts # Project-specific config
│ └── tests/ # Test files (to be added)
└── saas-ui/ # Tests for saas-ui project
├── playwright.config.ts # Project-specific config
└── tests/ # Test files (to be added)
npm run e2e:arc-docs # Run arc-docs tests
npm run e2e:arc # Run arc tests
npm run e2e:saas-ui # Run saas-ui testsnpm run e2e:allEach project has its own playwright.config.ts with:
- Dedicated test directory:
./tests - Unique base URL and port:
- arc-docs:
http://localhost:4200 - arc:
http://localhost:4201 - saas-ui:
http://localhost:4202
- arc-docs:
- Project-specific reports:
playwright-report/<project-name>/ - Automatic dev server startup: Each config starts its respective Angular app
- Create a new folder:
e2e/<project-name>/ - Copy an existing
playwright.config.tsand update:- Base URL and port
- Web server command
- Report output paths
- Create
tests/folder for your test files - Add npm scripts to
package.json
- Keep tests isolated: Each project's tests should be independent
- Consistent naming: Follow the existing test file naming conventions
- Page Object Models: Consider creating POMs within each project's test folder
- Environment variables: Use
.envfiles for environment-specific configuration