Skip to content

Commit 298a573

Browse files
Merge branch 'develop' into ds_fix-docs
2 parents 9bca326 + 5b42233 commit 298a573

File tree

5 files changed

+40
-8
lines changed

5 files changed

+40
-8
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AdminLoginActionGroup
2+
AdminLogoutActionGroup
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
File "/var/www/html/app/code/Magento/ReCaptchaUser/Test/Mftf/Test/AdminLoginReCaptchaFunctionalityTest.xml"
3+
contains entity references that violate dependency constraints:
4+
5+
AdminLoginActionGroup from module(s): magento/module-admin-analytics, magento/module-backend, magento/module-two-factor-auth
6+
AdminLogoutActionGroup from module(s): magento/module-backend
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* ADOBE CONFIDENTIAL
5+
*
6+
* Copyright 2023 Adobe
7+
* All Rights Reserved.
8+
*
9+
* NOTICE: All information contained herein is, and remains
10+
* the property of Adobe and its suppliers, if any. The intellectual
11+
* and technical concepts contained herein are proprietary to Adobe
12+
* and its suppliers and are protected by all applicable intellectual
13+
* property laws, including trade secret and copyright laws.
14+
* Dissemination of this information or reproduction of this material
15+
* is strictly forbidden unless prior written permission is obtained
16+
* from Adobe.
17+
*/
18+
-->
19+
20+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
22+
<actionGroup name="AdminSaveUserRoleActionGroup">
23+
<annotations>
24+
<description>Merges with CE actionGroup. Adds steps to enable the 2FA ACL rule when creating a User Role.</description>
25+
</annotations>
26+
<waitForElementVisible selector="{{AdminEditRoleResourcesSection.resourceCheckboxLink('Magento_TwoFactorAuth::tfa', 'Two Factor Auth')}}" stepKey="waitFor2FACheckboxVisible" before="check2FAIfNotAlreadyChecked"/>
27+
<conditionalClick selector="{{AdminEditRoleResourcesSection.resourceCheckboxLink('Magento_TwoFactorAuth::tfa', 'Two Factor Auth')}}" dependentSelector="{{AdminEditRoleResourcesSection.resourceCheckbox('Magento_TwoFactorAuth::tfa')}}" visible="false" stepKey="check2FAIfNotAlreadyChecked" before="see2FAChecked"/>
28+
<seeElement selector="{{AdminEditRoleResourcesSection.resourceCheckbox('Magento_TwoFactorAuth::tfa')}}" stepKey="see2FAChecked" before="clickSaveRoleButton"/>
29+
</actionGroup>
30+
</actionGroups>

TwoFactorAuth/Test/Mftf/Test/AdminReviewOrderWithReportsPermissionTest.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
99
<test name="AdminReviewOrderWithReportsPermissionTest">
1010
<before>
11-
<actionGroup ref="AdminChooseUserRoleResourceActionGroup" before="saveRole" stepKey="enableTfa">
12-
<argument name="resourceId" value="Magento_TwoFactorAuth::tfa"/>
13-
<argument name="resourceName" value="Two Factor Auth"/>
14-
</actionGroup>
11+
<comment userInput="BIC workaround" before="saveRole" stepKey="enableTfa"/>
1512
</before>
1613
</test>
1714
</tests>

TwoFactorAuth/Test/Mftf/Test/AdminUpdateUserRoleTest.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
<severity value="AVERAGE"/>
1616
</annotations>
1717
<before>
18-
<actionGroup ref="AdminChooseUserRoleResourceActionGroup" before="saveNewRole" stepKey="enableTfa">
19-
<argument name="resourceId" value="Magento_TwoFactorAuth::tfa"/>
20-
<argument name="resourceName" value="Two Factor Auth"/>
21-
</actionGroup>
18+
<comment userInput="BIC workaround" before="saveNewRole" stepKey="enableTfa"/>
2219
</before>
2320
</test>
2421
</tests>

0 commit comments

Comments
 (0)