PromptsVault AI is thinking...
Searching the best prompts from our community
Searching the best prompts from our community
Prompts matching the #integration-testing tag
Implement component testing with Cypress. Workflow: 1. Mount React/Vue components in isolation. 2. cy.get() for element selection. 3. Intercept API calls with cy.intercept(). 4. Test user interactions (click, type, drag). 5. Visual viewport testing. 6. Custom commands for reusability. 7. Fixtures for test data. 8. Time travel debugging. Use with TypeScript and implement accessibility testing with cypress-axe plugin.
Test API endpoints comprehensively. Approach: 1. Test full request/response cycle. 2. Use real database (test instance). 3. Setup/teardown for clean state. 4. Test authentication and authorization. 5. Validate response schemas. 6. Test error scenarios. 7. Performance testing. 8. Security testing. Use Supertest or similar. Run in CI/CD. Separate from unit tests. Mock external APIs.