Skip to content
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

test: switch from puppeteer to playwright chrome #8659

Merged
merged 7 commits into from
Feb 10, 2025

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Feb 10, 2025

Description

The PR updates the test setup to use Playwright Chrome instead of Puppeteer, which allows us to dispose of sendKeys and resetMouse extensions. Playwright natively supports key modifier shortcuts and doesn't have the mouse-related issue that occurred in Puppeteer.

Type of change

  • Internal

@vursen vursen changed the title test: use playwright chrome instead of puppeteer test: switch from puppeteer to playwright chrome Feb 10, 2025
@vursen vursen marked this pull request as ready for review February 10, 2025 09:21
@vursen vursen force-pushed the switch-to-playwright-chrome branch from 585bf90 to ac08a9b Compare February 10, 2025 09:21
@@ -61,6 +61,12 @@ describe('active-mixin', () => {
});

describe('keyboard', () => {
afterEach(async () => {
for (const key of ['Space', 'Enter']) {
Copy link
Contributor Author

@vursen vursen Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: This should stabilize the following test in Firefox, which has become flaky, presumably after upgrading Playwright to version 1.50:

packages/a11y-base/test/active-mixin.test.js:

 ❌ The browser was unable to create and start a test page after 60000ms. You can increase this timeout with the browserStartTimeout option. 

@vursen vursen merged commit 044f893 into main Feb 10, 2025
9 checks passed
@vursen vursen deleted the switch-to-playwright-chrome branch February 10, 2025 10:29
web-padawan pushed a commit that referenced this pull request Feb 10, 2025
web-padawan pushed a commit that referenced this pull request Feb 10, 2025
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.7.0.alpha10 and is also targeting the upcoming stable 24.7.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants