1515use Magento \Framework \App \Config \ScopeConfigInterface ;
1616use Magento \Framework \App \Http ;
1717use Magento \Framework \App \Request \Http as HttpRequest ;
18+ use Magento \Framework \Exception \AlreadyExistsException ;
19+ use Magento \Framework \Exception \AuthenticationException ;
1820use Magento \Framework \Exception \NoSuchEntityException ;
1921use Magento \Framework \Intl \DateTimeFactory ;
2022use Magento \Framework \Math \Random ;
@@ -528,7 +530,6 @@ private function clearCookieMessagesList(): void
528530 /**
529531 * Test to enable password change frequency limit for customer
530532 *
531- * @magentoDbIsolation disabled
532533 * @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
533534 * @magentoConfigFixture current_store customer/captcha/enable 0
534535 * @magentoDataFixture Magento/Customer/_files/customer.php
@@ -556,7 +557,7 @@ public function testEnablePasswordChangeFrequencyLimitForCustomer(): void
556557 // Updating the limit to greater than 0
557558 $ this ->resourceConfig ->saveConfig (
558559 'customer/password/min_time_between_password_reset_requests ' ,
559- 2 ,
560+ 1 ,
560561 ScopeConfigInterface::SCOPE_TYPE_DEFAULT ,
561562 0
562563 );
@@ -577,8 +578,8 @@ public function testEnablePasswordChangeFrequencyLimitForCustomer(): void
577578 MessageInterface::TYPE_ERROR
578579 );
579580
580- // Wait for 2 minutes before resetting password
581- sleep (120 );
581+ // Wait for 1 minute before resetting password
582+ sleep (60 );
582583
583584 // Clicking on the forgot password link
584585 $ this ->getRequest ()->setPostValue ('email ' , $ email );
0 commit comments