Skip to content

Commit a62722e

Browse files
ACQE-6591: AdminCreateUserRoleWithLimitedPermissionTest
tfa Checkbox presence test
1 parent e2cdfdb commit a62722e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/User/Test/Mftf/ActionGroup/AdminSelectCustomStockUserRoleResourcesActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<annotations>
1212
<description>Goes to the Backend Custom User role page. Selecting required elements on roles resource page.</description>
1313
</annotations>
14-
<scrollTo selector="{{AdminEditRoleInfoSection.blockName('restrictedRole')}}" x="0" y="-120" stepKey="scrollToResourceElement"/>
14+
<scrollTo selector="{{AdminEditRoleInfoSection.checkboxByRole('Magento_User::acl_anchor')}}" stepKey="scrollToTwoFactor"/>
15+
<waitForElementClickable selector="{{AdminEditRoleInfoSection.checkboxByRole('Magento_TwoFactorAuth::tfa')}}" stepKey="waitForTwoFactorToBeClickable"/>
1516
<click stepKey="clickTFACheckbox" selector="{{AdminEditRoleInfoSection.checkboxByRole('Magento_TwoFactorAuth::tfa')}}"/>
1617
<scrollTo selector="{{AdminEditRoleResourcesSection.inventoryCheckbox}}" stepKey="scrollToInventoryCheckBox"/>
1718
<waitForElementClickable selector="{{AdminEditRoleResourcesSection.stockCheckbox}}" stepKey="waitForStockToBeClickable"/>
@@ -20,6 +21,5 @@
2021
<click selector="{{AdminEditRoleResourcesSection.editStockCheckbox}}" stepKey="uncheckEditStock"/>
2122
<waitForElementClickable selector="{{AdminEditRoleResourcesSection.deleteStockCheckbox}}" stepKey="waitForDeleteStockToBeClickable"/>
2223
<click selector="{{AdminEditRoleResourcesSection.deleteStockCheckbox}}" stepKey="uncheckDeleteStock"/>
23-
<scrollTo selector="{{AdminEditRoleInfoSection.checkboxByRole('Magento_User::acl_anchor')}}" stepKey="scrollToTwoFactor"/>
2424
</actionGroup>
2525
</actionGroups>

0 commit comments

Comments
 (0)