Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

34 рядки
2.2 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="AdminCreateTwoWebsiteCartPriceRuleActionGroup" extends="AdminCreateCartPriceRuleActionGroup">
  11. <annotations>
  12. <description>EXTENDS: AdminCreateCartPriceRuleWithCouponCodeActionGroup. Removes 'clickSaveButton' for the next data changing. Assign cart price rule to 2 websites instead of 1.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="ruleName"/>
  16. <argument name="couponCode"/>
  17. <argument name="websiteName"/>
  18. </arguments>
  19. <remove keyForRemoval="selectActionType"/>
  20. <remove keyForRemoval="fillDiscountAmount"/>
  21. <remove keyForRemoval="selectWebsites"/>
  22. <remove keyForRemoval="seeSuccessMessage"/>
  23. <selectOption selector="{{AdminCartPriceRulesFormSection.websites}}" parameterArray="[{{websiteName}},'Main Website']" stepKey="selectWebsites" after="fillRuleName"/>
  24. <selectOption selector="{{AdminCartPriceRulesFormSection.coupon}}" userInput="Specific Coupon" stepKey="selectCouponType" after="fillRuleName"/>
  25. <waitForElementVisible selector="{{AdminCartPriceRulesFormSection.couponCode}}" stepKey="waitForElementVisible" after="selectCouponType"/>
  26. <fillField selector="{{AdminCartPriceRulesFormSection.couponCode}}" userInput="{{couponCode}}" stepKey="fillCouponCode" after="waitForElementVisible"/>
  27. <fillField selector="{{AdminCartPriceRulesFormSection.userPerCoupon}}" userInput="99" stepKey="fillUserPerCoupon" after="fillCouponCode"/>
  28. <selectOption selector="{{AdminCartPriceRulesFormSection.apply}}" userInput="Fixed amount discount for whole cart" stepKey="selectActionTypeToFixed" after="clickToExpandActions"/>
  29. <fillField selector="{{AdminCartPriceRulesFormSection.discountAmount}}" userInput="1" stepKey="fillDiscountAmount" after="selectActionTypeToFixed"/>
  30. </actionGroup>
  31. </actionGroups>