You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 line
2.6 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="ChangeShippingTaxClassActionGroup">
  11. <annotations>
  12. <description>Goes to the 'Configuration' page for 'Tax'. Sets the 'Tax Class for Shipping' configuration setting to 'Taxable Goods'. Clicks on Save. Validates that the Success Message is present and correct.</description>
  13. </annotations>
  14. <!--Select Configuration menu from Store-->
  15. <click selector="{{AdminMenuSection.stores}}" stepKey="clickOnSTORES"/>
  16. <waitForPageLoad stepKey="waitForConfiguration"/>
  17. <click selector="{{AdminMenuSection.configuration}}" stepKey="clickOnConfigurations"/>
  18. <waitForPageLoad stepKey="waitForSales"/>
  19. <!--Double click the same to fix flaky issue with redirection to Dashboard-->
  20. <click selector="{{AdminMenuSection.stores}}" stepKey="clickOnSTORES1"/>
  21. <waitForPageLoad stepKey="waitForConfiguration1"/>
  22. <click selector="{{AdminMenuSection.configuration}}" stepKey="clickOnConfigurations1"/>
  23. <waitForPageLoad stepKey="waitForSales1" time="5"/>
  24. <!--Change default tax class for Shipping on Taxable Goods-->
  25. <click selector="{{ConfigurationListSection.sales}}" stepKey="clickOnSales"/>
  26. <waitForPageLoad stepKey="waitForPaymentMethods"/>
  27. <click selector="{{AdminConfigureTaxSection.salesTax}}" stepKey="clickOnTax"/>
  28. <waitForPageLoad stepKey="waitForTax"/>
  29. <seeInCurrentUrl url="{{AdminTaxConfigurationPage.url}}" stepKey="adminTaxConfiguration"/>
  30. <seeElement selector="{{AdminConfigureTaxSection.taxClasses}}" stepKey="taxClassSectionC"/>
  31. <click selector="{{AdminConfigureTaxSection.taxClasses}}" stepKey="openTaxClassSection"/>
  32. <click selector="{{AdminConfigureTaxSection.taxShippingClassSystem}}" stepKey="uncheckSystemValue"/>
  33. <selectOption selector="{{AdminConfigureTaxSection.taxClassShipping}}" userInput="Taxable Goods" stepKey="setTaxClassForShipping"/>
  34. <!-- Save the settings -->
  35. <scrollToTopOfPage stepKey="scrollToTop"/>
  36. <click stepKey="saveTaxOptions" selector="{{AdminCategoryMainActionsSection.SaveButton}}"/>
  37. <waitForPageLoad stepKey="waitForTaxSaved"/>
  38. <see stepKey="seeSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the configuration."/>
  39. </actionGroup>
  40. </actionGroups>