Skip to content

Commit ab9f094

Browse files
committed
Fixed MFTF
1 parent 3680499 commit ab9f094

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
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}}"
23+
visible="false" stepKey="selectImageOnlyIfDeleteSelectedBtnNotVisible"/>
2324
<waitForElementVisible selector="{{MediaGallerySection.DeleteSelectedBtn}}" stepKey="waitForDeleteBtn"/>
2425
<click selector="{{MediaGallerySection.DeleteSelectedBtn}}" stepKey="clickDeleteSelected"/>
2526
<waitForPageLoad stepKey="waitForPageLoad1"/>
@@ -28,7 +29,7 @@
2829
<waitForPageLoad stepKey="waitForPageLoad2"/>
2930
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
3031
<grabMultiple selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="newImages"/>
31-
32+
3233
<assertLessThan stepKey="assertLessImages">
3334
<expectedResult type="variable">initialImages</expectedResult>
3435
<actualResult type="variable">newImages</actualResult>

0 commit comments

Comments
 (0)