File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
app/code/Magento/Backend/Test/Mftf Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change
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
+ * Copyright 2024 Adobe
7
+ * All Rights Reserved.
8
+ */
9
+ -->
10
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
11
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
12
+ <actionGroup name =" AdminAddRestrictedRoleForGlobalSearchActionGroup" extends =" AdminCreateRoleActionGroup" >
13
+ <remove keyForRemoval =" navigateToNewRole" />
14
+ <remove keyForRemoval =" waitForPageLoad1" />
15
+ <remove keyForRemoval =" fillRoleName" />
16
+ <remove keyForRemoval =" enterPassword" />
17
+ <remove keyForRemoval =" clickRoleResourcesTab" />
18
+ <remove keyForRemoval =" waitForScopeSelection" />
19
+ <remove keyForRemoval =" clickSaveRoleButton" />
20
+ <remove keyForRemoval =" waitForPageLoad2" />
21
+ <remove keyForRemoval =" clickCheckbox" />
22
+ <scrollTo selector =" {{AdminEditRoleInfoSection.blockName('restrictedRole')}}" x =" 0" y =" -120" stepKey =" scrollToResourceElement" after =" selectResourceAccessCustom" />
23
+ <click stepKey =" clickTFACheckbox" selector =" {{AdminEditRoleInfoSection.checkboxByRole('Magento_TwoFactorAuth::tfa')}}" after =" waitForTfaRole" />
24
+ </actionGroup >
25
+ </actionGroups >
Original file line number Diff line number Diff line change 3
3
/**
4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
+ * Copyright 2024 Adobe
7
+ * All Rights Reserved.
6
8
*/
7
9
-->
8
10
17
19
<severity value =" MAJOR" />
18
20
<description value =" Check login with restrict role." />
19
21
<group value =" login" />
20
- <group value =" pr_exclude" />
21
22
<group value =" cloud" />
23
+ <group value =" pr_exclude" />
22
24
</annotations >
23
25
24
26
<before >
29
31
<argument name =" restrictedRole" value =" Global Search" />
30
32
</actionGroup >
31
33
<actionGroup ref =" AdminUserClickRoleResourceTabActionGroup" stepKey =" switchToRoleResourceTab" />
32
- <actionGroup ref =" AdminAddRestrictedRoleActionGroup " stepKey =" addRestrictedRoleStores" >
34
+ <actionGroup ref =" AdminAddRestrictedRoleForGlobalSearchActionGroup " stepKey =" addRestrictedRoleStores" >
33
35
<argument name =" User" value =" adminRole" />
34
36
<argument name =" restrictedRole" value =" Global Search" />
35
37
</actionGroup >
You can’t perform that action at this time.
0 commit comments