Skip to content

Commit 4f46aa4

Browse files
committed
ACP2E-1367: update mftf to avoid random failure
1 parent 6b88b0b commit 4f46aa4

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<requiredEntity createDataKey="createGuestCartOne"/>
4747
</updateData>
4848

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

5151
<createData entity="Invoice" stepKey="invoiceOrderOne">
5252
<requiredEntity createDataKey="createGuestCartOne"/>
@@ -68,7 +68,7 @@
6868
<requiredEntity createDataKey="createGuestCartOne"/>
6969
</createData>
7070

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

7373
<createData entity="GuestCart" stepKey="createGuestCartThree"/>
7474
<createData entity="SimpleCartItem" stepKey="addCartItemThree">
@@ -94,7 +94,7 @@
9494
<requiredEntity createDataKey="createGuestCartTwo"/>
9595
</createData>
9696

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

9999
<createData entity="Invoice" stepKey="invoiceOrderTwo">
100100
<requiredEntity createDataKey="createGuestCartTwo"/>
@@ -108,15 +108,17 @@
108108
<requiredEntity createDataKey="createGuestCartTwo"/>
109109
</createData>
110110

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

113113
<createData entity="CreditMemo" stepKey="refundOrderThree">
114114
<requiredEntity createDataKey="createGuestCartThree"/>
115115
</createData>
116116

117-
<magentoCLI command="cron:run" stepKey="runCronFive"/>
118-
<magentoCLI command="cron:run" stepKey="runCronSix"/>
119-
<magentoCLI command="cron:run" stepKey="runCronSeven"/>
117+
<magentoCLI command="cron:run --group=default" stepKey="runCronFive"/>
118+
<magentoCLI command="cron:run --group=default" stepKey="runCronSix"/>
119+
<magentoCLI command="cron:run --group=default" stepKey="runCronSeven"/>
120+
<magentoCLI command="cron:run --group=default" stepKey="runCronEight"/>
121+
<magentoCLI command="cron:run --group=default" stepKey="runCronNine"/>
120122

121123
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
122124

@@ -132,6 +134,8 @@
132134
<argument name="entityId" value="$createGuestCartOne.return$"/>
133135
</actionGroup>
134136

137+
<waitForPageLoad time="30" stepKey="waitForPageLoadOne"/>
138+
135139
<actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageOne"/>
136140
<waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask1" after="openInvoicesTabOrdersPageOne"/>
137141
<waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedOne"/>
@@ -145,6 +149,8 @@
145149
<argument name="entityId" value="$createGuestCartTwo.return$"/>
146150
</actionGroup>
147151

152+
<waitForPageLoad time="30" stepKey="waitForPageLoadTwo"/>
153+
148154
<actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageTwo"/>
149155
<waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask2" after="openInvoicesTabOrdersPageTwo"/>
150156
<waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedTwo"/>
@@ -158,6 +164,8 @@
158164
<argument name="entityId" value="$createGuestCartThree.return$"/>
159165
</actionGroup>
160166

167+
<waitForPageLoad time="30" stepKey="waitForPageLoadThree"/>
168+
161169
<actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="openInvoicesTabOrdersPageThree"/>
162170
<waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask3" after="openInvoicesTabOrdersPageThree"/>
163171
<waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedThree"/>

0 commit comments

Comments
 (0)