|
107 | 107 |
|
108 | 108 | <!-- Save the first product and go to the storefront -->
|
109 | 109 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
|
110 |
| - <amOnPage url="$$firstProduct.name$$.html" stepKey="goToStorefront"/> |
| 110 | + <amOnPage url="{{StorefrontProductPage.url($$firstProduct.name$$)}}" stepKey="goToStorefront"/> |
111 | 111 | <waitForPageLoad stepKey="waitForStorefront1"/>
|
112 | 112 |
|
113 | 113 | <!-- See all of the images that we uploaded -->
|
|
119 | 119 | <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('png')}}" stepKey="seePng"/>
|
120 | 120 |
|
121 | 121 | <!-- Go to the category page and see a placeholder image for the second product -->
|
122 |
| - <amOnPage url="$$category.name$$.html" stepKey="goToCategoryPage"/> |
| 122 | + <amOnPage url="{{StorefrontCategoryPage.url($$category.name$$)}}" stepKey="goToCategoryPage"/> |
123 | 123 | <seeElement selector="{{StorefrontCategoryMainSection.categoryPageProductImagePlaceholderSmall}}" stepKey="seePlaceholder"/>
|
124 | 124 |
|
125 | 125 | <!-- Go to the second product edit page -->
|
|
156 | 156 | <seeElement selector="{{AdminProductGridSection.adminImgGridThumbnail('large')}}" stepKey="seeImgInGrid"/>
|
157 | 157 |
|
158 | 158 | <!-- Go to the category page and see the uploaded image -->
|
159 |
| - <amOnPage url="$$category.name$$.html" stepKey="goToCategoryPage2"/> |
| 159 | + <amOnPage url="{{StorefrontCategoryPage.url($$category.name$$)}}" stepKey="goToCategoryPage2"/> |
160 | 160 | <waitForPageLoad stepKey="waitForStorefront2"/>
|
161 | 161 | <seeElement selector="{{StorefrontCategoryMainSection.categoryPageProductImage('large')}}" stepKey="seeUploadedImg"/>
|
162 | 162 |
|
163 | 163 | <!-- Go to the product page and see the uploaded image -->
|
164 |
| - <amOnPage url="$$secondProduct.name$$.html" stepKey="goToStorefront2"/> |
| 164 | + <amOnPage url="{{StorefrontProductPage.url($$secondProduct.name$$)}}" stepKey="goToStorefront2"/> |
165 | 165 | <waitForPageLoad stepKey="waitForStorefront3"/>
|
166 | 166 | <seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('large')}}" stepKey="seeLarge2"/>
|
167 | 167 | </test>
|
|
0 commit comments