Skip to content

Commit 02c13f0

Browse files
committed
[B2B-3098]: MFTF
- Changing AdminSaveUserRoleActionGroup for 2FA to use conditionalClick
1 parent cde1785 commit 02c13f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TwoFactorAuth/Test/Mftf/ActionGroup/AdminSaveUserRoleActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<annotations>
2424
<description>Merges with CE actionGroup. Adds steps to enable the 2FA ACL rule when creating a User Role.</description>
2525
</annotations>
26-
<waitForElementVisible selector="{{AdminEditRoleResourcesSection.resourceCheckboxLink('Magento_TwoFactorAuth::tfa', 'Two Factor Auth')}}" stepKey="waitForResourceCheckboxVisible" before="checkResource"/>
27-
<click selector="{{AdminEditRoleResourcesSection.resourceCheckboxLink('Magento_TwoFactorAuth::tfa', 'Two Factor Auth')}}" stepKey="checkResource" before="seeCheckedResource"/>
28-
<seeElement selector="{{AdminEditRoleResourcesSection.resourceCheckbox('Magento_TwoFactorAuth::tfa')}}" stepKey="seeCheckedResource" before="clickSaveRoleButton"/>
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"/>
2929
</actionGroup>
3030
</actionGroups>

0 commit comments

Comments
 (0)