-
Notifications
You must be signed in to change notification settings - Fork 46
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
Testing coverage for image #1063
Conversation
…nto feature/testing-coverage-for-image
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.
Looks good overall. I did add one inline comment asking when to go with the Cucumber format-- putting myself in QA's shoes, I think it would actually be easier for me to see concrete steps for testing something like lazyloading.
1. When I drag my finger around the tablet image | ||
1. Then other zoomed-in parts of the tablet image are shown | ||
1. When I remove my finger or drag it outside of the tablet image | ||
1. Then the tablet image returns to its original state |
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.
Good choice having separate ones for mobile and desktop. In my review for button, I argued they should be condensed, but the behavior is so different here that I think the different versions make sense.
## Scenario: Image Zoom (desktop) | ||
|
||
1. Given I am using a "desktop" browser | ||
1. And I am viewing the [Image Zoom page](http://localhost:3000/pattern-lab/patterns/02-components-image-30-image-zoom-variation/02-components-image-30-image-zoom-variation.html) |
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.
Just one last thing I noticed before this is good to go: I think it's good practice to replace localhost urls with https://master.boltdesignsystem.com (which you already did in the rest of this document, just not in the two image zoom tests).
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.
@remydenton, definitely. Good catch. I replaced it in this commit.
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.
Looks great, thanks @danielamorse!
- Lazyloaded JPG images get special treatment. They transition from a blurred low-resolution placeholder image to a sharp lazyloaded image. | ||
- Lazyloaded JPG images have the class `c-bolt-image__lazyload--blur`. | ||
- All lazyloaded images are loaded after the window `onload` event, including not-in-view images. | ||
- This setting is controlled by the `preloadAfterLoad` option in the `lazySizes` plugin. See [the docs](https://github.com/aFarkas/lazysizes#js-api---options). |
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.
+1
@danielamorse @adamszalapski I could see two specific follow-up updates to build off of this:
|
Noted 👍 I can look into these two updates as part of the image web component conversion. |
…nto feature/testing-coverage-for-image
@danielamorse can you try updating this PR branch with the latest up on master to see if the Travis build passes as expected? |
Jira
Summary
Added developer and QA testing instructions for the Bolt Image component.
Details
TESTING.md
file with developer and QA testing instructions.How to test