Skip to content

Commit 855c001

Browse files
committed
MAGETWO-92952: Automate with MFTF adding Product images of different types and sizes
1 parent f3af713 commit 855c001

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminSimpleProductImagesTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
<!-- Save the first product and go to the storefront -->
109109
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
110-
<amOnPage url="$$firstProduct.name$$.html" stepKey="goToStorefront"/>
110+
<amOnPage url="{{StorefrontProductPage.url($$firstProduct.name$$)}}" stepKey="goToStorefront"/>
111111
<waitForPageLoad stepKey="waitForStorefront1"/>
112112

113113
<!-- See all of the images that we uploaded -->
@@ -119,7 +119,7 @@
119119
<seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('png')}}" stepKey="seePng"/>
120120

121121
<!-- 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"/>
123123
<seeElement selector="{{StorefrontCategoryMainSection.categoryPageProductImagePlaceholderSmall}}" stepKey="seePlaceholder"/>
124124

125125
<!-- Go to the second product edit page -->
@@ -156,12 +156,12 @@
156156
<seeElement selector="{{AdminProductGridSection.adminImgGridThumbnail('large')}}" stepKey="seeImgInGrid"/>
157157

158158
<!-- 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"/>
160160
<waitForPageLoad stepKey="waitForStorefront2"/>
161161
<seeElement selector="{{StorefrontCategoryMainSection.categoryPageProductImage('large')}}" stepKey="seeUploadedImg"/>
162162

163163
<!-- 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"/>
165165
<waitForPageLoad stepKey="waitForStorefront3"/>
166166
<seeElementInDOM selector="{{StorefrontProductMediaSection.imageFile('large')}}" stepKey="seeLarge2"/>
167167
</test>

0 commit comments

Comments
 (0)