-
Notifications
You must be signed in to change notification settings - Fork 215
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 VImageCell storybook test #2821
Conversation
Size Change: 0 B Total Size: 868 kB ℹ️ View Unchanged
|
472935e
to
67ddd98
Compare
Full-stack documentation: https://docs.openverse.org/_preview/2821 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
import { image } from "~~/test/unit/fixtures/image" | ||
import { base64Image } from "~~/test/unit/fixtures/base64Image" |
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.
Nice!
Merging with 1 approval because it's a critical change that would be nice to merge before deployment. |
Fixes
Fixes #2820 by @obulat
Description
The storybook test was making the network requests to render image in the image cell. Sometimes this request failed in the CI, which failed the CI tests. To prevent this, this PR uses a base64-encoded version of the image as the image URL for storybook VImageCell story. This ensures that the image is always loaded and rendered correctly.
Testing Instructions
The CI should pass.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin