File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Cms/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +3
-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}} " visible = " false " stepKey =" selectImage" />
23
23
<waitForElementVisible selector =" {{MediaGallerySection.DeleteSelectedBtn}}" stepKey =" waitForDeleteBtn" />
24
24
<click selector =" {{MediaGallerySection.DeleteSelectedBtn}}" stepKey =" clickDeleteSelected" />
25
25
<waitForPageLoad stepKey =" waitForPageLoad1" />
28
28
<waitForPageLoad stepKey =" waitForPageLoad2" />
29
29
<waitForLoadingMaskToDisappear stepKey =" waitForLoadingMaskToDisappear" />
30
30
<grabMultiple selector =" {{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey =" newImages" />
31
-
31
+
32
32
<assertLessThan stepKey =" assertLessImages" >
33
33
<expectedResult type =" variable" >initialImages</expectedResult >
34
34
<actualResult type =" variable" >newImages</actualResult >
You can’t perform that action at this time.
0 commit comments