15
15
use Magento \Framework \App \Config \ScopeConfigInterface ;
16
16
use Magento \Framework \App \Http ;
17
17
use Magento \Framework \App \Request \Http as HttpRequest ;
18
+ use Magento \Framework \Exception \AlreadyExistsException ;
19
+ use Magento \Framework \Exception \AuthenticationException ;
18
20
use Magento \Framework \Exception \NoSuchEntityException ;
19
21
use Magento \Framework \Intl \DateTimeFactory ;
20
22
use Magento \Framework \Math \Random ;
@@ -528,7 +530,6 @@ private function clearCookieMessagesList(): void
528
530
/**
529
531
* Test to enable password change frequency limit for customer
530
532
*
531
- * @magentoDbIsolation disabled
532
533
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
533
534
* @magentoConfigFixture current_store customer/captcha/enable 0
534
535
* @magentoDataFixture Magento/Customer/_files/customer.php
@@ -556,7 +557,7 @@ public function testEnablePasswordChangeFrequencyLimitForCustomer(): void
556
557
// Updating the limit to greater than 0
557
558
$ this ->resourceConfig ->saveConfig (
558
559
'customer/password/min_time_between_password_reset_requests ' ,
559
- 2 ,
560
+ 1 ,
560
561
ScopeConfigInterface::SCOPE_TYPE_DEFAULT ,
561
562
0
562
563
);
@@ -577,8 +578,8 @@ public function testEnablePasswordChangeFrequencyLimitForCustomer(): void
577
578
MessageInterface::TYPE_ERROR
578
579
);
579
580
580
- // Wait for 2 minutes before resetting password
581
- sleep (120 );
581
+ // Wait for 1 minute before resetting password
582
+ sleep (60 );
582
583
583
584
// Clicking on the forgot password link
584
585
$ this ->getRequest ()->setPostValue ('email ' , $ email );
0 commit comments