Skip to content

Commit 0395357

Browse files
committed
MAGETWO-58133: Incorrect number of login failures to lock Customer account
1 parent 935dcd7 commit 0395357

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockCustomerOnEditPageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function test(
125125

126126
$this->cmsIndex->getLinksBlock()->openLink('My Account');
127127
$this->customerAccountIndex->getInfoBlock()->openChangePassword();
128-
for ($i = 0; $i <= $attempts; $i++) {
128+
for ($i = 0; $i < $attempts; $i++) {
129129
if ($i > 0) {
130130
$this->customerAccountIndex->getInfoBlock()->checkChangePassword();
131131
}

dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockCustomerOnEditPageTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<data name="customer/data/current_password" xsi:type="string">incorrect password</data>
1515
<data name="customer/data/password" xsi:type="string">123123^a</data>
1616
<data name="customer/data/password_confirmation" xsi:type="string">123123^a</data>
17-
<data name="attempts" xsi:type="string">6</data>
17+
<data name="attempts" xsi:type="string">7</data>
1818
<constraint name="Magento\Security\Test\Constraint\AssertCustomerIsLocked" />
1919
</variation>
2020
</testCase>

0 commit comments

Comments
 (0)