Skip to content

Commit ab58edf

Browse files
committed
Merge branch 'ACP2E-1367' of https://github.com/magento-l3/magento2ce into PR-02142023
2 parents 59c7d7a + 6e3c713 commit ab58edf

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrdersAndCheckGridsTest.xml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<group value="sales"/>
1919
</annotations>
2020
<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"/>
2223
<magentoCLI command="cache:clean" stepKey="cacheCleanBefore"/>
2324
<createData entity="ApiCategory" stepKey="createCategory"/>
2425
<createData entity="defaultSimpleProduct" stepKey="createSimpleProduct">
@@ -27,7 +28,7 @@
2728
</before>
2829

2930
<after>
30-
<magentoCLI command="config:set dev/grid/async_indexing 0" stepKey="disableAsyncIndexing"/>
31+
<magentoCLI command="config:set {{AsyncGridsIndexingConfigData.disable_option}}" stepKey="disableAsyncIndexing"/>
3132
<magentoCLI command="cache:clean" stepKey="cacheCleanAfter"/>
3233
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
3334
<deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>
@@ -46,7 +47,7 @@
4647
<requiredEntity createDataKey="createGuestCartOne"/>
4748
</updateData>
4849

49-
<magentoCLI command="cron:run" stepKey="runCronOne"/>
50+
<magentoCLI command="cron:run --group=default" stepKey="runCronOne"/>
5051

5152
<createData entity="Invoice" stepKey="invoiceOrderOne">
5253
<requiredEntity createDataKey="createGuestCartOne"/>
@@ -68,7 +69,7 @@
6869
<requiredEntity createDataKey="createGuestCartOne"/>
6970
</createData>
7071

71-
<magentoCLI command="cron:run" stepKey="runCronTwo"/>
72+
<magentoCLI command="cron:run --group=default" stepKey="runCronTwo"/>
7273

7374
<createData entity="GuestCart" stepKey="createGuestCartThree"/>
7475
<createData entity="SimpleCartItem" stepKey="addCartItemThree">
@@ -94,7 +95,7 @@
9495
<requiredEntity createDataKey="createGuestCartTwo"/>
9596
</createData>
9697

97-
<magentoCLI command="cron:run" stepKey="runCronThree"/>
98+
<magentoCLI command="cron:run --group=default" stepKey="runCronThree"/>
9899

99100
<createData entity="Invoice" stepKey="invoiceOrderTwo">
100101
<requiredEntity createDataKey="createGuestCartTwo"/>
@@ -108,15 +109,17 @@
108109
<requiredEntity createDataKey="createGuestCartTwo"/>
109110
</createData>
110111

111-
<magentoCLI command="cron:run" stepKey="runCronFour"/>
112+
<magentoCLI command="cron:run --group=default" stepKey="runCronFour"/>
112113

113114
<createData entity="CreditMemo" stepKey="refundOrderThree">
114115
<requiredEntity createDataKey="createGuestCartThree"/>
115116
</createData>
116117

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"/>
120123

121124
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
122125

@@ -132,6 +135,8 @@
132135
<argument name="entityId" value="$createGuestCartOne.return$"/>
133136
</actionGroup>
134137

138+
<waitForPageLoad time="30" stepKey="waitForPageLoadOne"/>
139+
135140
<actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageOne"/>
136141
<waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask1" after="openInvoicesTabOrdersPageOne"/>
137142
<waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedOne"/>
@@ -145,6 +150,8 @@
145150
<argument name="entityId" value="$createGuestCartTwo.return$"/>
146151
</actionGroup>
147152

153+
<waitForPageLoad time="30" stepKey="waitForPageLoadTwo"/>
154+
148155
<actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageTwo"/>
149156
<waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask2" after="openInvoicesTabOrdersPageTwo"/>
150157
<waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedTwo"/>
@@ -158,6 +165,8 @@
158165
<argument name="entityId" value="$createGuestCartThree.return$"/>
159166
</actionGroup>
160167

168+
<waitForPageLoad time="30" stepKey="waitForPageLoadThree"/>
169+
161170
<actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageThree"/>
162171
<waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask3" after="openInvoicesTabOrdersPageThree"/>
163172
<waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedThree"/>

0 commit comments

Comments
 (0)