1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="CreateCustomerActionGroup">
<click stepKey="openCustomers" selector="{{AdminMenuSection.customers}}"/>
<waitForAjaxLoad stepKey="waitForCatalogSubmenu" time="5"/>
<click stepKey="clickOnAllCustomers" selector="{{CustomersSubmenuSection.allCustomers}}"/>
<waitForPageLoad stepKey="waitForProductsPage" time="10"/>
<click stepKey="addNewCustomer" selector="{{CustomersPageSection.addNewCustomerButton}}"/>
<waitForPageLoad stepKey="waitForNewProductPage" time="10"/>
<click stepKey="AssociateToWebsite" selector="{{NewCustomerPageSection.associateToWebsite}}"/>
<click stepKey="Group" selector="{{NewCustomerPageSection.group}}"/>
<fillField stepKey="FillFirstName" selector="{{NewCustomerPageSection.firstName}}" userInput="{{NewCustomerData.FirstName}}"/>
<fillField stepKey="FillLastName" selector="{{NewCustomerPageSection.lastName}}" userInput="{{NewCustomerData.LastName}}"/>
<fillField stepKey="FillEmail" selector="{{NewCustomerPageSection.email}}" userInput="{{NewCustomerData.Email}}"/>
<scrollToTopOfPage stepKey="scrollToAddresses"/>
<click stepKey="goToAddresses" selector="{{NewCustomerPageSection.addresses}}"/>
<waitForAjaxLoad stepKey="waitForAddresses" time="5"/>
<click stepKey="AddNewAddress" selector="{{NewCustomerPageSection.addNewAddress}}"/>
<waitForPageLoad stepKey="waitForAddressFields" time="5"/>
<click stepKey="thickBillingAddress" selector="{{NewCustomerPageSection.defaultBillingAddress}}"/>
<click stepKey="thickShippingAddress" selector="{{NewCustomerPageSection.defaultShippingAddress}}"/>
<fillField stepKey="fillFirstNameForAddress" selector="{{NewCustomerPageSection.firstNameForAddress}}" userInput="{{NewCustomerData.AddressFirstName}}"/>
<fillField stepKey="fillLastNameForAddress" selector="{{NewCustomerPageSection.lastNameForAddress}}" userInput="{{NewCustomerData.AddressLastName}}"/>
<fillField stepKey="fillStreetAddress" selector="{{NewCustomerPageSection.streetAddress}}" userInput="{{NewCustomerData.StreetAddress}}"/>
<fillField stepKey="fillCity" selector="{{NewCustomerPageSection.city}}" userInput="{{NewCustomerData.City}}"/>
<click stepKey="openCountry" selector="{{NewCustomerPageSection.country}}"/>
<waitForAjaxLoad stepKey="waitForCountryList" time="5"/>
<click stepKey="chooseCountry" selector="{{NewCustomerPageSection.countryArmenia}}"/>
<fillField stepKey="fillZip" selector="{{NewCustomerPageSection.zip}}" userInput="{{NewCustomerData.Zip}}"/>
<fillField stepKey="fillPhoneNumber" selector="{{NewCustomerPageSection.phoneNumber}}" userInput="{{NewCustomerData.PhoneNumber}}"/>
<waitForPageLoad stepKey="wait" time="10"/>
<click stepKey="save" selector="{{NewCustomerPageSection.saveCustomer}}"/>
<waitForPageLoad stepKey="waitForCustomersPage" time="10"/>
<waitForElementVisible selector="{{NewCustomerPageSection.createdSuccessMessage}}" stepKey="waitForSuccessfullyCreatedMessage" time="20"/>
</actionGroup>
</actionGroups>