- Introduced coding standards for TypeScript and React in SKILL.md. - Added continuous learning skill with configuration and evaluation scripts. - Created detail layout guidelines for read-only pages. - Established form layout rules for data-entry forms. - Documented project guidelines for the frontend monorepo. - Implemented security review checklist for frontend/Electron applications. - Developed a verification loop skill for comprehensive session checks. This commit enhances the skill set available for developers, ensuring adherence to best practices and improving code quality.
1.4 KiB
1.4 KiB
description
| description |
|---|
| Generate and run frontend journey tests with Vitest/Testing Library, plus browser verification for apps/web. Covers login and FULL_PAGE index/form/detail. |
E2E / Journey Command
This command invokes the e2e-runner agent to cover critical UI journeys. There is no NestJS or Playwright suite.
What This Command Does
- Identify journeys — login, FULL_PAGE index / form / detail
- Write or update Vitest tests — mock
@repo/core-apiservices - Run
pnpm test(orpnpm --filter web test) - Browser-verify
apps/webwhen the change is routing or layout - Report pass/fail
When to Use
Use /e2e when:
- Testing login or a FULL_PAGE module flow
- Verifying index → form → detail navigation
- Checking empty / error states after a UI change
- Preparing a PR that touches routing or providers
How It Works
The e2e-runner agent will:
- Copy patterns from
apps/web/src/apps/main/modules/example/full-page/ - Mock
fullPageDataService(or the module's factory) — not a database - Run
pnpm test - Drive the browser for layout/routing if needed (
pnpm dev:web) - Summarize failures
Example
User: /e2e Test the example full-page index and detail flow
Canonical sample: example/full-page. Do not invent a third page style. Do not add Playwright unless asked.
Related
Agent: .cursor/agents/e2e-runner.md