|
36 | 36 | <argument name="productId" value="$simpleProductOne.id$"/>
|
37 | 37 | </actionGroup>
|
38 | 38 | <!-- Halt test execution for 10 seconds before continuing. -->
|
39 |
| - <wait time="10" stepKey="waitTenSeconds"/> |
| 39 | + <wait time="10" stepKey="waitForAddImageSectionToOpen"/> |
40 | 40 |
|
41 | 41 | <!-- Add Image Base-->
|
42 | 42 | <actionGroup ref="AddProductImageActionGroup" stepKey="addBaseImage">
|
|
79 | 79 | <seeElement selector="{{StorefrontProductMediaSection.imageFile('/adobe-base')}}" stepKey="seeBaseImageOnProductPage"/>
|
80 | 80 | <!-- Go to the category page and see the Small image -->
|
81 | 81 | <amOnPage url="{{StorefrontCategoryPage.url($testCategory.custom_attributes[url_key]$)}}" stepKey="goToCategoryPage"/>
|
82 |
| - <waitForPageLoad stepKey="waitForPageLoading"/> |
| 82 | + <waitForPageLoad stepKey="waitForPageLoadingToFinish"/> |
83 | 83 | <seeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('/adobe-small')}}" stepKey="seeSmallImageOnCategoryPage"/>
|
84 | 84 | </before>
|
85 | 85 | <after>
|
|
116 | 116 | <waitForPageLoad stepKey="waitForPageRefresh"/>
|
117 | 117 | <waitForElementVisible selector="{{AdminProductImagesSection.nthRemoveImageBtn('2')}}" stepKey="waitForRemoveImageButtonVisiblesmall"/>
|
118 | 118 | <click selector="{{AdminProductImagesSection.nthRemoveImageBtn('2')}}" stepKey="removeImagesmall"/>
|
119 |
| - <actionGroup ref="SaveProductFormActionGroup" stepKey="save2"/> |
| 119 | + <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductAfterSmallImageDelete"/> |
120 | 120 | <dontSeeElement selector="{{AdminProductImagesSection.imageFile(AdobeSmallImage)}}" stepKey="seeImageSmallIsAbsentAfterSave"/>
|
121 | 121 | <!-- Go to the category page and see Small image is not present , placeholder image is present-->
|
122 | 122 | <amOnPage url="{{StorefrontCategoryPage.url($testCategory.custom_attributes[url_key]$)}}" stepKey="goToCategoryPageOnStoreFront"/>
|
123 |
| - <waitForPageLoad stepKey="waitforPage"/> |
| 123 | + <waitForPageLoad stepKey="waitforElementStorefrontCategoryProductSectionProductImageToOpen"/> |
124 | 124 | <dontSeeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('/adobe-small')}}" stepKey="dontSeeSmallImageOnCategoryPage"/>
|
125 | 125 | <seeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('placeholder/small_image')}}" stepKey="seePlaceholderSmallInstead"/>
|
126 | 126 |
|
|
131 | 131 | <!--Delete Base Image and Check Base Image is Absent after save-->
|
132 | 132 | <waitForElementVisible selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="waitForImagesSectionButton"/>
|
133 | 133 | <conditionalClick selector="{{AdminProductImagesSection.productImagesToggle}}" dependentSelector="{{AdminProductImagesSection.imageUploadButton}}" visible="false" stepKey="openProductImageSection"/>
|
134 |
| - <waitForPageLoad stepKey="wait"/> |
| 134 | + <waitForPageLoad stepKey="waitForPageLoadAdminProductImagesSection"/> |
135 | 135 | <waitForElementVisible selector="{{AdminProductImagesSection.nthRemoveImageBtn('1')}}" stepKey="waitForRemoveBaseImageButtonVisible"/>
|
136 | 136 | <click selector="{{AdminProductImagesSection.nthRemoveImageBtn('1')}}" stepKey="removeBaseImage"/>
|
137 |
| - <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/> |
| 137 | + <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductAfterBaseImageDelete"/> |
138 | 138 | <dontSeeElement selector="{{AdminProductImagesSection.imageFile(TestImageAdobe)}}" stepKey="dontSeeBaseImageAfterSave"/>
|
139 | 139 | <!-- Go to the product page on StoreFront and Dont see the Base image -->
|
140 | 140 | <amOnPage url="{{StorefrontProductPage.url($simpleProductOne.custom_attributes[url_key]$)}}" stepKey="goToProductPageOnStoreFront"/>
|
141 |
| - <waitForPageLoad stepKey="waitForPage"/> |
| 141 | + <waitForPageLoad stepKey="waitForStorefrontProductMediaSection"/> |
142 | 142 | <dontSeeElement selector="{{StorefrontProductMediaSection.imageFile('TestImageAdobe')}}" stepKey="dontseeBaseImageOnProductPage"/>
|
143 | 143 | <seeElement selector="{{StorefrontProductMediaSection.imageFile('placeholder/image')}}" stepKey="seePlaceholderBaseInstead"/>
|
144 | 144 |
|
|
0 commit comments