-
Notifications
You must be signed in to change notification settings - Fork 1
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(e2e): Modal Visual Tests #DS-1247 #1547
Conversation
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
2807346
to
807b3a3
Compare
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/9979951946/artifacts/1712189591 |
807b3a3
to
3b68b6c
Compare
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/9987863537/artifacts/1714113484 |
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.
Great work, just some ideas :)
tests/e2e/demo-components-compare.spec.ts-snapshots/fileuploader-chromium-linux.png
Outdated
Show resolved
Hide resolved
tests/e2e/demo-homepages.spec.ts-snapshots/web-chromium-linux.png
Outdated
Show resolved
Hide resolved
tests/e2e/demo-homepages.spec.ts-snapshots/web-react-chromium-linux.png
Outdated
Show resolved
Hide resolved
93a4b08
to
9cff822
Compare
9cff822
to
4be5cfe
Compare
Maybe note to the future: Do we need to test those Modals visually? That is a lot of images. So wouldn't it be appropriate to test it by integration test style, e.g. click on a button, modal opens, find in DOM some nodes, click on a backdrop, click on the close button, fire ESC event, etc... |
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.
I love the way you have refactored the test and created new helpers for it. Good Job 👍
There is also an open question whether we should do these tests in a visual way. I can imagine that repeating this for Tooltip as well as for Dropdow will lead us to so many images.
We agreed to make tests for all modals in the office while you were in Poland. So I will leave it like this for now. We can remove some in the future. |
- solves DS-1247
4be5cfe
to
de7a4cf
Compare
conflicts solved and rebased to main |
Description
Additional context
Issue reference
Udělat vizuální test otevřeného Modalu