-
Notifications
You must be signed in to change notification settings - Fork 0
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 and storybook #192
Conversation
8d076a6
to
2f58302
Compare
bedf578
to
b4f8387
Compare
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.
Looks great! Just one minor question.
@@ -7,6 +7,7 @@ | |||
"license": "ISC", | |||
"type": "module", | |||
"scripts": { | |||
"prep": "playwright install chromium", |
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.
Hm. Previously there was a Playwright postinstall
script which was downloading binaries during pnpm i
. Looks like now it's gone.
Should we get rid of
silverback-template/.lagoon/Dockerfile
Line 11 in 3414576
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 |
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.
Ah, is that why playwright is not downloading browsers automatically any more?
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.
Well, it's a long story. Previously, when it was called playwright
(not @playwright/test
) we had this issue with automatic browsers download in all environments. I went with PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
and controlled downloads. Then when I faced the missing binaries error on this repo, I thought it's the same issue and added the env var. I did not know that the postinstall
hook is already gone.
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.
Ok, thank you for the clarification. Will clean this up then.
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.
Aha! Now it's clear.
Playwright v1.38.0
Breaking Changes: Playwright no longer downloads browsers automatically
Details: https://github.com/microsoft/playwright/releases/tag/v1.38.0
8808868
to
fdf02e6
Compare
necessary for storybook update
included in storybook 8
So each system has the right binaries.
fdf02e6
to
93e9acc
Compare
Description of changes
e2e
for installing playwright.Motivation and context
Resolve issues where
e2e
tests could not find playwright browser binaries.How has this been tested?