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.
 
 
 
 
 
 

38 lines
2.5 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="SetConditionForActionsInCartPriceRuleActionGroup">
  11. <annotations>
  12. <description>Sets the provided Condition (Actions Aggregator/Value, Child Attribute and Action Value) for Actions on the Admin Cart Price Rule creation/edit page.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="actionsAggregator" type="string" defaultValue="ANY"/>
  16. <argument name="actionsValue" type="string" defaultValue="FALSE"/>
  17. <argument name="childAttribute" type="string" defaultValue="Category"/>
  18. <argument name="actionValue" type="string"/>
  19. </arguments>
  20. <click selector="{{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey="clickOnActionTab"/>
  21. <click selector="{{AdminCartPriceRulesFormSection.condition('ALL')}}" stepKey="clickToChooseOption"/>
  22. <selectOption selector="{{AdminCartPriceRulesFormSection.actionsAggregator}}" userInput="{{actionsAggregator}}" stepKey="selectCondition"/>
  23. <click selector="{{AdminCartPriceRulesFormSection.condition('TRUE')}}" stepKey="clickToChooseOption2"/>
  24. <selectOption selector="{{AdminCartPriceRulesFormSection.actionsValue}}" userInput="{{actionsValue}}" stepKey="selectCondition2"/>
  25. <click selector="{{AdminCartPriceRulesFormSection.conditions}}" stepKey="selectActionConditions"/>
  26. <waitForPageLoad stepKey="waitForDropDownOpened"/>
  27. <selectOption selector="{{AdminCartPriceRulesFormSection.childAttribute}}" userInput="{{childAttribute}}" stepKey="selectAttribute"/>
  28. <waitForPageLoad stepKey="waitForOperatorOpened"/>
  29. <click selector="{{AdminCartPriceRulesFormSection.condition('...')}}" stepKey="clickToChooseOption3"/>
  30. <fillField selector="{{AdminCartPriceRulesFormSection.actionValue}}" userInput="{{actionValue}}" stepKey="fillActionValue"/>
  31. <click selector="{{AdminCartPriceRulesFormSection.applyAction}}" stepKey="applyAction"/>
  32. <click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveButton"/>
  33. <see selector="{{AdminMessagesSection.success}}" userInput="You saved the rule." stepKey="seeSuccessMessage"/>
  34. </actionGroup>
  35. </actionGroups>