Skip to content

Frontend Integration Tests

``` Create tests for [feature].

Analysis Requirements

  1. Review jest testing cursor rules
  2. Study existing tests for patterns and conventions in [file]
  3. Analyze:
  4. Source code architecture
  5. Integration points
  6. External dependencies requiring mocks
  7. Data models and flows
  8. Existing test coverage

Implementation Guidelines

  1. Test Structure:
  2. Focus on end-to-end workflows over isolated units
  3. Mock external dependencies appropriately

  4. Test Coverage:

  5. Core user scenarios and workflows
  6. Edge cases and error conditions
  7. Both happy and unhappy paths

  8. Quality Standards:

  9. Clear test descriptions
  10. Meaningful assertions

Constraints

  • Scope: Modify only the test file and test utilities / helpers
  • Format: Deliver complete, production-ready test code
  • Standards: Follow jest testing cursor rules

Output

Provide the complete test implementation in a single code block, following all project conventions and testing standards.