|
6 | 6 | */
|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 |
| - xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
10 | 10 | <test name="AdminCreateOrdersAndCheckGridsTest">
|
11 | 11 | <annotations>
|
12 | 12 | <stories value="Create orders and check grids"/>
|
|
18 | 18 | <group value="sales"/>
|
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 |
| - <magentoCLI command="config:set dev/grid/async_indexing 1" stepKey="enableAsyncIndexing"/> |
| 21 | + <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
| 22 | + <magentoCLI command="config:set {{AsyncGridsIndexingConfigData.enable_option}}" stepKey="enableAsyncIndexing"/> |
22 | 23 | <magentoCLI command="cache:clean" stepKey="cacheCleanBefore"/>
|
23 | 24 | <createData entity="ApiCategory" stepKey="createCategory"/>
|
24 | 25 | <createData entity="defaultSimpleProduct" stepKey="createSimpleProduct">
|
|
27 | 28 | </before>
|
28 | 29 |
|
29 | 30 | <after>
|
30 |
| - <magentoCLI command="config:set dev/grid/async_indexing 0" stepKey="disableAsyncIndexing"/> |
| 31 | + <magentoCLI command="config:set {{AsyncGridsIndexingConfigData.disable_option}}" stepKey="disableAsyncIndexing"/> |
31 | 32 | <magentoCLI command="cache:clean" stepKey="cacheCleanAfter"/>
|
32 | 33 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
33 | 34 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>
|
|
46 | 47 | <requiredEntity createDataKey="createGuestCartOne"/>
|
47 | 48 | </updateData>
|
48 | 49 |
|
49 |
| - <magentoCLI command="cron:run" stepKey="runCronOne"/> |
| 50 | + <magentoCLI command="cron:run --group=default" stepKey="runCronOne"/> |
50 | 51 |
|
51 | 52 | <createData entity="Invoice" stepKey="invoiceOrderOne">
|
52 | 53 | <requiredEntity createDataKey="createGuestCartOne"/>
|
|
68 | 69 | <requiredEntity createDataKey="createGuestCartOne"/>
|
69 | 70 | </createData>
|
70 | 71 |
|
71 |
| - <magentoCLI command="cron:run" stepKey="runCronTwo"/> |
| 72 | + <magentoCLI command="cron:run --group=default" stepKey="runCronTwo"/> |
72 | 73 |
|
73 | 74 | <createData entity="GuestCart" stepKey="createGuestCartThree"/>
|
74 | 75 | <createData entity="SimpleCartItem" stepKey="addCartItemThree">
|
|
94 | 95 | <requiredEntity createDataKey="createGuestCartTwo"/>
|
95 | 96 | </createData>
|
96 | 97 |
|
97 |
| - <magentoCLI command="cron:run" stepKey="runCronThree"/> |
| 98 | + <magentoCLI command="cron:run --group=default" stepKey="runCronThree"/> |
98 | 99 |
|
99 | 100 | <createData entity="Invoice" stepKey="invoiceOrderTwo">
|
100 | 101 | <requiredEntity createDataKey="createGuestCartTwo"/>
|
|
108 | 109 | <requiredEntity createDataKey="createGuestCartTwo"/>
|
109 | 110 | </createData>
|
110 | 111 |
|
111 |
| - <magentoCLI command="cron:run" stepKey="runCronFour"/> |
| 112 | + <magentoCLI command="cron:run --group=default" stepKey="runCronFour"/> |
112 | 113 |
|
113 | 114 | <createData entity="CreditMemo" stepKey="refundOrderThree">
|
114 | 115 | <requiredEntity createDataKey="createGuestCartThree"/>
|
115 | 116 | </createData>
|
116 | 117 |
|
117 |
| - <magentoCLI command="cron:run" stepKey="runCronFive"/> |
118 |
| - <magentoCLI command="cron:run" stepKey="runCronSix"/> |
119 |
| - <magentoCLI command="cron:run" stepKey="runCronSeven"/> |
| 118 | + <magentoCLI command="cron:run --group=default" stepKey="runCronFive"/> |
| 119 | + <magentoCLI command="cron:run --group=default" stepKey="runCronSix"/> |
| 120 | + <magentoCLI command="cron:run --group=default" stepKey="runCronSeven"/> |
| 121 | + <magentoCLI command="cron:run --group=default" stepKey="runCronEight"/> |
| 122 | + <magentoCLI command="cron:run --group=default" stepKey="runCronNine"/> |
| 123 | + <magentoCLI command="cron:run --group=default" stepKey="runCronTen"/> |
120 | 124 |
|
121 | 125 | <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
|
122 | 126 |
|
123 | 127 | <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="onOrderPage"/>
|
124 |
| - <waitForPageLoad time="60" stepKey="waitForGrid"/> |
| 128 | + <waitForPageLoad time="30" stepKey="waitForGrid"/> |
125 | 129 | <actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearFilters"/>
|
126 | 130 |
|
127 |
| - <grabTextFrom selector="{{AdminOrdersGridSection.orderIdByIncrementId($createGuestCartOne.return$)}}" stepKey="getOrderOneId"/> |
128 |
| - <grabTextFrom selector="{{AdminOrdersGridSection.orderIdByIncrementId($createGuestCartTwo.return$)}}" stepKey="getOrderTwoId"/> |
129 |
| - <grabTextFrom selector="{{AdminOrdersGridSection.orderIdByIncrementId($createGuestCartThree.return$)}}" stepKey="getOrderThreeId"/> |
130 |
| - |
131 | 131 | <actionGroup ref="AdminOpenOrderByEntityIdActionGroup" stepKey="openOrderOne">
|
132 | 132 | <argument name="entityId" value="$createGuestCartOne.return$"/>
|
133 | 133 | </actionGroup>
|
134 | 134 |
|
| 135 | + <waitForPageLoad time="30" stepKey="waitForPageLoadOne"/> |
| 136 | + |
| 137 | + <grabTextFrom selector="{{AdminOrderDetailsInformationSection.orderId}}" stepKey="grabOrderIdOne"/> |
| 138 | + |
135 | 139 | <actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageOne"/>
|
136 | 140 | <waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask1" after="openInvoicesTabOrdersPageOne"/>
|
137 | 141 | <waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedOne"/>
|
|
145 | 149 | <argument name="entityId" value="$createGuestCartTwo.return$"/>
|
146 | 150 | </actionGroup>
|
147 | 151 |
|
| 152 | + <waitForPageLoad time="30" stepKey="waitForPageLoadTwo"/> |
| 153 | + |
| 154 | + <grabTextFrom selector="{{AdminOrderDetailsInformationSection.orderId}}" stepKey="grabOrderIdTwo"/> |
| 155 | + |
148 | 156 | <actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageTwo"/>
|
149 | 157 | <waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask2" after="openInvoicesTabOrdersPageTwo"/>
|
150 | 158 | <waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedTwo"/>
|
|
158 | 166 | <argument name="entityId" value="$createGuestCartThree.return$"/>
|
159 | 167 | </actionGroup>
|
160 | 168 |
|
| 169 | + <waitForPageLoad time="30" stepKey="waitForPageLoadThree"/> |
| 170 | + |
| 171 | + <grabTextFrom selector="{{AdminOrderDetailsInformationSection.orderId}}" stepKey="grabOrderIdThree"/> |
| 172 | + |
161 | 173 | <actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageThree"/>
|
162 | 174 | <waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask3" after="openInvoicesTabOrdersPageThree"/>
|
163 | 175 | <waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedThree"/>
|
|
166 | 178 | <seeElement selector="{{AdminOrderShipmentsTabSection.viewShipment}}" stepKey="seeForShipmentTabOpenedThree"/>
|
167 | 179 | <actionGroup ref="AdminGoToCreditMemoTabActionGroup" stepKey="goToCreditMemoTabThree"/>
|
168 | 180 | <see selector="{{AdminOrderCreditMemosTabSection.gridRowCell('1', 'Status')}}" userInput="Refunded" stepKey="seeCreditMemoStatusInGridThree"/>
|
| 181 | + |
| 182 | + |
| 183 | + <actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridByIdOne"> |
| 184 | + <argument name="orderId" value="{$grabOrderIdOne}"/> |
| 185 | + </actionGroup> |
| 186 | + |
| 187 | + <waitForPageLoad time="30" stepKey="waitForGridOne"/> |
| 188 | + |
| 189 | + <see selector="{{AdminDataGridTableSection.gridCell('1', 'Status')}}" userInput="Closed" stepKey="seeOrderClosedInGridOne"/> |
| 190 | + |
| 191 | + <actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridByIdTwo"> |
| 192 | + <argument name="orderId" value="{$grabOrderIdTwo}"/> |
| 193 | + </actionGroup> |
| 194 | + |
| 195 | + <waitForPageLoad time="30" stepKey="waitForGridTwo"/> |
| 196 | + |
| 197 | + <see selector="{{AdminDataGridTableSection.gridCell('1', 'Status')}}" userInput="Closed" stepKey="seeOrderClosedInGridTwo"/> |
| 198 | + |
| 199 | + <actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridByIdThree"> |
| 200 | + <argument name="orderId" value="{$grabOrderIdThree}"/> |
| 201 | + </actionGroup> |
| 202 | + |
| 203 | + <waitForPageLoad time="30" stepKey="waitForGridThree"/> |
| 204 | + |
| 205 | + <see selector="{{AdminDataGridTableSection.gridCell('1', 'Status')}}" userInput="Closed" stepKey="seeOrderClosedInGridThree"/> |
169 | 206 | </test>
|
170 | 207 | </tests>
|
0 commit comments