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(avatar): Add snapshot tests for Avatar and AvatarButton #690

Merged
merged 2 commits into from
Jun 3, 2020

Conversation

anicholls
Copy link
Contributor

Partially addresses #683

These tests are based on the ones added to prerelease/v4 in #676

@anicholls anicholls added ready for review Code is ready for review testing labels Jun 2, 2020
@cypress
Copy link

cypress bot commented Jun 2, 2020



Test summary

317 0 0 0


Run details

Project canvas-kit
Status Passed
Commit f55e980 ℹ️
Started Jun 2, 2020 7:24 PM
Ended Jun 2, 2020 7:27 PM
Duration 02:46 💡
OS Linux Ubuntu Linux - 18.04
Browser Electron 80

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

// @ts-ignore: Cannot find module error
import testAvatar from './test-avatar.png';
// eslint-disable-next-line no-empty-function
const noop = () => {};
Copy link
Contributor

Choose a reason for hiding this comment

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

this could be somewhere in test utils folder?

component: Avatar,
parameters: {
chromatic: {
delay: 300, // Ensure we capture the image after loading and transition
Copy link
Contributor

Choose a reason for hiding this comment

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

NB: I could see this being a utils as well since we have a few components that have transitions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most of the time we turn off transitions w/ transformOrigin={null} rather than using a delay though. This is the only place we use a chromatic delay atm so going to leave as is for now

@anicholls anicholls merged commit 1a8d6a3 into Workday:master Jun 3, 2020
@anicholls anicholls deleted the avatar-snapshots branch June 3, 2020 19:07
@anicholls anicholls mentioned this pull request Jun 3, 2020
31 tasks
@jaclynjessup jaclynjessup removed testing ready for review Code is ready for review labels Sep 7, 2022
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