Add e2e testing framework#82
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
After the renderer dev server binds port 1212, webpack-dev-middleware
still holds HTTP requests open until the initial bundle compiles. Electron
launched during that window loads a blank page, then receives an HMR
full-reload once webpack finishes, which closes the Playwright page
reference and causes waitForSelector('#root') to fail.
Add waitForHttpOk, which makes a real HTTP GET to localhost:1212/ and
resolves only when webpack-dev-middleware unblocks the response (i.e.
compilation is done). This replaces the previous TCP-only waitForPort
call, ensuring Electron never loads an uncompiled renderer.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
webpack-dev-server briefly closes connections before its middleware is fully attached, causing a socket hang up on the first HTTP probe. Retry on error (matching the pattern used by waitForPort) instead of rejecting immediately. The overallTimer still enforces the 5-minute budget and cancels any hanging request if webpack never finishes compiling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Resolves #70
This change is
Summary by CodeRabbit
New Features
Tests
Documentation