You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
3.7 KiB

  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. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  10. <actionGroup name="CreateCustomerActionGroup">
  11. <annotations>
  12. <description>Goes to the Add Customers page via the Admin Nav Menu. Fills in the Customer details. Clicks on Save. PLEASE NOTE: The Customer data is Hardcoded using 'NewCustomerData'.</description>
  13. </annotations>
  14. <click stepKey="openCustomers" selector="{{AdminMenuSection.customers}}"/>
  15. <waitForAjaxLoad stepKey="waitForCatalogSubmenu" time="5"/>
  16. <click stepKey="clickOnAllCustomers" selector="{{CustomersSubmenuSection.allCustomers}}"/>
  17. <waitForPageLoad stepKey="waitForProductsPage" time="10"/>
  18. <click stepKey="addNewCustomer" selector="{{CustomersPageSection.addNewCustomerButton}}"/>
  19. <waitForPageLoad stepKey="waitForNewProductPage" time="10"/>
  20. <click stepKey="AssociateToWebsite" selector="{{NewCustomerPageSection.associateToWebsite}}"/>
  21. <click stepKey="Group" selector="{{NewCustomerPageSection.group}}"/>
  22. <fillField stepKey="FillFirstName" selector="{{NewCustomerPageSection.firstName}}" userInput="{{NewCustomerData.FirstName}}"/>
  23. <fillField stepKey="FillLastName" selector="{{NewCustomerPageSection.lastName}}" userInput="{{NewCustomerData.LastName}}"/>
  24. <fillField stepKey="FillEmail" selector="{{NewCustomerPageSection.email}}" userInput="{{NewCustomerData.Email}}"/>
  25. <scrollToTopOfPage stepKey="scrollToAddresses"/>
  26. <click stepKey="goToAddresses" selector="{{NewCustomerPageSection.addresses}}"/>
  27. <waitForAjaxLoad stepKey="waitForAddresses" time="5"/>
  28. <click stepKey="AddNewAddress" selector="{{NewCustomerPageSection.addNewAddress}}"/>
  29. <waitForPageLoad stepKey="waitForAddressFields" time="5"/>
  30. <click stepKey="thickBillingAddress" selector="{{NewCustomerPageSection.defaultBillingAddress}}"/>
  31. <click stepKey="thickShippingAddress" selector="{{NewCustomerPageSection.defaultShippingAddress}}"/>
  32. <fillField stepKey="fillFirstNameForAddress" selector="{{NewCustomerPageSection.firstNameForAddress}}" userInput="{{NewCustomerData.AddressFirstName}}"/>
  33. <fillField stepKey="fillLastNameForAddress" selector="{{NewCustomerPageSection.lastNameForAddress}}" userInput="{{NewCustomerData.AddressLastName}}"/>
  34. <fillField stepKey="fillStreetAddress" selector="{{NewCustomerPageSection.streetAddress}}" userInput="{{NewCustomerData.StreetAddress}}"/>
  35. <fillField stepKey="fillCity" selector="{{NewCustomerPageSection.city}}" userInput="{{NewCustomerData.City}}"/>
  36. <click stepKey="openCountry" selector="{{NewCustomerPageSection.country}}"/>
  37. <waitForAjaxLoad stepKey="waitForCountryList" time="5"/>
  38. <click stepKey="chooseCountry" selector="{{NewCustomerPageSection.countryArmenia}}"/>
  39. <fillField stepKey="fillZip" selector="{{NewCustomerPageSection.zip}}" userInput="{{NewCustomerData.Zip}}"/>
  40. <fillField stepKey="fillPhoneNumber" selector="{{NewCustomerPageSection.phoneNumber}}" userInput="{{NewCustomerData.PhoneNumber}}"/>
  41. <waitForPageLoad stepKey="wait" time="10"/>
  42. <click stepKey="save" selector="{{NewCustomerPageSection.saveCustomer}}"/>
  43. <waitForPageLoad stepKey="waitForCustomersPage" time="10"/>
  44. <waitForElementVisible selector="{{NewCustomerPageSection.createdSuccessMessage}}" stepKey="waitForSuccessfullyCreatedMessage" time="20"/>
  45. </actionGroup>
  46. </actionGroups>