File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Cms/ActionGroup Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 7
7
-->
8
8
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
10
- <actionGroup name =" NavigateToMediaFolderActionGroup " >
10
+ <actionGroup name =" DeleteImageFromStorageActionGroup " >
11
11
<arguments >
12
- <argument name =" FolderName " type = " string " defaultValue =" " />
12
+ <argument name =" Image " defaultValue =" " />
13
13
</arguments >
14
- <conditionalClick selector =" {{MediaGallerySection.StorageRootArrow}}" dependentSelector =" {{MediaGallerySection.checkIfArrowExpand}}" stepKey =" clickArrowIfClosed" visible =" true" />
15
- <conditionalClick selector =" {{MediaGallerySection.WysiwygArrow}}" dependentSelector =" {{MediaGallerySection.checkIfWysiwygArrowExpand}}" stepKey =" clickWysiwygArrowIfClosed" visible =" true" />
16
- <waitForText userInput =" {{FolderName}}" stepKey =" waitForNewFolder" />
17
- <click userInput =" {{FolderName}}" stepKey =" clickOnCreatedFolder" />
18
- <waitForLoadingMaskToDisappear stepKey =" waitForLoading5" />
14
+ <click selector =" //small[contains(text(),'{{Image.value}}')]" stepKey =" selectImage" />
15
+ <see selector =" {{MediaGallerySection.DeleteSelectedBtn}}" userInput =" Delete Selected" stepKey =" seeDeleteBtn" />
16
+ <click selector =" {{MediaGallerySection.DeleteSelectedBtn}}" stepKey =" clickDeleteSelected" />
17
+ <waitForText userInput =" OK" stepKey =" waitForConfirm" />
18
+ <click selector =" {{MediaGallerySection.confirmDelete}}" stepKey =" confirmDelete" />
19
+ <waitForElementNotVisible selector =" {{MediaGallerySection.image(ImageUpload.file)}}" stepKey =" waitForImageDeleted" />
20
+ <dontSeeElement selector =" {{MediaGallerySection.image(ImageUpload.file)}}" stepKey =" dontSeeImage" />
19
21
</actionGroup >
20
22
</actionGroups >
Original file line number Diff line number Diff line change 12
12
<argument name =" FolderName" type =" string" defaultValue =" " />
13
13
</arguments >
14
14
<conditionalClick selector =" {{MediaGallerySection.StorageRootArrow}}" dependentSelector =" {{MediaGallerySection.checkIfArrowExpand}}" stepKey =" clickArrowIfClosed" visible =" true" />
15
- <conditionalClick selector =" {{MediaGallerySection.WysiwygArrow}}" dependentSelector =" {{MediaGallerySection.checkIfWysiwygArrowExpand}}" stepKey =" clickWysiwygArrowIfClosed" visible =" true" />
16
15
<waitForText userInput =" {{FolderName}}" stepKey =" waitForNewFolder" />
17
16
<click userInput =" {{FolderName}}" stepKey =" clickOnCreatedFolder" />
18
17
<waitForLoadingMaskToDisappear stepKey =" waitForLoading5" />
You can’t perform that action at this time.
0 commit comments