Loading...
Loading...
(NS) Create and maintain Cypress E2E tests in an independent tests-e2e/ Node package at repo root (bootstrap when missing). DRY device-aware command architecture (shared/pages/device). Use when writing or refactoring Cypress specs, custom commands, scaffolding E2E on greenfield projects, or implementing E2E tasks — not when planning E2E task markdown (ns-spec-driven references/e2e-test-task-generator.md). Read harness e2e rules when present. Mandatory discovery before writing specs.
npx skill4agent add nextstage-brasil/skills ns-e2e-testsns-spec-driven/references/e2e-test-task-generator.md.nextstage-harness/rules/e2e-tests-rules.mdcreferences/e2e-architecture.mdtests-e2e/cypress.config.tstestes-cypress/cypress.config.tsfrontend/cypress.config.tscypress.config.ts{e2e_root}{e2e_root}tests-e2e/| Rule | Detail |
|---|---|
| Location | |
| Here — never add Cypress to |
| Tree | Per |
| |
| Scripts | |
{e2e_root} = tests-e2e/frontend/cypress/docs/context/stack-confirmed.mdarchitecture-rules.mdtests-e2e/cd tests-e2e && npm run cypress:run{e2e_root}cypress.config.tsdata-testidfrontend/{e2e_root}/cypress/support/commands/{e2e_root}/cypress.config.tsCYPRESS_BASE_URLCYPRESS_API_URL{e2e_root}/cypress/support/commands/
shared/[feature].commands.ts # business actions — all devices
pages/[feature].commands.ts # page structure
device/mobile|tablet|desktop.commands.ts| Behavior | Location |
|---|---|
| Same on all devices | |
| Device-exclusive | |
| Page DOM structure | |
{e2e_root}/cypress/support/e2e.tsdescribeitcy.visit(){e2e_root}/cypress/e2e/device/
desktop/[feature]/[feature]-successful-flows.cy.ts
tablet/...
mobile/...beforeEachcypress/e2e/device/data-testidcy.wait(N){e2e_root}npm run cypress:runns-investigatorexecution-handoff.mdrun-implementation| File | When |
|---|---|
| Root layout, bootstrap tree, rules |
| Task contract source |
ns-spec-drivenreferences/e2e-test-task-generator.mdns-investigatorns-gitlab-ci-generatorcd tests-e2e