Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

42 строки
2.3 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="AdminUpdateCustomerGroupByEmailActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Customers grid page. Filters the grid for the provided Email Address. Edits the Customer. Updates the Customer Group with the provided Customer Group. Clicks on Save.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="emailAddress"/>
  16. <argument name="customerGroup" type="string"/>
  17. </arguments>
  18. <amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomerPage01"/>
  19. <!-- Start of Action Group: searchAdminDataGridByKeyword -->
  20. <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters0"/>
  21. <fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="{{emailAddress}}" stepKey="fillKeywordSearchField01"/>
  22. <click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch01"/>
  23. <waitForPageLoad stepKey="waitForPageLoad02"/>
  24. <!-- End of Action Group: searchAdminDataGridByKeyword -->
  25. <click selector="{{AdminGridRow.editByValue(emailAddress)}}" stepKey="clickOnCustomer01"/>
  26. <waitForPageLoad stepKey="waitForPageLoad03"/>
  27. <conditionalClick selector="{{AdminCustomerAccountInformationSection.accountInformationTab}}" dependentSelector="{{AdminCustomerAccountInformationSection.accountInformationTab}}" visible="true" stepKey="clickOnAccountInformation01"/>
  28. <waitForPageLoad stepKey="waitForPageLoad04"/>
  29. <click selector="{{AdminCustomerAccountInformationSection.group}}" stepKey="clickOnCustomerGroup01"/>
  30. <selectOption selector="{{AdminCustomerAccountInformationSection.group}}" userInput="{{customerGroup}}" stepKey="selectCustomerGroup01"/>
  31. <click selector="{{AdminMainActionsSection.save}}" stepKey="clickOnSave01"/>
  32. <waitForPageLoad stepKey="waitForPageLoad05"/>
  33. </actionGroup>
  34. </actionGroups>