1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?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>
|