Skip to content

Commit 37c8c46

Browse files
committed
MAGETWO-89137: Create automate MFTF for MediaGallery on stage
1 parent b032bbc commit 37c8c46

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="NavigateToMediaFolderActionGroup">
11+
<arguments>
12+
<argument name="FolderName" type="string" defaultValue="" />
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" />
19+
</actionGroup>
20+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="NavigateToMediaFolderActionGroup">
11+
<arguments>
12+
<argument name="FolderName" type="string" defaultValue="" />
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" />
19+
</actionGroup>
20+
</actionGroups>

0 commit comments

Comments
 (0)