Orchestrate E2E Playwright test creation — scaffold project, inject data-testid attributes, write Page Objects and test specs, and run tests.
Orchestrate the full E2E Playwright testing workflow.
/test-e2e [component-paths or 'changed']
If changed:
git diff --name-only HEAD | grep -E "\.component\.(html|ts)$"
If explicit paths: Use provided paths directly.
Check if E2E Playwright project exists. If not, scaffold with Nx generator.
data-testidScan changed component templates and inject data-testid attributes:
{component-name}-{element-type}-{identifier}data-testid attributesFor each component:
data-testid selectors exclusivelynpx nx e2e {app-name}-e2e
## E2E Test Report
### Components Processed
| Component | Testids Injected | Tests Written | Status |
| --------- | ---------------- | ------------- | ------ |
### Files Modified
| File | Change |
| ---- | ------ |
### Summary
- E2E Project: [existed / scaffolded]
- Testids injected: [count]
- Tests created: [count]
- Test execution: [PASS / FAIL]