Skip to content

Commit e7f7608

Browse files
committed
MC-38088: [MFTF] Flaky AdminSimpleProductRemoveImagesTest
1 parent 66d8e52 commit e7f7608

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminOpenProductImagesSectionActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<annotations>
1313
<description>Requires the navigation to the Product page. Opens 'Image and Videos' section.</description>
1414
</annotations>
15+
<scrollTo selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="scrollToProductImagesTab"/>
1516
<conditionalClick selector="{{AdminProductImagesSection.productImagesToggle}}" dependentSelector="{{AdminProductImagesSection.imageUploadButton}}" visible="false" stepKey="openProductImagesSection"/>
1617
<waitForElementVisible selector="{{AdminProductImagesSection.imageUploadButton}}" stepKey="waitForImageUploadButton"/>
1718
</actionGroup>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
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"/>
32+
<actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductGridFilters"/>
3433
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
3534
</after>
3635

@@ -50,6 +49,7 @@
5049
<actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages"/>
5150

5251
<!-- Upload and set Base image -->
52+
<waitForPageLoad stepKey="waitBeforeAttachImages"/>
5353
<attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="adobe-base.jpg" stepKey="attach1"/>
5454
<waitForPageLoad stepKey="waitForUpload1"/>
5555
<click selector="{{AdminProductImagesSection.nthProductImage('1')}}" stepKey="openImageDetails1"/>
@@ -116,6 +116,7 @@
116116
<actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages2"/>
117117

118118
<!-- Remove all images -->
119+
<waitForPageLoad stepKey="waitBeforeRemoveImages"/>
119120
<click selector="{{AdminProductImagesSection.nthRemoveImageBtn('1')}}" stepKey="removeImage1"/>
120121
<click selector="{{AdminProductImagesSection.nthRemoveImageBtn('2')}}" stepKey="removeImage2"/>
121122
<click selector="{{AdminProductImagesSection.nthRemoveImageBtn('3')}}" stepKey="removeImage3"/>

0 commit comments

Comments
 (0)