mirror of
https://github.com/angular/skills.git
synced 2026-09-14 16:13:23 +08:00
884 B
884 B
End-to-End (E2E) Testing
Important
Only use the setup guidelines in this file if there is no existing E2E testing framework configured in the workspace, or if the user has explicitly requested to change or set up E2E testing.
Setting Up and Running E2E Tests
Add supported E2E frameworks to the project using ng add:
- Playwright:
ng add playwright-ng-schematics - Cypress:
ng add @cypress/schematic - Nightwatch:
ng add @nightwatch/schematics - WebdriverIO:
ng add @wdio/schematics - Puppeteer:
ng add @puppeteer/ng-schematics
Run E2E tests:
ng e2e [project] [options]
Custom & Enterprise Testing Tools
For custom enterprise runners (e.g., Katalon Studio, TestCafe, Selenium), define execution commands in package.json scripts.