|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="AdminCheckZeroSubtotalOrderWithCustomStatus"> |
| 11 | + <test name="AdminCheckZeroSubtotalOrderWithCustomStatusTest"> |
12 | 12 | <annotations>
|
13 | 13 | <features value="Checkout"/>
|
14 | 14 | <stories value="Zero Subtotal Checkout Order"/>
|
|
18 | 18 | <useCaseId value="ACP2E-1120"/>
|
19 | 19 | <severity value="AVERAGE"/>
|
20 | 20 | <group value="checkout"/>
|
21 |
| - <!-- @TODO: Remove "pr_exclude" group when issue ACQE-4977 is resolved --> |
22 |
| - <group value="pr_exclude" /> |
23 | 21 | </annotations>
|
24 | 22 | <before>
|
25 | 23 | <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer" />
|
|
42 | 40 | </before>
|
43 | 41 |
|
44 | 42 | <after>
|
| 43 | + <!-- Assign default pending status to state new --> |
| 44 | + <actionGroup ref="AdminOrderStatusToStateAssignActionGroup" stepKey="resetDefaultStatusToState"> |
| 45 | + <argument name="orderStatus" value="{{OrderStatus.pending}}" /> |
| 46 | + <argument name="orderState" value="{{defaultOrderStatus.label}}" /> |
| 47 | + </actionGroup> |
| 48 | + |
45 | 49 | <magentoCLI command="config:set {{EnableFreeOrderStatusPending.path}} {{EnableFreeOrderStatusPending.value}}" stepKey="disablePaymentMethodsSettingConfig"/>
|
46 | 50 | <magentoCLI command="config:set {{EnableFreeOrderPaymentAutomaticInvoiceAction.path}} {{EnableFreeOrderPaymentAutomaticInvoiceAction.value}}" stepKey="enableFreeOrderPaymentAutomaticInvoiceAction"/>
|
47 | 51 | <actionGroup ref="CliDisableFreeShippingMethodActionGroup" stepKey="disableFreeShippingConfig"/>
|
|
77 | 81 | </actionGroup>
|
78 | 82 |
|
79 | 83 | <!-- Assign status to state -->
|
80 |
| - <click selector="{{AdminOrderStatusGridSection.assignStatusToStateBtn}}" stepKey="clickAssignStatusBtn"/> |
81 |
| - <selectOption selector="{{AdminAssignOrderStatusToStateSection.orderStatus}}" userInput="{{defaultOrderStatus.label}}" stepKey="selectOrderStatus"/> |
82 |
| - <selectOption selector="{{AdminAssignOrderStatusToStateSection.orderState}}" userInput="{{OrderState.new}}" stepKey="selectOrderState"/> |
83 |
| - <checkOption selector="{{AdminAssignOrderStatusToStateSection.orderStatusAsDefault}}" stepKey="orderStatusAsDefault"/> |
84 |
| - <uncheckOption selector="{{AdminAssignOrderStatusToStateSection.visibleOnStorefront}}" stepKey="visibleOnStorefront"/> |
85 |
| - <click selector="{{AdminAssignOrderStatusToStateSection.saveStatusAssignment}}" stepKey="clickSaveStatus"/> |
86 |
| - <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccess"> |
87 |
| - <argument name="message" value="You assigned the order status." /> |
| 84 | + <comment userInput="BIC workaround" stepKey="clickAssignStatusBtn"/> |
| 85 | + <comment userInput="BIC workaround" stepKey="selectOrderStatus"/> |
| 86 | + <comment userInput="BIC workaround" stepKey="selectOrderState"/> |
| 87 | + <comment userInput="BIC workaround" stepKey="orderStatusAsDefault"/> |
| 88 | + <comment userInput="BIC workaround" stepKey="visibleOnStorefront"/> |
| 89 | + <comment userInput="BIC workaround" stepKey="clickSaveStatus"/> |
| 90 | + <comment userInput="BIC workaround" stepKey="seeSuccess"/> |
| 91 | + |
| 92 | + <actionGroup ref="AdminOrderStatusToStateAssignActionGroup" stepKey="resetDefaultStatusToState"> |
| 93 | + <argument name="orderStatus" value="{{defaultOrderStatus.label}}" /> |
| 94 | + <argument name="orderState" value="{{OrderState.new}}" /> |
88 | 95 | </actionGroup>
|
89 | 96 |
|
90 | 97 | <!-- Prepare data for constraints -->
|
|
0 commit comments