Skip to content

Commit 1e3ff51

Browse files
committed
Merge remote-tracking branch 'origin/MC-10913' into mtf-eol
2 parents c7d6bd0 + 9a6b215 commit 1e3ff51

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-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>

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/LoginOnFrontendFailTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<testCase name="Magento\Customer\Test\TestCase\LoginOnFrontendFailTest" summary="Check error message with wrong credentials" ticketId="MAGETWO-16883">
1010
<variation name="LoginOnFrontendFailTestVariation1">
1111
<data name="customer/dataset" xsi:type="string">default</data>
12+
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
1213
<constraint name="Magento\Customer\Test\Constraint\AssertCustomerLoginErrorMessage" />
1314
</variation>
1415
</testCase>

0 commit comments

Comments
 (0)