Skip to content

Commit f0f201c

Browse files
committed
MC-38088: [MFTF] Flaky AdminSimpleProductRemoveImagesTest
1 parent bdd589a commit f0f201c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
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"/>
1615
<conditionalClick selector="{{AdminProductImagesSection.productImagesToggle}}" dependentSelector="{{AdminProductImagesSection.imageUploadButton}}" visible="false" stepKey="openProductImagesSection"/>
16+
<scrollTo selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="scrollToProductImagesSection"/>
17+
<waitForPageLoad stepKey="waitForLoadingMediaContent"/>
1718
<waitForElementVisible selector="{{AdminProductImagesSection.imageUploadButton}}" stepKey="waitForImageUploadButton"/>
1819
</actionGroup>
1920
</actionGroups>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
<actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages"/>
5050

5151
<!-- Upload and set Base image -->
52-
<waitForPageLoad stepKey="waitBeforeAttachImages"/>
5352
<attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="adobe-base.jpg" stepKey="attach1"/>
5453
<waitForPageLoad stepKey="waitForUpload1"/>
5554
<click selector="{{AdminProductImagesSection.nthProductImage('1')}}" stepKey="openImageDetails1"/>
@@ -116,7 +115,7 @@
116115
<actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages2"/>
117116

118117
<!-- Remove all images -->
119-
<waitForPageLoad stepKey="waitBeforeRemoveImages"/>
118+
<waitForElementVisible selector="{{AdminProductImagesSection.nthRemoveImageBtn('1')}}" stepKey="waitForRemoveImageButtonVisible"/>
120119
<click selector="{{AdminProductImagesSection.nthRemoveImageBtn('1')}}" stepKey="removeImage1"/>
121120
<click selector="{{AdminProductImagesSection.nthRemoveImageBtn('2')}}" stepKey="removeImage2"/>
122121
<click selector="{{AdminProductImagesSection.nthRemoveImageBtn('3')}}" stepKey="removeImage3"/>

0 commit comments

Comments
 (0)