Commit 9b3345b
authored
feat: migrate E2E tests from Cypress to Playwright (#18)
* feat: initial Playwright setup and configuration
- Install Playwright test framework and browsers
- Create Playwright directory structure (tests/, fixtures/, helpers/)
- Add Playwright configuration files
- Add Playwright scripts to package.json
- Copy test fixtures from Cypress
- Update .gitignore for Playwright artifacts
* feat: implement Phase 2 - core utilities and helpers for Playwright
- Install @clerk/testing package for Clerk integration
- Create authentication helper with Clerk testing support
- Create payment helper for Stripe Checkout interactions
- Create document helper for file upload and processing
- Create database helper for test data management
- Add global setup for Clerk testing environment
- Create test fixtures for common functionality
- Add example test demonstrating helper usage
- Update Playwright config with global setup
* feat: complete Phase 3 - migrate all E2E tests to Playwright
- Migrate setup verification tests
- Create subscription test index with common setup
- Migrate upgrade flow tests (Free to Pro, Pro to Business)
- Migrate downgrade flow tests (Business to Pro, cancellations)
- Migrate payment failure tests (declined cards, 3DS, network errors)
- Migrate subscription lifecycle tests (renewals, credits, notifications)
- Update test fixtures to include helper references
- Maintain full test coverage and scenarios from Cypress
* feat: complete Phase 4 - implement advanced Playwright features
- Add network interception helper for API mocking and monitoring
- Add visual testing helper with screenshot comparison and accessibility
- Add performance testing helper with metrics and benchmarking
- Add trace analysis helper for enhanced debugging
- Create advanced features demo test showcasing all capabilities
- Add custom reporter with HTML and JSON output
- Create GitHub Actions workflow with parallel execution
- Update Playwright config to use custom reporter
Advanced features include:
- Visual regression testing with responsive design checks
- Performance monitoring with budget assertions
- Network mocking and failure simulation
- Enhanced tracing with custom events
- Accessibility testing and color contrast checks
- Memory leak detection
- API performance profiling
- Flakiness detection
- Custom test reporting with Slack integration
* feat: complete Phase 5 - cleanup Cypress and update documentation
- Remove Cypress dependencies from package.json
- Remove Cypress scripts from package.json
- Delete Cypress directory and all related files
- Remove temporary Playwright config files
- Update .gitignore to remove Cypress entries
- Create comprehensive E2E testing documentation
- Create Cypress to Playwright migration guide
- Update CLAUDE.md with Playwright testing info
- Clean up debug test files
Documentation includes:
- Complete E2E testing guide with examples
- Migration guide with syntax comparisons
- Best practices and troubleshooting
- CI/CD setup instructions
* fix: rename global setup file to match Clerk documentation
- Rename global-setup.ts to global.setup.ts per Clerk docs
- Update playwright.config.ts to use correct filename
- Update documentation to reflect correct filename
- Add setup helper scripts for easier configuration
* docs: fix code block formatting in e2e-testing.md1 parent acb84b3 commit 9b3345b
File tree
51 files changed
+5464
-3556
lines changed- .github/workflows
- cypress
- e2e
- subscriptions
- plugins
- support
- page-objects
- docs
- scripts
- tests
- e2e
- subscriptions
- fixtures
- helpers
- reporters
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+5464
-3556
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments