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

Build: Only install Playwright dependencies when needed #5204

Merged
merged 1 commit into from Mar 20, 2023

Conversation

mgol
Copy link
Member

@mgol mgol commented Feb 6, 2023

Summary

PR gh-5190 added support for running tests on Playwright WebKit in CI. For efficiency reasons, Playwright dependencies are only installed for the test:browser npm script. However, that same script is also used for Firefox ESR testing.

This change makes Playwright dependencies installed only for cases where WebKitHeadless exists on the list of tested browsers.

Ref gh-5190

Checklist

  • New tests have been added to show the fix or feature works
  • Grunt build and unit tests pass locally with these changes
  • If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com

PR jquerygh-5190 added support for running tests on Playwright WebKit
in CI. For efficiency reasons, Playwright dependencies are only
installed for the `test:browser` npm script. However, that same
script is also used for Firefox ESR testing.

This change makes Playwright dependencies installed only for cases
where `WebKitHeadless` exists on the list of tested browsers.

Ref jquerygh-5190
@mgol mgol added this to the 3.7.0 milestone Feb 6, 2023
@mgol mgol self-assigned this Feb 6, 2023
@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Mar 15, 2023
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Mar 20, 2023
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

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

I like the added flexibility

@mgol mgol removed the Needs review label Mar 20, 2023
@mgol mgol merged commit e77bd9d into jquery:main Mar 20, 2023
@mgol mgol deleted the ci-install-playwright-only-when-needed branch March 20, 2023 16:13
mgol added a commit to mgol/jquery that referenced this pull request Mar 20, 2023
PR jquerygh-5190 added support for running tests on Playwright WebKit
in CI. For efficiency reasons, Playwright dependencies are only
installed for the `test:browser` npm script. However, that same
script is also used for Firefox ESR testing.

This change makes Playwright dependencies installed only for cases
where `WebKitHeadless` exists on the list of tested browsers.

Closes jquerygh-5204
Ref jquerygh-5190

(cherry picked from commit e77bd9d)
@mgol
Copy link
Member Author

mgol commented Mar 20, 2023

Landed on main in e77bd9d & on 3.x-stable in 212b6a4.

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

Successfully merging this pull request may close these issues.

None yet

2 participants