Skip to content

Commit 1351b50

Browse files
committed
Merge branch '578-create-existing-customer-frontend' of https://github.com/rogyar/magento-functional-tests-migration into community-tests-migration-pr
2 parents 863c7ad + 85a0235 commit 1351b50

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/SignUpNewUserFromStorefrontActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<arguments>
5858
<argument name="Address"/>
5959
</arguments>
60-
60+
6161
<amOnPage url="customer/address/new/" stepKey="goToAddressPage"/>
6262
<waitForPageLoad stepKey="waitForAddressPage"/>
6363
<fillField stepKey="fillFirstName" selector="{{StorefrontCustomerAddressSection.firstName}}" userInput="{{Address.firstname}}"/>
@@ -154,4 +154,4 @@
154154
<waitForPageLoad stepKey="waitForRegistered" after="clickCreateAccountButton"/>
155155
<remove keyForRemoval="seeThankYouMessage"/>
156156
</actionGroup>
157-
</actionGroups>
157+
</actionGroups>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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="StorefrontCreateExistingCustomerTest">
12+
<annotations>
13+
<features value="Customer"/>
14+
<title value="Attempt to register customer on storefront with existing email"/>
15+
<description value="Attempt to register customer on storefront with existing email"/>
16+
<group value="customers"/>
17+
<group value="mtf_migrated"/>
18+
</annotations>
19+
<before>
20+
<createData entity="Simple_US_Customer" stepKey="customer"/>
21+
</before>
22+
<after>
23+
<deleteData createDataKey="customer" stepKey="deleteCustomer"/>
24+
</after>
25+
26+
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
27+
<actionGroup ref="StorefrontFillCustomerAccountCreationFormActionGroup" stepKey="fillCreateAccountForm">
28+
<argument name="customer" value="$$customer$$"/>
29+
</actionGroup>
30+
<actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="submitCreateAccountForm"/>
31+
<actionGroup ref="AssertMessageCustomerCreateAccountActionGroup" stepKey="seeErrorMessage">
32+
<argument name="messageType" value="error"/>
33+
<argument name="message" value="There is already an account with this email address."/>
34+
</actionGroup>
35+
</test>
36+
</tests>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<data name="customer/data/password" xsi:type="string">123123q#</data>
1515
<data name="customer/data/password_confirmation" xsi:type="string">123123q#</data>
1616
<data name="customer/data/website_id/dataset" xsi:type="string">default</data>
17+
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
1718
<constraint name="Magento\Customer\Test\Constraint\AssertCustomerFailRegisterMessage" />
1819
</variation>
1920
</testCase>

0 commit comments

Comments
 (0)