|
18 | 18 | <testCaseId value="AC-4723"/> |
19 | 19 | </annotations> |
20 | 20 | <before> |
| 21 | + <!--enable flat rate--> |
| 22 | + <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
21 | 23 | <!--Create Category--> |
22 | 24 | <createData entity="_defaultCategory" stepKey="testCategory"/> |
23 | | - <!-- Create SimpleProductwithPrice100 --> |
| 25 | + <!-- Create SimpleProductWithPrice100 --> |
24 | 26 | <createData entity="SimpleProduct_100" stepKey="simpleProductOne"> |
25 | 27 | <requiredEntity createDataKey="testCategory"/> |
26 | 28 | </createData> |
|
39 | 41 | <actionGroup ref="AdminTermsConditionsFillTermEditFormActionGroup" stepKey="fillNewTerm"> |
40 | 42 | <argument name="term" value="newHtmlTerm"/> |
41 | 43 | </actionGroup> |
42 | | - <grabTextFrom selector="{{AdminNewTermFormSection.conditionName}}" stepKey="conditionname"/> |
| 44 | + <grabTextFrom selector="{{AdminNewTermFormSection.conditionName}}" stepKey="conditionName"/> |
43 | 45 | <!-- Save Details--> |
44 | | - <actionGroup ref="AdminTermsConditionsSaveTermActionGroup" stepKey="savefillterm"/> |
| 46 | + <actionGroup ref="AdminTermsConditionsSaveTermActionGroup" stepKey="saveFilledTerm"/> |
45 | 47 | <!-- Enable Check Money Order Method--> |
46 | 48 | <actionGroup ref="CliEnableCheckMoneyOrderPaymentMethodActionGroup" stepKey="enableCheckMoneyOrderPaymentMethod"/> |
47 | 49 | <!--Enable Cash On Delivery Method --> |
48 | | - <magentoCLI command="config:set {{CashOnDeliveryEnableConfigData.path}} {{CashOnDeliveryEnableConfigData.value}}" stepKey="enableCashOndelivery"/> |
| 50 | + <magentoCLI command="config:set {{CashOnDeliveryEnableConfigData.path}} {{CashOnDeliveryEnableConfigData.value}}" stepKey="enableCashOnDelivery"/> |
49 | 51 | </before> |
50 | 52 | <after> |
51 | 53 | <deleteData createDataKey="simpleProductOne" stepKey="deleteProduct"/> |
52 | 54 | <deleteData createDataKey="testCategory" stepKey="deleteTestCategory"/> |
53 | 55 | <magentoCLI command="config:set checkout/options/enable_agreements 0" stepKey="setDisableTermsOnCheckout"/> |
54 | 56 | <actionGroup ref="AdminTermsConditionsOpenGridActionGroup" stepKey="openTermsGridToDelete"/> |
55 | | - <actionGroup ref="CliDisableCheckMoneyOrderPaymentMethodActionGroup" stepKey="disableCheckMoneyOrder"/> |
| 57 | + <actionGroup ref="AdminTermsConditionsEditTermByNameActionGroup" stepKey="openTermToDelete"> |
| 58 | + <argument name="termName" value="{{newHtmlTerm.name}}"/> |
| 59 | + </actionGroup> |
| 60 | + <actionGroup ref="AdminTermsConditionsDeleteTermByNameActionGroup" stepKey="deleteOpenedTerm"/> |
56 | 61 | <magentoCLI command="config:set {{CashOnDeliveryDisabledConfigData.path}} {{CashOnDeliveryDisabledConfigData.value}}" stepKey="disabledCashOnDelivery"/> |
57 | 62 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> |
58 | 63 | </after> |
|
81 | 86 | </actionGroup> |
82 | 87 | <!--Check-box with text for Terms and Condition is present--> |
83 | 88 | <seeElement selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey="seeTermInCheckout"/> |
84 | | - <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeTermtextInCheckout"/> |
| 89 | + <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeTermTextInCheckout"/> |
85 | 90 | <!--Click Place Order--> |
86 | 91 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/> |
87 | 92 | <!-- Check "This is a required field." message is appeared under check-box--> |
88 | | - <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="seeErrorextInCheckout"/> |
| 93 | + <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="seeErrorTextInCheckout"/> |
89 | 94 | <!-- Select Check Money Order--> |
90 | 95 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectPaymentMethod"/> |
91 | 96 | <!--Section for *CheckMoneyOrder* is opened--> |
92 | | - <seeElement selector ="{{StorefrontCheckoutAgreementsSection.checkoutPaymentMethod('checkmo')}}" stepKey="checkmoneyOrderisopened"/> |
| 97 | + <seeElement selector ="{{StorefrontCheckoutAgreementsSection.checkoutPaymentMethod('checkmo')}}" stepKey="checkMoneyOrderPageIsOpened"/> |
93 | 98 | <!--Check Section for *Cash On Delivery* is closed --> |
94 | | - <dontSeeElement selector ="{{StorefrontCheckoutAgreementsSection.checkoutPaymentMethod('cashondelivery')}}" stepKey="cashondelivery"/> |
| 99 | + <dontSeeElement selector ="{{StorefrontCheckoutAgreementsSection.checkoutPaymentMethod('cashondelivery')}}" stepKey="cashOnDelivery"/> |
95 | 100 | <!--Check-box with text for Terms and Condition is presented--> |
96 | | - <seeElement selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey="seeTermInCheckoutispresent"/> |
97 | | - <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeTermtextInCheckoutispresent"/> |
| 101 | + <seeElement selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey="seeTermInCheckoutIsPresent"/> |
| 102 | + <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeTermTextInCheckoutIsPresent"/> |
98 | 103 | <!-- Click PLace Order--> |
99 | | - <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrderagain"/> |
| 104 | + <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrderAgain"/> |
100 | 105 | <!--Check This is a required field." message is appeared under check-box --> |
101 | 106 | <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="seeErrorMessage"/> |
102 | 107 | <!-- Check check-box for Terms and Condition--> |
103 | 108 | <selectOption selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="checkAgreement"/> |
104 | 109 | <!-- Select Cash On Delivery payment method Again--> |
105 | | - <click selector="{{StorefrontCheckoutPaymentMethodsSection.cashOnDelivery}}" stepKey="selectCashOnDeliveryMethodagain"/> |
| 110 | + <click selector="{{StorefrontCheckoutPaymentMethodsSection.cashOnDelivery}}" stepKey="selectCashOnDeliveryMethodAgain"/> |
106 | 111 | <!-- Check Address is present--> |
107 | | - <actionGroup ref="CheckBillingAddressInCheckoutActionGroup" stepKey="checkBillingAddressOnBillingPageagain"> |
| 112 | + <actionGroup ref="CheckBillingAddressInCheckoutActionGroup" stepKey="checkBillingAddressOnBillingPageAgain"> |
108 | 113 | <argument name="customerVar" value="Simple_US_Customer_NY" /> |
109 | 114 | <argument name="customerAddressVar" value="US_Address_NY" /> |
110 | 115 | </actionGroup> |
111 | 116 | <!--Check-box with text for Terms and Condition is presented--> |
112 | | - <seeElement selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey="seeTermInCheckoutagain"/> |
113 | | - <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeTermtextInCheckoutagain"/> |
| 117 | + <seeElement selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey="seeTermInCheckoutAgain"/> |
| 118 | + <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeTermTextInCheckoutAgain"/> |
114 | 119 | <seeCheckboxIsChecked selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckboxcheck(newHtmlTerm.checkboxText)}}" stepKey="checkbox"/> |
115 | 120 | <!-- Click PLace Order Again--> |
116 | 121 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="PlaceOrder"/> |
117 | 122 | <!--This is a required field." message is appeared under check-box --> |
118 | | - <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="seeAgainErrortextInCheckoutBox"/> |
| 123 | + <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="seeAgainErrorTextInCheckoutBox"/> |
119 | 124 | </test> |
120 | 125 | </tests> |
0 commit comments