File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 12
12
<argument name =" customerData" defaultValue =" Simple_US_Customer" />
13
13
</arguments >
14
14
<amOnPage url =" {{AdminNewCustomerPage.url}}" stepKey =" navigateToNewCustomerPage" />
15
- <fillField userInput =" {{Simple_Customer_Without_Address .firstname}}" selector =" {{AdminCustomerAccountInformationSection.firstName}}" stepKey =" fillFirstName" />
16
- <fillField userInput =" {{Simple_Customer_Without_Address .lastname}}" selector =" {{AdminCustomerAccountInformationSection.lastName}}" stepKey =" fillLastName" />
17
- <fillField userInput =" {{Simple_Customer_Without_Address .email}}" selector =" {{AdminCustomerAccountInformationSection.email}}" stepKey =" fillEmail" />
18
- <click selector =" {{AdminCustomerMainActionsSection.saveButton }}" stepKey =" saveCustomer" />
19
- <seeElement selector = " {{AdminCustomerMessagesSection.successMessage}} " stepKey =" assertSuccessMessage " />
20
- <reloadPage stepKey =" reloadPage " />
15
+ <fillField userInput =" {{customerData .firstname}}" selector =" {{AdminCustomerAccountInformationSection.firstName}}" stepKey =" fillFirstName" />
16
+ <fillField userInput =" {{customerData .lastname}}" selector =" {{AdminCustomerAccountInformationSection.lastName}}" stepKey =" fillLastName" />
17
+ <fillField userInput =" {{customerData .email}}" selector =" {{AdminCustomerAccountInformationSection.email}}" stepKey =" fillEmail" />
18
+ <click selector =" {{AdminMainActionsSection.save }}" stepKey =" saveCustomer" />
19
+ <waitForPageLoad stepKey =" waitForCustomerPageLoad " />
20
+ <see userInput = " You saved the customer. " selector = " {{AdminCustomerMessagesSection.successMessage}} " stepKey =" seeSuccessMessage " />
21
21
</actionGroup >
22
22
</actionGroups >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
11
<test name =" AdminVerifyCustomerAddressStateContainValuesOnceTest" >
12
12
<annotations >
13
- <stories value =" Verify customer address state" />
13
+ <features value =" Customer" />
14
+ <stories value =" Update Customer Address" />
14
15
<title value =" State/Province dropdown contain values once" />
15
16
<description value =" When editing a customer in the backend from the Magento Admin Panel the State/Province should only be listed once" />
16
17
<severity value =" MAJOR" />
25
26
<after >
26
27
<deleteData createDataKey =" customer" stepKey =" deleteFirstCustomer" />
27
28
<actionGroup ref =" AdminDeleteCustomerActionGroup" stepKey =" deleteSecondCustomer" >
28
- <argument name =" customerEmail" value =" Simple_Customer_Without_Address .email" />
29
+ <argument name =" customerEmail" value =" Simple_US_Customer .email" />
29
30
</actionGroup >
31
+ <actionGroup ref =" AdminClearCustomersFiltersActionGroup" stepKey =" clearFilters" />
30
32
<actionGroup ref =" logout" stepKey =" logout" />
31
33
</after >
32
34
54
56
55
57
<!-- Select new created customer, Click Edit mode-->
56
58
<actionGroup ref =" OpenEditCustomerFromAdminActionGroup" stepKey =" openEditCustomerPageWithoutAddresses" >
57
- <argument name =" customer" value =" Simple_Customer_Without_Address " />
59
+ <argument name =" customer" value =" Simple_US_Customer " />
58
60
</actionGroup >
59
61
60
62
<!-- Select Addresses tab, Click on create new addresses btn-->
You can’t perform that action at this time.
0 commit comments