-
Type:
Technical Testing
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Pages > Page Editor
-
Labels:None
Create the test scenarios to validate the parent story, according to the Acceptance Criteria.
Those test scenarios will be writing in the parent story.
Test Cases
Case 1:
The image resolution is applied to mapping background image of a fragment with editable field
- Add a page based on Blank
- Add a Banner Center fragment to page
- Click the image editable field of Banner Center
- Select Mapping in Source Selection field
- Click the plus icon of Content field > Documents and Media tab > Select File
- Upload an image with greater than 2000px width > Add
- Select File URL in Field
- Assert the Width and File Size of original image is shown in Image Source panel
- Change to the Portrait Phone viewport
- Assert the Width is 1000px and File Size become smaller
- Change to the Desktop viewport
- Click the Preview button
- Inspect the image editable field of Banner Center in Preview modal
- Computed tab
- Assert the value of backround-image contains /documents/
- Change to the Portrait Phone viewport in Preview modal
- Inspect the image editable field of Banner Center in Preview modal
- Computed tab
- Assert the value of backround-image contains /Preview-1000x0/
- Close the modal
- Publish the page
- Navigate to page in view mode
- Click the Simulation button on the control menu
- Click the Desktop
- Inspect the image editable field of Banner Center
- Computed tab
- Assert the value of backround-image contains /documents/
- Click the Mobile
- Inspect the image editable field of Banner Center
- Computed tab
- Assert the value of backround-image contains /Preview-1000x0/
Case 2:
The image resolution is applied to mapping background image of the Container with padding settings
- Add a page based on Blank
- Add a Container to page
- Click the body of Container
- Select 3 in Padding Top field
- Select 3 in Padding Bottom field
- Select Mapping in Image Source field
- Click the plus icon of Content field > Documents and Media tab > Select File
- Upload an image with greater than 2000px width > Add
- Select File URL in Field
- Assert the Width and File Size of original image is shown in Image Source panel
- Change to the Tablet viewport
- Assert the Width is 1000px and File Size become smaller
- Change to the Desktop viewport
- Click the Preview button
- Inspect the body of Container in Preview modal
- Computed tab
- Assert the value of backround-image contains /documents/
- Change to the Tablet viewport in Preview modal
- Inspect the body of Container in Preview modal
- Computed tab
- Assert the value of backround-image contains /Preview-1000x0/
- Close the modal
- Publish the page
- Navigate to page in view mode
- Click the Simulation button on the control menu
- Click the Desktop
- Inspect the body of Container
- Computed tab
- Assert the value of backround-image contains /documents/
- Click the Tablet
- Inspect the body of Container
- Computed tab
- Assert the value of backround-image contains /Preview-1000x0/