|
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
-
- <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
- <actionGroup name="AdminCreateTwoWebsiteCartPriceRuleActionGroup" extends="AdminCreateCartPriceRuleActionGroup">
- <annotations>
- <description>EXTENDS: AdminCreateCartPriceRuleWithCouponCodeActionGroup. Removes 'clickSaveButton' for the next data changing. Assign cart price rule to 2 websites instead of 1.</description>
- </annotations>
- <arguments>
- <argument name="ruleName"/>
- <argument name="couponCode"/>
- <argument name="websiteName"/>
- </arguments>
- <remove keyForRemoval="selectActionType"/>
- <remove keyForRemoval="fillDiscountAmount"/>
- <remove keyForRemoval="selectWebsites"/>
- <remove keyForRemoval="seeSuccessMessage"/>
-
- <selectOption selector="{{AdminCartPriceRulesFormSection.websites}}" parameterArray="[{{websiteName}},'Main Website']" stepKey="selectWebsites" after="fillRuleName"/>
- <selectOption selector="{{AdminCartPriceRulesFormSection.coupon}}" userInput="Specific Coupon" stepKey="selectCouponType" after="fillRuleName"/>
- <waitForElementVisible selector="{{AdminCartPriceRulesFormSection.couponCode}}" stepKey="waitForElementVisible" after="selectCouponType"/>
- <fillField selector="{{AdminCartPriceRulesFormSection.couponCode}}" userInput="{{couponCode}}" stepKey="fillCouponCode" after="waitForElementVisible"/>
- <fillField selector="{{AdminCartPriceRulesFormSection.userPerCoupon}}" userInput="99" stepKey="fillUserPerCoupon" after="fillCouponCode"/>
- <selectOption selector="{{AdminCartPriceRulesFormSection.apply}}" userInput="Fixed amount discount for whole cart" stepKey="selectActionTypeToFixed" after="clickToExpandActions"/>
- <fillField selector="{{AdminCartPriceRulesFormSection.discountAmount}}" userInput="1" stepKey="fillDiscountAmount" after="selectActionTypeToFixed"/>
- </actionGroup>
- </actionGroups>
|