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

Add option to only run play or smoke tests #260

Closed

Conversation

gabrielperales
Copy link

Just a rebase over @josephnle PR to update his code.

@@ -80,6 +80,7 @@ export const transformPlaywright = (src: string, filename: string) => {
insertTestIfEmpty: true,
clearBody: true,
makeTitle: makeTitleFactory(filename),
onlyType: process.env.ONLY_TYPE as StorybookTestType,
Copy link
Author

Choose a reason for hiding this comment

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

This is the only thing I'm not sure... 🤔

@yannbf
Copy link
Member

yannbf commented Apr 21, 2023

Hey there, thanks for your contribution (as followup from @josephnle's one). Even though it's a good idea, I was wondering if we could fix this behavior differently, and just use the native test filtering functionality from jest (testNamePattern). Please check this comment for context: #281 (comment)

@rebeccadavidsson
Copy link

Any updates on this @gabrielperales ? Would be a very nice feature!

@gabrielperales
Copy link
Author

@rebeccadavidsson I'm no longer working with storybook tests, so I stopped working on this.

@yannbf
Copy link
Member

yannbf commented Nov 17, 2023

Hey there! I'll be closing this PR because this functionality is now available via test filtering with tags.

for running only play tests

yarn test-storybook --includeTags="play-fn"

for running only smoke tests

yarn test-storybook --excludeTags="play-fn"

Thank you!!

@yannbf yannbf closed this Nov 17, 2023
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.

4 participants