|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="StorefrontCreateExistingCustomerTest"> |
| 11 | + <test name="StorefrontCreateExistingCustomerTest" extends="StorefrontCreateCustomerTest"> |
12 | 12 | <annotations>
|
13 | 13 | <features value="Customer"/>
|
14 | 14 | <stories value="Customer Registration"/>
|
15 |
| - <title value="Attempt to register customer on storefront with existing email"/> |
16 |
| - <description value="Attempt to register customer on storefront with existing email"/> |
| 15 | + <title value="As a Customer I should not be able to register an account using already registered e-mail"/> |
| 16 | + <description value="As a Customer I should not be able to register an account using already registered e-mail"/> |
17 | 17 | <testCaseId value="MC-10907"/>
|
18 | 18 | <severity value="MAJOR"/>
|
19 | 19 | <group value="customers"/>
|
20 | 20 | <group value="mtf_migrated"/>
|
21 | 21 | </annotations>
|
22 | 22 | <before>
|
23 |
| - <createData entity="Simple_US_Customer" stepKey="customer"/> |
| 23 | + <createData entity="Simple_US_Customer" stepKey="createCustomer"/> |
24 | 24 | </before>
|
25 | 25 | <after>
|
26 |
| - <deleteData createDataKey="customer" stepKey="deleteCustomer"/> |
| 26 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
27 | 27 | </after>
|
28 | 28 |
|
29 |
| - <actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/> |
30 | 29 | <actionGroup ref="StorefrontFillCustomerAccountCreationFormActionGroup" stepKey="fillCreateAccountForm">
|
31 |
| - <argument name="customer" value="$$customer$$"/> |
| 30 | + <argument name="customer" value="$$createCustomer$$"/> |
32 | 31 | </actionGroup>
|
33 |
| - <actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="submitCreateAccountForm"/> |
| 32 | + <remove keyForRemoval="seeSuccessMessage"/> |
34 | 33 | <actionGroup ref="AssertMessageCustomerCreateAccountActionGroup" stepKey="seeErrorMessage">
|
35 | 34 | <argument name="messageType" value="error"/>
|
36 | 35 | <argument name="message" value="There is already an account with this email address."/>
|
|
0 commit comments