Skip to content

Commit 04b21d9

Browse files
ACQE-6591: AdminCreateUserRoleWithLimitedPermissionTest
tfa Checkbox presence test
1 parent 2e6d730 commit 04b21d9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
<annotations>
1212
<description>Goes to the Backend Custom User role page. Selecting required elements on roles resource page.</description>
1313
</annotations>
14-
14+
<scrollTo selector="{{AdminEditRoleInfoSection.blockName('restrictedRole')}}" x="0" y="-120" stepKey="scrollToResourceElement"/>
15+
<click stepKey="clickTFACheckbox" selector="{{AdminEditRoleInfoSection.checkboxByRole('Magento_TwoFactorAuth::tfa')}}" after="waitForTfaRole"/>
1516
<scrollTo selector="{{AdminEditRoleResourcesSection.inventoryCheckbox}}" stepKey="scrollToInventoryCheckBox"/>
1617
<waitForElementClickable selector="{{AdminEditRoleResourcesSection.stockCheckbox}}" stepKey="waitForStockToBeClickable"/>
1718
<click selector="{{AdminEditRoleResourcesSection.stockCheckbox}}" stepKey="selectStock"/>
1819
<waitForElementClickable selector="{{AdminEditRoleResourcesSection.editStockCheckbox}}" stepKey="waitForEditStockToBeClickable"/>
1920
<click selector="{{AdminEditRoleResourcesSection.editStockCheckbox}}" stepKey="uncheckEditStock"/>
2021
<waitForElementClickable selector="{{AdminEditRoleResourcesSection.deleteStockCheckbox}}" stepKey="waitForDeleteStockToBeClickable"/>
2122
<click selector="{{AdminEditRoleResourcesSection.deleteStockCheckbox}}" stepKey="uncheckDeleteStock"/>
22-
<comment userInput="BIC workaround" stepKey="scrollToTwoFactor"/>
23-
<comment userInput="BIC workaround" stepKey="waitForTwoFactorToBeClickable"/>
24-
<comment userInput="BIC workaround" stepKey="checkTwoFactorCheckbox"/>
23+
<scrollTo selector="{{AdminEditRoleInfoSection.checkboxByRole('Magento_User::acl_anchor')}}" stepKey="scrollToTwoFactor"/>
2524
</actionGroup>
2625
</actionGroups>

0 commit comments

Comments
 (0)