Skip to content

Commit ba0928c

Browse files
committed
AC-2851::Added the code coverage for the change - expiration date issue
1 parent 97f85b9 commit ba0928c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/code/Magento/Customer/Test/Mftf/Section/AdminCreateUserSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<element name="passwordTextField" type="input" selector="#user_password"/>
2020
<element name="pwConfirmationTextField" type="input" selector="#user_confirmation"/>
2121
<element name="currentPasswordField" type="input" selector="#user_current_password"/>
22+
<element name="expireAtField" type="input" selector="#user_expires_at"/>
2223
<element name="createdRoleInUserPage" type="text" selector="//tr//td[contains(text(), '{{arg}}')]" parameterized="true"/>
2324
<element name="userRoleTab" type="button" selector="#page_tabs_roles_section"/>
2425
<element name="saveButton" type="button" selector="#save"/>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
<fillField selector="{{AdminCreateUserSection.passwordTextField}}" userInput="{{user.password}}" stepKey="enterPassword"/>
2727
<fillField selector="{{AdminCreateUserSection.pwConfirmationTextField}}" userInput="{{user.password}}" stepKey="confirmPassword"/>
2828
<fillField selector="{{AdminCreateUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="enterCurrentPassword"/>
29+
<!-- Generate default value -->
30+
<generateDate date="+75 year" format="m/j/Y g:i A" stepKey="generateExpireDate"/>
31+
<fillField selector="{{AdminCreateUserSection.expireAtField}}" userInput="{$generateExpireDate}" stepKey="enterExpireAtField"/>
2932
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
3033
<click stepKey="clickUserRole" selector="{{AdminCreateUserSection.userRoleTab}}"/>
3134
<click stepKey="chooseRole" selector="{{AdminStoreSection.createdRoleInUserPage(role.name)}}"/>

0 commit comments

Comments
 (0)