-
Notifications
You must be signed in to change notification settings - Fork 8
feat(wc): update tests to use Playwright #1455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request migrates the testing infrastructure from jsdom to Playwright for browser-based testing in the web components templates. The change enables real browser testing instead of DOM simulation, providing more accurate test results for web components.
Key changes:
- Replaced jsdom with Playwright for browser testing in vitest configuration
- Updated multiple devDependencies to their latest versions
- Configured vitest to run tests in Chromium via Playwright
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/cli/templates/webcomponents/igc-ts/projects/_base/files/package.json | Added Playwright dependency, removed jsdom, and updated devDependencies versions |
| packages/cli/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts | Configured vitest to use Playwright browser provider instead of jsdom environment |
| packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json | Added Playwright dependency, removed jsdom, and updated devDependencies versions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.