Skip to content

Commit cda0b90

Browse files
ENGCOM-7509: StorefrontLoginWithIncorrectCredentialsTest refactored #28039
- Merge Pull Request #28039 from ajithkumar-maragathavel/magento2:customer-login-mftf - Merged commits: 1. 18a92dd 2. 5f29efe
2 parents 2d09485 + 5f29efe commit cda0b90

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app/code/Magento/Customer/Test/Mftf/Test/StorefrontLoginWithIncorrectCredentialsTest.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@
2626
<deleteData stepKey="deleteCustomer" createDataKey="customer" />
2727
</after>
2828

29-
<amOnPage stepKey="amOnSignInPage" url="{{StorefrontCustomerSignInPage.url}}"/>
30-
<fillField stepKey="fillEmail" userInput="$$customer.email$$" selector="{{StorefrontCustomerSignInFormSection.emailField}}"/>
31-
<fillField stepKey="fillPassword" userInput="$$customer.password$$INVALID" selector="{{StorefrontCustomerSignInFormSection.passwordField}}"/>
32-
<click stepKey="clickSignInAccountButton" selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}"/>
33-
<see stepKey="seeErrorMessage" selector="{{StorefrontCustomerLoginMessagesSection.errorMessage}}" userInput="The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later."/>
29+
<actionGroup ref="StorefrontOpenCustomerLoginPageActionGroup" stepKey="goToSignInPage"/>
30+
<actionGroup ref="StorefrontFillCustomerLoginFormWithWrongPasswordActionGroup" stepKey="fillLoginFormWithCustomerData">
31+
<argument name="customer" value="$$customer$$"/>
32+
</actionGroup>
33+
<actionGroup ref="StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey="clickSignInAccountButtonFirstAttempt"/>
34+
<actionGroup ref="AssertMessageCustomerLoginActionGroup" stepKey="seeErrorMessageAfterFirstAttempt">
35+
<argument name="messageType" value="error"/>
36+
<argument name="message" value="The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later"/>
37+
</actionGroup>
3438
</test>
3539
</tests>

0 commit comments

Comments
 (0)