CreateCustomerActionGroup.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <click stepKey="openCustomers" selector="{{AdminMenuSection.customers}}"/>
  12. <waitForAjaxLoad stepKey="waitForCatalogSubmenu" time="5"/>
  13. <click stepKey="clickOnAllCustomers" selector="{{CustomersSubmenuSection.allCustomers}}"/>
  14. <waitForPageLoad stepKey="waitForProductsPage" time="10"/>
  15. <click stepKey="addNewCustomer" selector="{{CustomersPageSection.addNewCustomerButton}}"/>
  16. <waitForPageLoad stepKey="waitForNewProductPage" time="10"/>
  17. <click stepKey="AssociateToWebsite" selector="{{NewCustomerPageSection.associateToWebsite}}"/>
  18. <click stepKey="Group" selector="{{NewCustomerPageSection.group}}"/>
  19. <fillField stepKey="FillFirstName" selector="{{NewCustomerPageSection.firstName}}" userInput="{{NewCustomerData.FirstName}}"/>
  20. <fillField stepKey="FillLastName" selector="{{NewCustomerPageSection.lastName}}" userInput="{{NewCustomerData.LastName}}"/>
  21. <fillField stepKey="FillEmail" selector="{{NewCustomerPageSection.email}}" userInput="{{NewCustomerData.Email}}"/>
  22. <scrollToTopOfPage stepKey="scrollToAddresses"/>
  23. <click stepKey="goToAddresses" selector="{{NewCustomerPageSection.addresses}}"/>
  24. <waitForAjaxLoad stepKey="waitForAddresses" time="5"/>
  25. <click stepKey="AddNewAddress" selector="{{NewCustomerPageSection.addNewAddress}}"/>
  26. <waitForPageLoad stepKey="waitForAddressFields" time="5"/>
  27. <click stepKey="thickBillingAddress" selector="{{NewCustomerPageSection.defaultBillingAddress}}"/>
  28. <click stepKey="thickShippingAddress" selector="{{NewCustomerPageSection.defaultShippingAddress}}"/>
  29. <fillField stepKey="fillFirstNameForAddress" selector="{{NewCustomerPageSection.firstNameForAddress}}" userInput="{{NewCustomerData.AddressFirstName}}"/>
  30. <fillField stepKey="fillLastNameForAddress" selector="{{NewCustomerPageSection.lastNameForAddress}}" userInput="{{NewCustomerData.AddressLastName}}"/>
  31. <fillField stepKey="fillStreetAddress" selector="{{NewCustomerPageSection.streetAddress}}" userInput="{{NewCustomerData.StreetAddress}}"/>
  32. <fillField stepKey="fillCity" selector="{{NewCustomerPageSection.city}}" userInput="{{NewCustomerData.City}}"/>
  33. <click stepKey="openCountry" selector="{{NewCustomerPageSection.country}}"/>
  34. <waitForAjaxLoad stepKey="waitForCountryList" time="5"/>
  35. <click stepKey="chooseCountry" selector="{{NewCustomerPageSection.countryArmenia}}"/>
  36. <fillField stepKey="fillZip" selector="{{NewCustomerPageSection.zip}}" userInput="{{NewCustomerData.Zip}}"/>
  37. <fillField stepKey="fillPhoneNumber" selector="{{NewCustomerPageSection.phoneNumber}}" userInput="{{NewCustomerData.PhoneNumber}}"/>
  38. <waitForPageLoad stepKey="wait" time="10"/>
  39. <click stepKey="save" selector="{{NewCustomerPageSection.saveCustomer}}"/>
  40. <waitForPageLoad stepKey="waitForCustomersPage" time="10"/>
  41. <waitForElementVisible selector="{{NewCustomerPageSection.createdSuccessMessage}}" stepKey="waitForSuccessfullyCreatedMessage" time="20"/>
  42. </actionGroup>
  43. </actionGroups>