File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Cms/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
<arguments >
16
16
<argument name =" Image" />
17
17
</arguments >
18
-
18
+
19
19
<waitForElementVisible selector =" {{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey =" waitForInitialImages" />
20
20
<grabMultiple selector =" {{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey =" initialImages" />
21
21
<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" />
23
24
<waitForElementVisible selector =" {{MediaGallerySection.DeleteSelectedBtn}}" stepKey =" waitForDeleteBtn" />
24
25
<click selector =" {{MediaGallerySection.DeleteSelectedBtn}}" stepKey =" clickDeleteSelected" />
25
26
<waitForPageLoad stepKey =" waitForPageLoad1" />
28
29
<waitForPageLoad stepKey =" waitForPageLoad2" />
29
30
<waitForLoadingMaskToDisappear stepKey =" waitForLoadingMaskToDisappear" />
30
31
<grabMultiple selector =" {{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey =" newImages" />
31
-
32
+
32
33
<assertLessThan stepKey =" assertLessImages" >
33
34
<expectedResult type =" variable" >initialImages</expectedResult >
34
35
<actualResult type =" variable" >newImages</actualResult >
You can’t perform that action at this time.
0 commit comments