
ns-e2e-tests
(NS) Cypress E2E in independent tests-e2e/ at repo root (bootstrap when missing). DRY device-aware commands (shared/pages/device). Use when writing/refactoring Cypress specs, custom commands, scaffolding E2E, or implementing E2E tasks — not when planning E2E task markdown (ns-spec-driven references/e2e-test-task-generator.md). Mandatory discovery before specs.
- Installs
- 125
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/nextstage-brasil/skills --skill ns-e2e-tests- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads ns-e2e-tests automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Create E2E Tests
Execution-phase Cypress implementation. Planning-phase: ns-spec-driven/references/e2e-test-task-generator.md.
Session boot
Load .nextstage-harness/rules/e2e-tests-rules.mdc when present. See references/e2e-architecture.md for layout and bootstrap summary.
Phase 0 — Resolve or bootstrap Cypress root
Before any spec or command code, locate the Cypress project or create it.
0.1 — Detect existing E2E (brownfield)
Search the repo in this order:
tests-e2e/cypress.config.tstestes-cypress/cypress.config.ts(legacy name)frontend/cypress.config.ts(legacy co-located)
Record the directory that contains cypress.config.ts as {e2e_root}. All paths below are relative to {e2e_root} unless noted.
0.2 — Bootstrap when nothing exists (greenfield)
If no match in 0.1, create tests-e2e/ as a standalone Node project:
| Rule | Detail |
|---|---|
| Location | tests-e2e/ only |
package.json | Here — never add Cypress to frontend/package.json |
| Tree | Per references/e2e-architecture.md (config + empty device/ folders + support imports) |
cypress.config.ts | baseUrl from CYPRESS_BASE_URL; specPattern cypress/e2e/**/*.cy.ts |
| Scripts | cypress:open, cypress:run in tests-e2e/package.json |
Then set {e2e_root} = tests-e2e/.
Forbidden on greenfield: scaffolding under frontend/cypress/, copying deps into the frontend lockfile, or assuming Cypress is already installed in the app package.
0.3 — Post-bootstrap documentation
When docs/context/stack-confirmed.md or architecture-rules.md exists, add or update the E2E row: location tests-e2e/, run command cd tests-e2e && npm run cypress:run (or project docker equivalent).
Do not proceed to Phase 1 until {e2e_root} is confirmed and cypress.config.ts is readable.
Phase 1 — Discovery (before feature code)
- App under test — routes, forms, API usage, existing
data-testid(readfrontend/, not write Cypress there) - Existing commands — read all
{e2e_root}/cypress/support/commands/; never duplicate - Config —
{e2e_root}/cypress.config.tsbaseUrl, env vars (CYPRESS_BASE_URL,CYPRESS_API_URL)
Phase 2 — Command architecture first
{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 | shared/ |
| Device-exclusive | device/ |
| Page DOM structure | pages/ |
Register new command files in {e2e_root}/cypress/support/e2e.ts.
Specs: describe/it, cy.visit(), commands, assertions — no DOM logic in specs.
Phase 3 — Spec layout
{e2e_root}/cypress/e2e/device/
desktop/[feature]/[feature]-successful-flows.cy.ts
tablet/...
mobile/...
Viewports in beforeEach:
- Desktop: 1280×720
- Tablet: 768×1024
- Mobile: 375×812
Forbidden: specs directly under cypress/e2e/ without device/ prefix.
Phase 4 — Implement
- Use
data-testidfrom frontend task contract — do not invent - No fixed
cy.wait(N)— intercepts or assertion timeouts - Third-party HTTP/API calls stubbed by default (intercepts/fixtures). Real third-party flows → opt-in project/tag (live tier); exclude from default
cypress:run/ CI unless human asks - RBAC: menu hidden + direct URL denial
- Auth: login via UI or support session; tenant-aware fixtures
Phase 5 — Run and report
From {e2e_root}: npm run cypress:run (or docker equivalent documented for the product). Report failures with ns-investigator if needed.
SDD version execution: when called under execution-handoff.md /
run-implementation, write or refactor specs only — do not run the E2E
suite. The human runs E2E at version end.
References
| File | When |
|---|---|
references/e2e-architecture.md | Root layout, bootstrap tree, rules |
../ns-spec-driven/references/e2e-test-task-generator.md | Task contract source |
Related skills
ns-spec-drivenreferences/e2e-test-task-generator.md— planning tasks with testid contractns-investigator— failing E2E debuggingns-gitlab-ci-generator— CIcd tests-e2eand change paths
FAQ
What does the ns-e2e-tests skill do?
(NS) Cypress E2E in independent tests-e2e/ at repo root (bootstrap when missing). DRY device-aware commands (shared/pages/device). Use when writing/refactoring Cypress specs, custom commands, scaffolding E2E, or implementing E2E tasks — not when planning E2E task markdown (ns-spec-driven references/e2e-test-task-generator.md). Mandatory discovery before specs.
How do I install ns-e2e-tests?
Run npx skills add https://github.com/nextstage-brasil/skills --skill ns-e2e-tests in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ns-e2e-tests/ (personal) or .claude/skills/ns-e2e-tests/ (project).
Which AI agents can use ns-e2e-tests?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is ns-e2e-tests safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains ns-e2e-tests?
It is published by nextstage-brasil in nextstage-brasil/skills. It has 125 recorded installs.
More from nextstage-brasil/skills
ns-gitlab-board-sync
nextstage-brasil/skills
(NS) Sync existing GitLab issues with local planning/execution — milestone, RF labels, status, assignee, estimates, spent time. Use during implementation when tasks link to GitLab issues or after plan-version-from-gitlab sync — not for creating new issues (use mcp-gitlab-usage). Always atomic setissuelabels and three-step status cycle.
ns-spec-driven
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
ns-gitlab-ci-generator
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
ns-project-manager
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
mcp-gitlab-usage
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
Popular testing & qa skills
tdd
mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
grilling
mattpocock/skills
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
migrate-to-shoehorn
mattpocock/skills
Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.
run-train
lllllllama/rigorpilot-skills
Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.
test-driven-development
obra/superpowers
Use when implementing any feature or bugfix, before writing implementation code
finishing-a-development-branch
obra/superpowers
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work