Skip to content

Commit 3d9f45a

Browse files
committed
MAGETWO-85423: Create or update functional tests
1 parent 65a4099 commit 3d9f45a

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="ConfigAminAccountSharingActionGroup">
12+
<amOnPage url="admin/admin/system_config/edit/section/admin/" stepKey="navigateToConfigurationPage" />
13+
<waitForPageLoad stepKey="wait1"/>
14+
<conditionalClick stepKey="expandSecurityTab" selector="{{AdminSection.SecurityTab}}" dependentSelector="{{AdminSection.CheckIfTabExpand}}" visible="true" />
15+
<waitForElementVisible selector="{{AdminSection.AdminAccountSharing}}" stepKey="waitForAdminAccountSharingDrpDown" />
16+
<selectOption selector="{{AdminSection.AdminAccountSharing}}" userInput="Yes" stepKey="selectYes"/>
17+
<click selector="{{AdminSection.SecurityTab}}" stepKey="clollapseSecurityTab" />
18+
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig" />
19+
</actionGroup>
20+
</actionGroups>
21+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
9+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
11+
<section name="AdminSection">
12+
<element name="CheckIfTabExpand" type="button" selector="#admin_security-head:not(.open)"/>
13+
<element name="SecurityTab" type="button" selector="#admin_security-head"/>
14+
<element name="AdminAccountSharing" type="button" selector="#admin_security_admin_account_sharing"/>
15+
</section>
16+
</sections>

0 commit comments

Comments
 (0)