-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add --playwright
& --cypress
flags
#882
Conversation
You can simplify:
to:
|
@ndelangen do you know why I could |
No, it should resolve to the full So the outcome would be: What error did you get? "could not resolve"? |
Yes, the standard |
313988f
to
4729958
Compare
When set, build storybook by directly invoking the binary from `@chromaui/test-archiver`. This is a POC, we will move this binary into a `chromatic-playwright` package soon.
2400af5
to
f87673a
Compare
@tevanoff are you good with me merging this? |
package.json
Outdated
"chromatic-playwright": "^0.3.1", | ||
"chromatic-cypress": "^0.3.2" |
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.
If we're going to cut 1.0.0 versions of these when we go GA, we might want to include that here.
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, we can do that. It'll still be possible to test (with incorrect versions) against the current versions if we do that, but it'll warn in some package managers, and error in npm: https://www.notion.so/chromatic-ui/Peer-Dependency-Investigations-ae77792bae6e420bbe860916bec10cbe?pvs=4#176332d500194cdfacadf1efd927c815
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.
Oh, I misinterpreted, you mean to have both versions supported 👍
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.
Left one suggestion on the peer deps, but otherwise looks good!
And only check scripts if we aren't in E2E mode.
QA-ed on my test app w/ |
🚀 PR was released in |
When set, build storybook by directly invoking the binary from
@chromaui/test-archiver
.This is a POC, we will move this binary into a
chromatic-playwright
package soon.TODO:
Some notes:
This won't work if you symlink the
chromatic
package into a test project (due to symlinking and resolution). Probably just use the canary to test it out ([email protected]
)For this to work in it's current form, you need to add the following export to the
@chromaui/archive-storybook
package.json:exports
field:I did this manually inside
node_modules
of my test project for now.For some reason I couldn't
require.resolve('@chromaui/archive-storybook')
directly. @ndelangen may know more about this.We'll want to resolve things in
chromatic-playwright
really, so we'd be adding the export to that package once we setup the monorepo.This calls
node path/to/@chromaui/archive-storybook/dist/bin/build-archive-storybook.js -o ...
, which then callsnode path/to/@storybook/cli/dist/bin/storybook.js -c path/to/config
. There might be a way to avoid the double node invocation. Then again, it's probably not a big deal.📦 Published PR as canary version:
10.6.0--canary.882.7635273249.0
✨ Test out this PR locally via: