Skip to content

Commit b3e2fee

Browse files
Merge branch 'ACQE-8925' into ACQE-functional-deployment-version22
2 parents 913bf1a + 5105054 commit b3e2fee

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/code/Magento/User/Test/Mftf/Test/AdminResetUserPasswordFailedTest.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@
2121
<group value="pr_exclude"/>
2222
<group value="cloud"/>
2323
</annotations>
24-
24+
<before>
25+
<!-- Disable IP-based time limit to prevent conflicts from concurrent/previous test runs -->
26+
<magentoCLI command="config:set admin/security/min_time_between_password_reset_requests 0" stepKey="disableTimeLimitBetweenRequests"/>
27+
<!-- Set max attempts to 1 to ensure second request fails -->
28+
<magentoCLI command="config:set admin/security/max_number_password_reset_requests 1" stepKey="setMaxPasswordResetRequests"/>
29+
</before>
30+
<after>
31+
<!-- Restore default rate limiting configuration -->
32+
<magentoCLI command="config:set admin/security/min_time_between_password_reset_requests 10" stepKey="restoreTimeLimitBetweenRequests"/>
33+
<magentoCLI command="config:set admin/security/max_number_password_reset_requests 5" stepKey="restoreMaxPasswordResetRequests"/>
34+
</after>
2535
<!-- First attempt to reset password -->
2636
<actionGroup ref="AdminOpenForgotPasswordPageActionGroup" stepKey="openAdminForgotPasswordPage1"/>
2737
<actionGroup ref="AdminFillForgotPasswordFormActionGroup" stepKey="fillAdminForgotPasswordForm1">

0 commit comments

Comments
 (0)