E2e Tests

End-to-end testing with Playwright or Cypress. User flows, form submissions, navigation, visual regression. Don't use for unit or API tests.

neuron-one 11cf514 596 B Updated

File contents

E2E Testing

Key User Flows to Test

  • Registration -> Login -> Dashboard
  • CRUD operations (create, read, update, delete)
  • Payment flow (if applicable)
  • Error handling (invalid input, network failure)

Best Practices

  • Test user behavior, not implementation
  • Use data-testid attributes for selectors
  • Clean test data before each test
  • Run in CI with headless browser
  • Screenshot on failure for debugging

neuron-one/godmode/tree/main/skills/testing/e2e-tests commit 11cf514715

Frequently asked questions

npx skillmds@latest add neuron-one/e2e-tests