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

test: Explicitly enable snapshots #478

Merged
merged 3 commits into from
Feb 21, 2020
Merged

Conversation

lychyi
Copy link
Contributor

@lychyi lychyi commented Feb 21, 2020

Summary

We are testing way too many stories that aren't useful for visual regression. This PR tells Chromatic to ignore all stories by default and only include ones that are marked.

Checklist

  • branch has been rebased on the latest master commit
  • tests are changed or added
  • yarn test passes
  • all (dev)dependencies that the module needs is added to its package.json
  • code has been documented and, if applicable, usage described in README.md
  • module has been added to canvas-kit-react and/or canvas-kit-css universal modules, if
    applicable
  • design approved final implementation
  • a11y approved final implementation
  • code adheres to the API & Pattern guidelines

Additional References

@cypress
Copy link

cypress bot commented Feb 21, 2020



Test summary

155 0 0 0


Run details

Project canvas-kit
Status Passed
Commit e9842cb
Started Feb 21, 2020 8:45 AM
Ended Feb 21, 2020 8:48 AM
Duration 03:30 💡
OS Linux Ubuntu Linux - 16.04
Browser Electron 78

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@@ -171,7 +171,12 @@ const CheckboxStates = () => (
);

storiesOf('Components|Inputs/Checkbox/React/Visual Testing', module)
.addParameters({component: Checkbox})
.addParameters({
component: Checkbox,
Copy link
Member

Choose a reason for hiding this comment

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

Interesting. It seems like Storybook is able to get the component just fine without this, but I'm not sure why.

Copy link
Member

@NicholasBoll NicholasBoll left a comment

Choose a reason for hiding this comment

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

I think we'll need to add a note in our documentation about this. We've been saying every story is automatically a visual regression - now we have to say it is not. Our documentation will have to say that visual stories are now intentional and we have to opt into capturing.

@NicholasBoll NicholasBoll merged commit d9dce05 into Workday:master Feb 21, 2020
@lychyi lychyi added this to In progress (PRs) in Current Sprint (7/20 - 8/9) via automation Feb 21, 2020
@lychyi lychyi moved this from In progress (PRs) to Done in Current Sprint (7/20 - 8/9) Feb 21, 2020
@anicholls anicholls mentioned this pull request Mar 11, 2020
@anicholls anicholls mentioned this pull request May 27, 2020
31 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants