70
70
<actionGroup ref =" logout" stepKey =" logout" />
71
71
</after >
72
72
73
- <!-- Create a cart price rule for Fixed amount discount for whole cart -->
74
- <actionGroup ref =" AdminCreateCartPriceRuleForRetailerActionGroup" stepKey =" createCartPriceRule" />
73
+ <!-- Create a cart price rule with 10% discount for whole cart -->
74
+ <click selector =" {{AdminMenuSection.marketing}}" stepKey =" clickOnMarketing" />
75
+ <waitForPageLoad stepKey =" waitForMarketing" time =" 3" />
76
+ <click selector =" {{CartPriceRulesSubmenuSection.cartPriceRules}}" stepKey =" clickOnCartPriceRules" />
77
+ <waitForPageLoad stepKey =" waitForCartPriceRules" time =" 3" />
78
+ <click selector =" {{AdminCartPriceRulesSection.addNewRuleButton}}" stepKey =" clickAddNewRule" />
79
+ <fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{SimpleSalesRule.name}}" stepKey =" fillRuleName" />
80
+ <selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
81
+ <actionGroup ref =" selectRetailerCustomerGroup" stepKey =" selectRetailerCustomerGroup" />
82
+ <click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
83
+ <selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Percent of product price discount" stepKey =" selectActionType" />
84
+ <fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 10" stepKey =" fillDiscountAmount" />
85
+ <click selector =" {{AdminCartPriceRulesFormSection.save}}" stepKey =" clickSaveButton" />
86
+ <waitForPageLoad stepKey =" waitForCartRuleLoad" time =" 3" />
87
+ <see selector =" {{AdminCartPriceRulesSection.messages}}" userInput =" You saved the rule." stepKey =" seeSuccessMessage" />
75
88
76
89
<!-- Set Taxable Goods for Shipping Tax Class-->
77
90
<actionGroup ref =" changeShippingTaxClass" stepKey =" changeShippingTaxClass" />
100
113
<!-- Submit Order-->
101
114
<click stepKey =" submitOrder" selector =" {{NewOrderSection.submitOrder}}" />
102
115
<waitForPageLoad stepKey =" waitForSubmitOrder" time =" 5" />
103
- <see selector =" {{NewOrderSection.successMessage}}" userInput =" You created the order." stepKey =" seeNewOrder" after =" waitForSubmitOrder" />
104
-
116
+ <see selector =" {{AdminOrderDetailsMessagesSection.successMessage}}" userInput =" You created the order." stepKey =" seeOrderSuccessMessage" after =" waitForSubmitOrder" />
105
117
106
118
<!-- Create New invoice-->
107
119
<actionGroup ref =" adminFastCreateInvoice" stepKey =" createInvoice" />
108
120
109
- <!-- Get access to Credit Memo page from Invocie page-->
121
+ <!-- Get access to Credit Memo page from Invoice page-->
110
122
<click selector =" {{AdminInvoiceMainActionsSection.openNewCreditMemoFromInvoice}}" stepKey =" clickCreateNewCreditMemo" />
111
123
<waitForPageLoad stepKey =" waitForLoadNewCreditMemoPage" time =" 5" />
112
- <see selector =" {{AdminCreditMemoOrderInformationSection.orderId }}" userInput =" New Memo for " stepKey =" seeNewCreditMemo" after = " waitForLoadNewCreditMemoPage " />
124
+ <see selector =" {{AdminCreditMemoOrderInformationSection.orderStatus }}" userInput =" Processing " stepKey =" seeNewCreditMemo" />
113
125
</test >
114
126
</tests >
0 commit comments