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

chore: upgrade playwright #18793

Merged
merged 7 commits into from
Nov 23, 2023
Merged

chore: upgrade playwright #18793

merged 7 commits into from
Nov 23, 2023

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Nov 21, 2023

Problem

Playwright wasn't working locally for me

> [email protected] test:visual-regression:stories:docker /work
> NODE_OPTIONS=--max-old-space-size=6144 test-storybook -u --no-index-json --browsers chromium webkit --url http://host.docker.internal:6006/ "frontend/src/scenes/products/Products.stories.tsx"

Determining test suites to run...Segmentation fault
 ELIFECYCLE  Command failed with exit code 139.
 ELIFECYCLE  Command failed with exit code 1.

Changes

Upgraded to the latest version following the release notes

How did you test this code?

Hopefully this runs...

@@ -270,7 +270,6 @@
"msw": "^0.49.0",
"path-browserify": "^1.0.1",
"pixelmatch": "^5.3.0",
"playwright-core": "1.29.2",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wasn't sure if this was needed but tried removing it and nothing broke. Basing things off this release note it suggested relying on @playwright/test for types

@daibhin daibhin requested a review from Twixes November 22, 2023 18:17
@@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
container:
image: mcr.microsoft.com/playwright:v1.29.2 # Same as @storybook/test-runner@0.13's dependency
image: mcr.microsoft.com/playwright:v1.32.2 # Same as @storybook/test-runner@0.15.2's dependency
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I only bumped to 1.32.2 based on what the @storybook/test-runner had in the latest version (v0.15.2)

@daibhin daibhin requested a review from a team November 23, 2023 11:47
Copy link
Member

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

Nice one!

@Twixes Twixes merged commit 1961b5b into master Nov 23, 2023
75 checks passed
@Twixes Twixes deleted the dn-chore/upgrade-playwright branch November 23, 2023 12:51
thmsobrmlr pushed a commit that referenced this pull request Nov 23, 2023
* chore: upgrade playwright

* remove core

* upgrade container image

* use test-runner version
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.

2 participants