AdminUpdateCustomerGroupActionGroup.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <arguments>
  12. <argument name="emailAddress"/>
  13. <argument name="customerGroup" type="string"/>
  14. </arguments>
  15. <amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomerPage01"/>
  16. <!-- Start of Action Group: searchAdminDataGridByKeyword -->
  17. <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters0"/>
  18. <fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="{{emailAddress}}" stepKey="fillKeywordSearchField01"/>
  19. <click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch01"/>
  20. <waitForPageLoad stepKey="waitForPageLoad02"/>
  21. <!-- End of Action Group: searchAdminDataGridByKeyword -->
  22. <click selector="{{AdminGridRow.editByValue(emailAddress)}}" stepKey="clickOnCustomer01"/>
  23. <waitForPageLoad stepKey="waitForPageLoad03"/>
  24. <conditionalClick selector="{{AdminCustomerAccountInformationSection.accountInformationTab}}" dependentSelector="{{AdminCustomerAccountInformationSection.accountInformationTab}}" visible="true" stepKey="clickOnAccountInformation01"/>
  25. <waitForPageLoad stepKey="waitForPageLoad04"/>
  26. <click selector="{{AdminCustomerAccountInformationSection.group}}" stepKey="clickOnCustomerGroup01"/>
  27. <selectOption selector="{{AdminCustomerAccountInformationSection.group}}" userInput="{{customerGroup}}" stepKey="selectCustomerGroup01"/>
  28. <click selector="{{AdminMainActionsSection.save}}" stepKey="clickOnSave01"/>
  29. <waitForPageLoad stepKey="waitForPageLoad05"/>
  30. </actionGroup>
  31. </actionGroups>