|
24 | 24 | <createData entity="SimpleProduct" stepKey="simpleproduct">
|
25 | 25 | <requiredEntity createDataKey="simplecategory"/>
|
26 | 26 | </createData>
|
27 |
| - <createData entity="PaymentMethodsSettingConfig" stepKey="paymentMethodsSettingConfig"/> |
28 |
| - <createData entity="FreeShippingMethodsSettingConfig" stepKey="freeShippingMethodsSettingConfig"/> |
29 |
| - <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches"> |
30 |
| - <argument name="tags" value="config full_page"/> |
31 |
| - </actionGroup> |
32 |
| - |
33 | 27 | <createData entity="ApiSalesRule" stepKey="createCartPriceRule">
|
34 | 28 | <field key="discount_amount">100</field>
|
35 | 29 | </createData>
|
36 | 30 | <createData entity="ApiSalesRuleCoupon" stepKey="createCartPriceRuleCoupon">
|
37 | 31 | <requiredEntity createDataKey="createCartPriceRule"/>
|
38 | 32 | </createData>
|
39 | 33 |
|
| 34 | + <actionGroup ref="CliEnableFreeShippingMethodActionGroup" stepKey="freeShippingMethodsSettingConfig"/> |
40 | 35 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
| 36 | + |
| 37 | + <!-- To be removed when BI Changes are allowed --> |
| 38 | + <comment userInput="Preserve BIC. PaymentMethodsSettingConfig" stepKey="paymentMethodsSettingConfig"/> |
| 39 | + <comment userInput="Preserve BIC. CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches" /> |
41 | 40 | </before>
|
42 | 41 |
|
43 | 42 | <after>
|
| 43 | + <magentoCLI command="config:set {{EnableFreeOrderStatusPending.path}} {{EnableFreeOrderStatusPending.value}}" stepKey="disablePaymentMethodsSettingConfig"/> |
| 44 | + <actionGroup ref="CliDisableFreeShippingMethodActionGroup" stepKey="disableFreeShippingConfig"/> |
44 | 45 | <deleteData createDataKey="simplecategory" stepKey="deleteCategory"/>
|
45 | 46 | <deleteData createDataKey="simpleproduct" stepKey="deleteProduct"/>
|
46 |
| - <createData entity="DisablePaymentMethodsSettingConfig" stepKey="disablePaymentMethodsSettingConfig"/> |
47 |
| - <createData entity="DefaultShippingMethodsConfig" stepKey="defaultShippingMethodsConfig"/> |
48 |
| - <createData entity="DisableFreeShippingConfig" stepKey="disableFreeShippingConfig"/> |
49 | 47 | <deleteData createDataKey="createCartPriceRule" stepKey="deleteSalesRule"/>
|
50 | 48 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
|
51 | 49 | <argument name="indices" value=""/>
|
|
54 | 52 | <argument name="tags" value="config full_page"/>
|
55 | 53 | </actionGroup>
|
56 | 54 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
| 55 | + <!-- To be removed when BI Changes are allowed --> |
| 56 | + <comment userInput="Preserving BIC. DefaultShippingMethodsConfig" stepKey="defaultShippingMethodsConfig"/> |
57 | 57 | </after>
|
58 | 58 |
|
59 | 59 | <!-- Go to new order status page -->
|
|
75 | 75 |
|
76 | 76 | <!-- Assign status to state -->
|
77 | 77 | <click selector="{{AdminOrderStatusGridSection.assignStatusToStateBtn}}" stepKey="clickAssignStatusBtn"/>
|
78 |
| - <selectOption selector="{{AdminAssignOrderStatusToStateSection.orderStatus}}" userInput="{{EnableFreeOrderStatusCustom.value}}" stepKey="selectOrderStatus"/> |
| 78 | + <selectOption selector="{{AdminAssignOrderStatusToStateSection.orderStatus}}" userInput="{{defaultOrderStatus.label}}" stepKey="selectOrderStatus"/> |
79 | 79 | <selectOption selector="{{AdminAssignOrderStatusToStateSection.orderState}}" userInput="{{OrderState.new}}" stepKey="selectOrderState"/>
|
80 | 80 | <checkOption selector="{{AdminAssignOrderStatusToStateSection.orderStatusAsDefault}}" stepKey="orderStatusAsDefault"/>
|
81 | 81 | <uncheckOption selector="{{AdminAssignOrderStatusToStateSection.visibleOnStorefront}}" stepKey="visibleOnStorefront"/>
|
82 | 82 | <click selector="{{AdminAssignOrderStatusToStateSection.saveStatusAssignment}}" stepKey="clickSaveStatus"/>
|
83 |
| - <see selector="{{AdminMessagesSection.success}}" userInput="You assigned the order status." stepKey="seeSuccess"/> |
| 83 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccess"> |
| 84 | + <argument name="message" value="You assigned the order status." /> |
| 85 | + </actionGroup> |
84 | 86 |
|
85 | 87 | <!-- Prepare data for constraints -->
|
86 |
| - <magentoCLI command="config:set {{EnableFreeOrderStatusCustom.path}} {{EnableFreeOrderStatusCustom.value}}" stepKey="enableNewOrderStatus"/> |
87 |
| - <magentoCLI command="config:set {{EnableFreeOrderPaymentAction.path}} {{EnableFreeOrderPaymentAction.value}}" stepKey="enableNewOrderPaymentAction"/> |
| 88 | + <magentoCLI command="config:set {{EnableFreeOrderStatusCustom.path}} {{defaultOrderStatus.status}}" stepKey="enableNewOrderStatus"/> |
| 89 | + <comment userInput="Preserve BIC. config:set {{EnableFreeOrderPaymentAction.path}} {{EnableFreeOrderPaymentAction.value}}" stepKey="enableNewOrderPaymentAction"/> |
88 | 90 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches">
|
89 | 91 | <argument name="tags" value="config full_page"/>
|
90 | 92 | </actionGroup>
|
|
94 | 96 | <argument name="product" value="$$simpleproduct$$"/>
|
95 | 97 | </actionGroup>
|
96 | 98 |
|
97 |
| - <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="clickToProceedToCheckout"/> |
| 99 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="clickToProceedToCheckout"/> |
| 100 | + <waitForElementVisible selector="{{CheckoutShippingMethodsSection.shippingMethodSelectorNextButton}}" stepKey="waitForNextButtonVisible" /> |
98 | 101 |
|
99 | 102 | <actionGroup ref="ShipmentFormFreeShippingActionGroup" stepKey="shipmentFormFreeShippingActionGroup"/>
|
100 | 103 |
|
|
121 | 124 | <argument name="orderId" value="{$grabOrderNumber}"/>
|
122 | 125 | </actionGroup>
|
123 | 126 |
|
124 |
| - <!-- Assert invoice button --> |
125 |
| - <seeElement selector="{{AdminOrderDetailsMainActionsSection.invoiceBtn}}" stepKey="seeInvoiceBtn"/> |
| 127 | + <!-- Assert Order Status on Order view page --> |
| 128 | + <comment userInput="Preserve BIC. {{AdminOrderDetailsMainActionsSection.invoiceBtn}}" stepKey="seeInvoiceBtn"/> |
| 129 | + <actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="verifyOrderStatusOnOrderViewPage"> |
| 130 | + <argument name="status" value="{{defaultOrderStatus.label}}" /> |
| 131 | + </actionGroup> |
126 | 132 |
|
127 | 133 | </test>
|
128 | 134 | </tests>
|
0 commit comments