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

fix: install correct browser versions for playwright tests #298

Merged
merged 3 commits into from
Jan 27, 2023

Conversation

olizilla
Copy link
Contributor

by running pnpm exec playwright install from the playwright dir, pnpm knows to use the version of playwright that we depend on rather than the latest version.

without this change we end up installing the latest browesers and then the tests fail as they can't find the older versions that they assume will have been installed.

...and it turns out pnpx is deprecated, and we should be using pnpm exec anyway.

fixes: #297

see: https://pnpm.io/6.x/cli/exec

License: MIT
Signed-off-by: Oli Evans [email protected]

by running pnpm exec playwright install from the playwright dir, pnpm knows to use the version of playwright that we depend on rather than the latest version.

without this change we end up installing the latest browesers and then the tests fail as they can't find the older versions that they assume will have been installed.

...and it turns out `pnpx` is deprecated, and we should be using `pnpm exec` anyway.

fixes: #297

see: https://pnpm.io/6.x/cli/exec

License: MIT
Signed-off-by: Oli Evans <[email protected]>
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 27, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

License: MIT
Signed-off-by: Oli Evans <[email protected]>
@olizilla olizilla added this to the w3up phase 2 milestone Jan 27, 2023
@olizilla
Copy link
Contributor Author

This is a small PR and the goal is to fix the examples test... and the checks show that is done, so i'm gonna merge!

@olizilla olizilla merged commit 32c61fa into main Jan 27, 2023
@olizilla olizilla deleted the install-expected-browser-versions branch January 27, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

playwright installing browsers at newer versions that the tests expect.
1 participant