File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
app/code/Magento/Customer/Test/Mftf
dev/tests/functional/tests/app/Magento/Customer/Test/TestCase Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 57
57
<arguments >
58
58
<argument name =" Address" />
59
59
</arguments >
60
-
60
+
61
61
<amOnPage url =" customer/address/new/" stepKey =" goToAddressPage" />
62
62
<waitForPageLoad stepKey =" waitForAddressPage" />
63
63
<fillField stepKey =" fillFirstName" selector =" {{StorefrontCustomerAddressSection.firstName}}" userInput =" {{Address.firstname}}" />
154
154
<waitForPageLoad stepKey =" waitForRegistered" after =" clickCreateAccountButton" />
155
155
<remove keyForRemoval =" seeThankYouMessage" />
156
156
</actionGroup >
157
- </actionGroups >
157
+ </actionGroups >
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 14
14
<data name =" customer/data/password" xsi : type =" string" >123123q#</data >
15
15
<data name =" customer/data/password_confirmation" xsi : type =" string" >123123q#</data >
16
16
<data name =" customer/data/website_id/dataset" xsi : type =" string" >default</data >
17
+ <data name =" tag" xsi : type =" string" >mftf_migrated:yes</data >
17
18
<constraint name =" Magento\Customer\Test\Constraint\AssertCustomerFailRegisterMessage" />
18
19
</variation >
19
20
</testCase >
You can’t perform that action at this time.
0 commit comments