No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

35 líneas
2.4 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="AdminCreateCustomerWithWebSiteAndGroupActionGroup">
  11. <annotations>
  12. <description>Goes to the Customer grid page. Click on 'Add New Customer'. Fills provided Customer Data. Fill provided Customer Address data. Assigns Product to Website and Store View. Clicks on Save.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="customerData" defaultValue="Simple_US_Customer"/>
  16. <argument name="website" type="string" defaultValue="{{_defaultWebsite.name}}"/>
  17. <argument name="storeView" type="string" defaultValue="{{_defaultStore.name}}"/>
  18. </arguments>
  19. <amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomersPage"/>
  20. <click stepKey="addNewCustomer" selector="{{AdminCustomerGridMainActionsSection.addNewCustomer}}"/>
  21. <selectOption stepKey="selectWebSite" selector="{{AdminCustomerAccountInformationSection.associateToWebsite}}" userInput="{{website}}"/>
  22. <selectOption selector="{{AdminCustomerAccountInformationSection.group}}" userInput="{{customerData.group}}" stepKey="selectCustomerGroup"/>
  23. <fillField stepKey="FillFirstName" selector="{{AdminCustomerAccountInformationSection.firstName}}" userInput="{{customerData.firstname}}"/>
  24. <fillField stepKey="FillLastName" selector="{{AdminCustomerAccountInformationSection.lastName}}" userInput="{{customerData.lastname}}"/>
  25. <fillField stepKey="FillEmail" selector="{{AdminCustomerAccountInformationSection.email}}" userInput="{{customerData.email}}"/>
  26. <selectOption stepKey="selectStoreView" selector="{{AdminCustomerAccountInformationSection.storeView}}" userInput="{{storeView}}"/>
  27. <waitForElement selector="{{AdminCustomerAccountInformationSection.storeView}}" stepKey="waitForCustomerStoreViewExpand"/>
  28. <click stepKey="save" selector="{{AdminCustomerAccountInformationSection.saveCustomer}}"/>
  29. <waitForPageLoad stepKey="waitForCustomersPage"/>
  30. <see stepKey="seeSuccessMessage" userInput="You saved the customer."/>
  31. </actionGroup>
  32. </actionGroups>