Skip to content

Commit e85c550

Browse files
committed
MC-38088: [MFTF] Flaky AdminSimpleProductRemoveImagesTest
1 parent 63434d2 commit e85c550

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

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

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<annotations>
1212
<features value="Catalog"/>
1313
<stories value="Add/remove images and videos for all product types and category"/>
14-
<title value="Admin should be able to remove Product Images assigned as Base, Small and Thumbnail from Simple Product"/>
14+
<title value="Remove Product Images assigned as Base, Small and Thumbnail from Simple Product"/>
1515
<description value="Admin should be able to remove Product Images assigned as Base, Small and Thumbnail from Simple Product"/>
16-
<severity value="BLOCKER"/>
17-
<testCaseId value="MC-191"/>
18-
<group value="Catalog"/>
16+
<severity value="CRITICAL"/>
17+
<testCaseId value="MC-25383"/>
18+
<group value="catalog"/>
1919
</annotations>
2020

2121
<before>
@@ -29,23 +29,25 @@
2929
<after>
3030
<deleteData createDataKey="category" stepKey="deletePreReqCategory"/>
3131
<deleteData createDataKey="product" stepKey="deleteProduct"/>
32+
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductsPage"/>
33+
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductGridFilters"/>
3234
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
3335
</after>
3436

3537
<!-- Go to the product edit page -->
3638
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex"/>
3739
<actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid"/>
3840
<actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku">
39-
<argument name="product" value="$$product$$"/>
41+
<argument name="product" value="$product$"/>
4042
</actionGroup>
41-
<actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProduct"/>
43+
<actionGroup ref="AdminProductGridSectionClickFirstRowActionGroup" stepKey="openProduct"/>
4244

4345
<!-- Set url key -->
44-
<click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="openSeoSection"/>
45-
<fillField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="$$product.name$$" stepKey="fillUrlKey"/>
46+
<comment userInput="BIC workaround" stepKey="openSeoSection"/>
47+
<comment userInput="BIC workaround" stepKey="fillUrlKey"/>
4648

4749
<!-- Expand images section -->
48-
<click selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="expandImages"/>
50+
<actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages"/>
4951

5052
<!-- Upload and set Base image -->
5153
<attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="adobe-base.jpg" stepKey="attach1"/>
@@ -87,31 +89,31 @@
8789
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/>
8890

8991
<!-- Go to the product page and see the Base image -->
90-
<amOnPage url="$$product.name$$.html" stepKey="goToProductPage"/>
92+
<amOnPage url="{{StorefrontProductPage.url($product.custom_attributes[url_key]$)}}" stepKey="goToProductPage"/>
9193
<waitForPageLoad stepKey="wait4"/>
9294
<seeElement selector="{{StorefrontProductMediaSection.imageFile('/adobe-base')}}" stepKey="seeBase"/>
9395

9496
<!-- Go to the category page and see the Small image -->
95-
<amOnPage url="$$category.name$$.html" stepKey="goToCategoryPage"/>
97+
<amOnPage url="{{StorefrontCategoryPage.url($category.custom_attributes[url_key]$)}}" stepKey="goToCategoryPage"/>
9698
<waitForPageLoad stepKey="wait3"/>
9799
<seeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('/adobe-small')}}" stepKey="seeThumb"/>
98100

99101
<!-- Go to the admin grid and see the Thumbnail image -->
100102
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex2"/>
101103
<actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid2"/>
102104
<actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku2">
103-
<argument name="product" value="$$product$$"/>
105+
<argument name="product" value="$product$"/>
104106
</actionGroup>
105107
<seeElement selector="{{AdminProductGridSection.productThumbnailBySrc('/adobe-thumb')}}" stepKey="seeBaseInGrid"/>
106108

107109
<!-- Go to the product edit page again -->
108110
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex3"/>
109111
<actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid3"/>
110112
<actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku3">
111-
<argument name="product" value="$$product$$"/>
113+
<argument name="product" value="$product$"/>
112114
</actionGroup>
113-
<actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProduct3"/>
114-
<click selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="expandImages2"/>
115+
<actionGroup ref="AdminProductGridSectionClickFirstRowActionGroup" stepKey="openProduct3"/>
116+
<actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages2"/>
115117

116118
<!-- Remove all images -->
117119
<click selector="{{AdminProductImagesSection.nthRemoveImageBtn('1')}}" stepKey="removeImage1"/>
@@ -123,19 +125,19 @@
123125
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex4"/>
124126
<actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid4"/>
125127
<actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku4">
126-
<argument name="product" value="$$product$$"/>
128+
<argument name="product" value="$product$"/>
127129
</actionGroup>
128130
<dontSeeElement selector="{{AdminProductGridSection.productThumbnailBySrc('/adobe-thumb')}}" stepKey="dontSeeBaseInGrid"/>
129131
<seeElement selector="{{AdminProductGridSection.productThumbnailBySrc('/placeholder/thumbnail')}}" stepKey="seePlaceholderThumb"/>
130132

131133
<!-- Check category page for placeholder -->
132-
<amOnPage url="$$category.name$$.html" stepKey="goToCategoryPage2"/>
134+
<amOnPage url="{{StorefrontCategoryPage.url($category.custom_attributes[url_key]$)}}" stepKey="goToCategoryPage2"/>
133135
<waitForPageLoad stepKey="wait7"/>
134136
<dontSeeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('/adobe-small')}}" stepKey="dontSeeThumb"/>
135137
<seeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('placeholder/small_image')}}" stepKey="seePlaceholderSmall"/>
136138

137139
<!-- Check product page for placeholder -->
138-
<amOnPage url="$$product.name$$.html" stepKey="goToProductPage2"/>
140+
<amOnPage url="{{StorefrontProductPage.url($product.custom_attributes[url_key]$)}}" stepKey="goToProductPage2"/>
139141
<waitForPageLoad stepKey="wait8"/>
140142
<dontSeeElement selector="{{StorefrontProductMediaSection.imageFile('/adobe-base')}}" stepKey="dontSeeBase"/>
141143
<seeElement selector="{{StorefrontProductMediaSection.imageFile('placeholder/image')}}" stepKey="seePlaceholderBase"/>

0 commit comments

Comments
 (0)