Skip to content

Commit 47dfddb

Browse files
committed
delete users after tests in mftf (#22833: Short-term admin accounts)
1 parent 91e0604 commit 47dfddb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,10 @@
4242
</actionGroup>
4343
<actionGroup ref="AssertMessageOnAdminLoginActionGroup" stepKey="checkLoginMessage" />
4444

45+
<!-- delete user -->
46+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
47+
<actionGroup ref="AdminDeleteCustomUserActionGroup" stepKey="deleteUser">
48+
<argument name="user" value="NewAdminUser" />
49+
</actionGroup>
4550
</test>
4651
</tests>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,10 @@
4242
</actionGroup>
4343
<actionGroup ref="AssertAdminDashboardPageIsVisibleActionGroup" stepKey="seeDashboardPage"/>
4444

45+
<actionGroup ref="logout" stepKey="logoutAsUserWithValidExpiration"/>
46+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
47+
<actionGroup ref="AdminDeleteCustomUserActionGroup" stepKey="deleteUser">
48+
<argument name="user" value="NewAdminUser"/>
49+
</actionGroup>
4550
</test>
4651
</tests>

0 commit comments

Comments
 (0)