Skip to content

Commit 753c831

Browse files
committed
MC-10913: Customer Login on Storefront with Incorrect Credentials
1 parent b46b8be commit 753c831

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

app/code/Magento/Customer/Test/Mftf/Page/StorefrontCustomerSignInPage.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
1111
<page name="StorefrontCustomerSignInPage" url="/customer/account/login/" area="storefront" module="Magento_Customer">
1212
<section name="StorefrontCustomerSignInFormSection" />
13+
<section name="StorefrontCustomerLoginMessagesSection"/>
1314
</page>
1415
</pages>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="StorefrontCustomerLoginMessagesSection">
12+
<element name="errorMessage" type="text" selector=".message-error"/>
13+
</section>
14+
</sections>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StorefrontLoginWithIncorrectCredentialsTest">
12+
<annotations>
13+
<features value="Customer"/>
14+
<stories value="Customer Login"/>
15+
<title value="Customer Login on Storefront with Incorrect Credentials"/>
16+
<description value="Customer Login on Storefront with Incorrect Credentials"/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="MC-10913"/>
19+
<group value="Customer"/>
20+
<group value="mtf-migrated"/>
21+
</annotations>
22+
<before>
23+
<createData stepKey="customer" entity="Simple_US_Customer"/>
24+
</before>
25+
<after>
26+
<deleteData stepKey="deleteCustomer" createDataKey="customer" />
27+
</after>
28+
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."/>
34+
</test>
35+
</tests>

0 commit comments

Comments
 (0)