Details
-
Technical Testing
-
Status: Closed
-
Minor
-
Resolution: Completed
-
Master
-
None
Description
Create the test scenarios to validate the parent story, according to the Acceptance Criteria.
Those test scenarios will be writing in the parent story.
Context
When select an image in Image fragment, the best image resolution will be selected automatically.
Assume the width of Desktop viewport is v
Assume the original width of image as i
Assume the width of available image resolution are a and b. Additionally, a < b
- Applications Menu > Control Panel > Adaptive Media
- Add Image Resolution > Define Max Width in Size section
- Add a page based on Blank
- Add an Image fragment to page
- Click the editable field > Image tab
- Select an image
Test Cases | Conditions | Expected Automatic Selection of Image Resolution |
---|---|---|
Case 1 | i > v > a | i |
Case 2 | i > b > a > v | a |
Case 3 | v > i > a | i |
Case 4 | v > a > i | i |
Case 5 | a > i > v | i |
Case 6 | a > v > i | i |
Case 1
- Upload an image with width greater than 2000px
- Assert the Auto selected in Resolution field
- Assert the Width is the original width of image
- Assert the File Size has value
Case 2
- Add an image resolution with 800px Max Width
- Upload an image with width greater than 1000px
- Take down the number of File Size
- Change to the Tablet viewport
- Assert the Auto selected in Resolution field
- Assert the Width is 800px
- Assert the File Size become smaller
Case 3
- Add an image resolution with 600px Max Width
- Upload an image with width between 600px and 700px
- Change to the Tablet viewport
- Assert the Auto selected in Resolution field
- Assert the Width is the original width of image
- Assert the File Size has value
Case 4
- Add an image resolution with 600px Max Width
- Upload an image with width about 500px
- Change to the Tablet viewport
- Assert the Auto selected in Resolution field
- Assert the Width is the original width of image
- Assert the File Size has value
Case 5
- Upload an image with width between 600px and 700px
- Change to the Landscape viewport
- Assert the Auto selected in Resolution field
- Assert the Width is the original width of image
- Assert the File Size has value
Case 6
- Upload an image with width about 700px
- Change to the Tablet viewport
- Assert the Auto selected in Resolution field
- Assert the Width is the original width of image
- Assert the File Size has value