Skip to content

Commit 9e6f316

Browse files
committed
fix invalid date input in mftf test (#22833: Short-term admin accounts)
1 parent 6b8e89e commit 9e6f316

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Security/Test/Mftf/Test/AdminLoginAdminUserWithInvalidExpiration.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,22 @@
1717
<description value="Try to login as a user with an invalid expiration date."/>
1818
<testCaseId value=""/>
1919
<severity value="CRITICAL"/>
20-
<group value="security"/>
20+
<group value="debug"/>
2121
</annotations>
2222

2323
<before>
2424
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2525
</before>
2626

2727
<actionGroup ref="AdminOpenNewUserPageActionGroup" stepKey="openNewUserPage" />
28-
<generateDate date="+2 minute" format="M d, Y h:i:s" stepKey="expiresDateTime"/>
28+
<generateDate date="+2 minute" format="M d, Y h:i A" stepKey="expiresDateTime"/>
2929
<actionGroup ref="AdminFillInUserWithExpirationActionGroup" stepKey="fillInNewUserWithValidExpiration">
3030
<argument name="expires_at" value="{$expiresDateTime}"/>
3131
</actionGroup>
3232
<grabValueFrom selector="{{AdminNewUserFormSection.username}}" stepKey="grabUsername"/>
3333
<grabValueFrom selector="{{AdminNewUserFormSection.password}}" stepKey="grabPassword"/>
34+
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
35+
<click selector="{{AdminNewUserFormSection.userInfoTab}}" stepKey="openUserInfoTab"/>
3436
<actionGroup ref="AdminSaveUserSuccessActionGroup" stepKey="saveNewUserWithValidExpirationSuccess"/>
3537
<actionGroup ref="logout" stepKey="logout"/>
3638
<wait time="120" stepKey="waitForUserToExpire"/>

0 commit comments

Comments
 (0)