Files
2026-07-08 18:34:52 +00:00

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.