E2E Testing
Stoobly Scaffold E2E Testing - Questions & Answers
Plugin Support
Q: What E2E testing frameworks does Stoobly support?
# Create app with Playwright support
stoobly-agent scaffold app create my-app --plugin playwright
# Create app with Cypress support
stoobly-agent scaffold app create my-app --plugin cypress
# Create app with both plugins
stoobly-agent scaffold app create my-app --plugin playwright --plugin cypressFrontend Service Setup
Q: How do I set up a frontend service to serve static assets for E2E tests?
Configuration Files
Q: What files should I modify to add my Playwright tests?
Q: What files should I modify to add my Cypress tests?
Q: How do I add custom npm packages for my tests?
Q: How do I pass environment variables to my tests?
Running E2E Tests
Q: How do I record E2E test traffic?
Q: How do I run E2E tests with mocked responses?
Q: How do I run E2E tests with response validation?
Q: How do I run specific test files or suites?
Debugging
Q: How do I view test output and logs?
Q: How do I debug failing tests?
Q: How do I save test artifacts (screenshots, videos)?
Advanced Configuration
Q: How do I mount test fixtures and data?
Q: How do I handle dynamic data in E2E tests?
Best Practices
Q: Should I record once and mock for all subsequent runs?
Q: How do I organize E2E tests by feature?
CI/CD Integration
Q: Which runtime should I use in CI/CD for E2E testing?
Q: How do I test with different runtimes in CI/CD?
Complete Examples
Q: What's a complete example of setting up Playwright E2E tests?
Q: How do I use the Stoobly JavaScript client library in my tests?
Quick Reference
Last updated