AdminCustomerTaxClassActionGroup.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <!--Add Customer Tax Class-->
  11. <actionGroup name="addCustomerTaxClass">
  12. <arguments>
  13. <argument name="customerTaxClassName" type="string"/>
  14. </arguments>
  15. <!--Click Additional Settings-->
  16. <click stepKey="clickAdditionalSettings" selector="{{AdminTaxRulesSection.additionalSettings}}"/>
  17. <!--Click Product Add New Tax Class Button-->
  18. <click stepKey="clickCustomerAddNewTaxClassBtn" selector="{{AdminTaxRulesSection.customerAddNewTaxClass}}"/>
  19. <!--Fill field-->
  20. <fillField stepKey="fillCustomerNewTaxClass" selector="{{AdminTaxRulesSection.fieldCustomerNewTaxClass}}" userInput="{{customerTaxClassName}}"/>
  21. <!-- Save Product tax rate -->
  22. <click stepKey="saveProdTaxRate" selector="{{AdminTaxRulesSection.saveCustomerNewTaxClass}}"/>
  23. </actionGroup>
  24. <!--Delete Product Tax Class-->
  25. <actionGroup name="deleteCustomerTaxClass">
  26. <arguments>
  27. <argument name="taxClassName" type="string"/>
  28. </arguments>
  29. <!-- Go to tax rule page -->
  30. <amOnPage url="{{AdminNewTaxRulePage.url}}" stepKey="goToNewTaxRulePage"/>
  31. <waitForPageLoad stepKey="waitForTaxRatePage"/>
  32. <click stepKey="clickAdditionalSettings" selector="{{AdminTaxRulesSection.additionalSettings}}"/>
  33. <scrollTo stepKey="scrollToAdditionalSettings" selector="{{AdminTaxRulesSection.additionalSettings}}"/>
  34. <moveMouseOver stepKey="hoverDeleteElement" selector="{{AdminTaxRulesSection.deleteTaxClassName(taxClassName)}}"/>
  35. <click stepKey="deleteFirstTaxClass" selector="{{AdminTaxRulesSection.deleteTaxClass(taxClassName)}}"/>
  36. <waitForElementVisible selector="{{AdminTaxRulesSection.popUpDialogOK}}" stepKey="waitForElementBecomeVisible"/>
  37. <click stepKey="acceptPopUpDialog" selector="{{AdminTaxRulesSection.popUpDialogOK}}"/>
  38. <waitForPageLoad stepKey="waitForProductTaxClassDeleted"/>
  39. </actionGroup>
  40. </actionGroups>