Skip to content

Commit 8450dc9

Browse files
committed
Add <wait> before running cron, as simultaneously running workers are overlapping Cron executions
1 parent 2bdbf8b commit 8450dc9

14 files changed

+93
-74
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/AdminEditRelatedBundleProductTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<conditionalClick selector="{{AdminProductFormRelatedUpSellCrossSellSection.relatedDropdown}}" dependentSelector="{{AdminProductFormRelatedUpSellCrossSellSection.relatedDependent}}" visible="false" stepKey="openDropDownIfClosedRelatedSee"/>
7171
<see selector="{{AdminProductFormRelatedUpSellCrossSellSection.selectedRelatedProduct}}" userInput="$$simpleProduct1.sku$$" stepKey="seeRelatedProduct"/>
7272

73+
<wait stepKey="waitBeforeIndexer" time="60"/>
7374
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
7475

7576
<!--See related product in storefront-->

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontCheckBundleProductOptionTierPrices.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
</actionGroup>
4545
<actionGroup ref="logout" stepKey="logoutAsAdmin"/>
4646

47-
<!-- Run reindex -->
48-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
47+
<wait stepKey="waitBeforeIndexer" time="60"/>
48+
<magentoCLI stepKey="runCronIndex" command="cron:run --group=index"/>
4949
</before>
5050
<after>
5151
<deleteData createDataKey="createBundleProductCreateBundleProduct" stepKey="deleteDynamicBundleProduct"/>

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontCustomerSelectAndSetBundleOptionsTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2525

26+
<wait stepKey="waitBeforeIndexer" time="60"/>
2627
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2728
</before>
2829
<after>
@@ -92,6 +93,7 @@
9293
<!-- Save product and go to storefront -->
9394
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
9495

96+
<wait stepKey="waitBeforeIndexerAfterBundle" time="60"/>
9597
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexerAfterBundle"/>
9698

9799
<amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/>

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontEditBundleProductTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<click stepKey="saveProductBundle" selector="{{AdminProductFormActionSection.saveButton}}"/>
6666
<see stepKey="assertSuccess" selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."/>
6767

68+
<wait stepKey="waitBeforeIndexer" time="60"/>
6869
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
6970

7071
<!-- Go to the storefront bundled product page -->

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 70 additions & 70 deletions
Large diffs are not rendered by default.

app/code/Magento/Catalog/Test/Mftf/Test/AdminSimpleSetEditRelatedProductsTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
<createData entity="SimpleProduct2" stepKey="simpleProduct4"/>
2828
<createData entity="SimpleProduct2" stepKey="simpleProduct5"/>
2929
<createData entity="SimpleProduct2" stepKey="simpleProduct6"/>
30+
31+
<wait stepKey="waitBeforeIndexer" time="60"/>
3032
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
3133
</before>
3234
<after>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontOnePageCheckoutDataWhenChangeQtyTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<before>
2222
<!--Create a product-->
2323
<createData entity="SimpleProduct2" stepKey="createProduct"/>
24+
25+
<wait stepKey="waitBeforeIndexer" time="60"/>
2426
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2527
</before>
2628
<after>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableSetEditRelatedProductsTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
</annotations>
2222
<before>
2323
<createData entity="ApiCategory" stepKey="createCategory"/>
24+
25+
<wait stepKey="waitBeforeIndexer" time="60"/>
2426
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2527
</before>
2628
<after>

app/code/Magento/Downloadable/Test/Mftf/Test/AdminDownloadableSetEditRelatedProductsTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<argument name="product" value="DownloadableProduct"/>
3535
</actionGroup>
3636

37+
<wait stepKey="waitBeforeIndexer" time="60"/>
3738
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
3839

3940
<!--See related product in storefront-->

app/code/Magento/GroupedProduct/Test/Mftf/Test/AdminGroupedSetEditRelatedProductsTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<argument name="product" value="GroupedProduct"/>
3535
</actionGroup>
3636

37+
<wait stepKey="waitBeforeIndexer" time="60"/>
3738
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
3839

3940
<!--See related product in storefront-->

0 commit comments

Comments
 (0)