Add Playwright config to scope test discovery to e2e directory#22
Conversation
Prevents Playwright from collecting vitest unit tests (src/**/*.test.ts) as Playwright tests, which caused 'Vitest failed to access its internal state' errors and exit code 1 during npx playwright test.
|
Warning Review limit reached
Next review available in: 15 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. ✨ 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 |
There was a problem hiding this comment.
Code Review
This pull request introduces a new Playwright configuration file (playwright.config.ts) to set up end-to-end testing. The reviewer suggested adding a webServer configuration to automatically spin up the development server before running tests, which would improve the developer experience and prevent test execution failures.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| use: { | ||
| baseURL: 'http://127.0.0.1:3000', | ||
| trace: 'on-first-retry', | ||
| }, |
There was a problem hiding this comment.
To improve the developer experience and prevent test execution failures when the server is not already running, consider adding a webServer configuration. This allows Playwright to automatically spin up the Vite development server and wait for it to be ready before running any tests.
use: {
baseURL: 'http://127.0.0.1:3000',
trace: 'on-first-retry',
},
webServer: {
command: 'npm run dev',
url: 'http://127.0.0.1:3000',
reuseExistingServer: !process.env.CI,
},
Greptile SummaryThis PR adds a Playwright config for E2E test discovery.
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "Add Playwright config to scope test disc..." | Re-trigger Greptile |
Prevents Playwright from collecting vitest unit tests (src/**/*.test.ts) as Playwright tests, which caused 'Vitest failed to access its internal state' errors and exit code 1 during npx playwright test.