/
ConfigAdminAccountSharingActionGroup.xml
41 lines (35 loc) · 1.99 KB
/
ConfigAdminAccountSharingActionGroup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="ConfigAdminAccountSharingActionGroup">
<annotations>
<description>Goes to the 'Configuration' page for 'Admin'. Enables 'Admin Account Sharing'. Clicks on the Save button.</description>
</annotations>
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/admin/system_config/edit/section/admin/" stepKey="navigateToConfigurationPage"/>
<waitForPageLoad stepKey="wait1"/>
<conditionalClick stepKey="expandSecurityTab" selector="{{AdminSection.SecurityTab}}" dependentSelector="{{AdminSection.CheckIfTabExpand}}" visible="true"/>
<waitForElementVisible selector="{{AdminSection.AdminAccountSharing}}" stepKey="waitForAdminAccountSharingDrpDown"/>
<uncheckOption selector="{{AdminSection.EnableSystemValue}}" stepKey="uncheckUseSystemValue"/>
<selectOption selector="{{AdminSection.AdminAccountSharing}}" userInput="Yes" stepKey="selectYes"/>
<click selector="{{AdminSection.SecurityTab}}" stepKey="clollapseSecurityTab"/>
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig"/>
</actionGroup>
<actionGroup name="EnableAdminAccountSharingActionGroup">
<annotations>
<description>Enabled 'Admin Account Sharing' via the API.</description>
</annotations>
<createData stepKey="setConfig" entity="EnableAdminAccountSharing"/>
</actionGroup>
<actionGroup name="DisableAdminAccountSharingActionGroup">
<annotations>
<description>Disables 'Admin Account Sharing' via the API.</description>
</annotations>
<createData stepKey="setConfig" entity="DisableAdminAccountSharing"/>
</actionGroup>
</actionGroups>