Skip to content

Commit c483d82

Browse files
committed
MFTF Stablization
1 parent 3680499 commit c483d82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Cms/Test/Mftf/ActionGroup/DeleteImageFromStorageActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<arguments>
1616
<argument name="Image"/>
1717
</arguments>
18-
18+
1919
<waitForElementVisible selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="waitForInitialImages"/>
2020
<grabMultiple selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="initialImages"/>
2121
<waitForElementVisible selector="{{MediaGallerySection.lastImageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="waitForLastImage"/>
22-
<click selector="{{MediaGallerySection.lastImageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="selectImage"/>
22+
<conditionalClick selector="{{MediaGallerySection.lastImageOrImageCopy(Image.fileName, Image.extension)}}" dependentSelector="{{MediaGallerySection.DeleteSelectedBtn}}" visible="false" stepKey="selectImage"/>
2323
<waitForElementVisible selector="{{MediaGallerySection.DeleteSelectedBtn}}" stepKey="waitForDeleteBtn"/>
2424
<click selector="{{MediaGallerySection.DeleteSelectedBtn}}" stepKey="clickDeleteSelected"/>
2525
<waitForPageLoad stepKey="waitForPageLoad1"/>
@@ -28,7 +28,7 @@
2828
<waitForPageLoad stepKey="waitForPageLoad2"/>
2929
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
3030
<grabMultiple selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="newImages"/>
31-
31+
3232
<assertLessThan stepKey="assertLessImages">
3333
<expectedResult type="variable">initialImages</expectedResult>
3434
<actualResult type="variable">newImages</actualResult>

0 commit comments

Comments
 (0)