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

Fix screenshot tests for VaDatePicker #4299

Open
Fsss126 opened this issue May 30, 2024 · 0 comments
Open

Fix screenshot tests for VaDatePicker #4299

Fsss126 opened this issue May 30, 2024 · 0 comments
Labels
storybook Relates to storybook tests Refers to testing

Comments

@Fsss126
Copy link
Contributor

Fsss126 commented May 30, 2024

Date is not mocked in Chromatic screenshot tests runs so produced screenshots are different each day. For example https://www.chromatic.com/test?appId=64d608ab34b67e621ab50cfd&id=665860e2719aa54fb990d853

Need to mock date to produce stable screenshots each time. Perhaps add environment variable in chromatic CI pipe indicating the test environment for storybook build that enables mocking

@Fsss126 Fsss126 added tests Refers to testing storybook Relates to storybook labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
storybook Relates to storybook tests Refers to testing
Projects
None yet
Development

No branches or pull requests

1 participant