Skip to content

Commit b0a0e3d

Browse files
committed
B2B-2117: Prepare AWS Aurora Functional Test CI Build for Handing Off to GL Team
- Fixing flaky tests - Adding cron indexing after deleting customer attributes, websites, stores, storeviews, shared catalogs
1 parent 4a2fc03 commit b0a0e3d

File tree

108 files changed

+196
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+196
-37
lines changed

app/code/Magento/Backend/Test/Mftf/Test/AdminAttributeTextSwatchesCanBeFiledTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreView10">
5858
<argument name="customStore" value="storeViewData7"/>
5959
</actionGroup>
60+
<magentoCron groups="index" stepKey="reindex"/>
6061

6162
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
6263
</after>
@@ -92,6 +93,7 @@
9293
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createStoreView10">
9394
<argument name="customStore" value="storeViewData7"/>
9495
</actionGroup>
96+
<magentoCron groups="index" stepKey="reindex"/>
9597

9698
<!--Navigate to Product attribute page-->
9799
<actionGroup ref="AdminNavigateToNewProductAttributePageActionGroup" stepKey="navigateToNewProductAttributePage"/>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<argument name="StoreGroup" value="SecondStoreGroupUnique"/>
6464
<argument name="customStore" value="SecondStoreUnique"/>
6565
</actionGroup>
66+
<magentoCron groups="index" stepKey="reindex2"/>
6667
</before>
6768
<after>
6869
<!-- Disabled Store URLs -->
@@ -77,6 +78,7 @@
7778
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
7879
<argument name="websiteName" value="{{secondCustomWebsite.name}}"/>
7980
</actionGroup>
81+
<magentoCron groups="index" stepKey="reindex"/>
8082

8183
<actionGroup ref="NavigateToAndResetProductGridToDefaultViewActionGroup" stepKey="resetProductGridFilter"/>
8284

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<before>
2626
<!-- Create a Website -->
2727
<createData entity="customWebsite" stepKey="createWebsite"/>
28+
<magentoCron groups="index" stepKey="reindex"/>
2829

2930
<!-- Create first simple product for a bundle option -->
3031
<createData entity="SimpleProduct2" stepKey="createFirstSimpleProduct"/>
@@ -46,6 +47,7 @@
4647
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
4748
<argument name="websiteName" value="Second Website"/>
4849
</actionGroup>
50+
<magentoCron groups="index" stepKey="reindex"/>
4951

5052
<!-- Log out -->
5153
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<before>
2222
<!-- Create a Website -->
2323
<createData entity="customWebsite" stepKey="createWebsite"/>
24+
<magentoCron groups="index" stepKey="reindex"/>
2425

2526
<!-- Create a simple product for a bundle option -->
2627
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/>
@@ -36,6 +37,7 @@
3637
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
3738
<argument name="websiteName" value="Second Website"/>
3839
</actionGroup>
40+
<magentoCron groups="index" stepKey="reindex"/>
3941

4042
<!-- Log out -->
4143
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<argument name="StoreGroup" value="customStoreGroup"/>
3535
<argument name="customStore" value="customStore"/>
3636
</actionGroup>
37+
<magentoCron groups="index" stepKey="reindex"/>
3738

3839
<createData entity="SimpleProduct2" stepKey="simpleProduct"/>
3940
<createData entity="ApiFixedBundleProduct" stepKey="createBundleProduct" />
@@ -57,9 +58,7 @@
5758
</actionGroup>
5859
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
5960

60-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
61-
<argument name="indices" value=""/>
62-
</actionGroup>
61+
<magentoCron groups="index" stepKey="reindex"/>
6362
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanFullPageCache">
6463
<argument name="tags" value="config full_page"/>
6564
</actionGroup>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
<!-- Create website -->
2929
<createData entity="secondCustomWebsite" stepKey="createWebsite"/>
30+
<magentoCron groups="index" stepKey="reindex"/>
3031

3132
<!-- Login as admin -->
3233
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
@@ -42,6 +43,7 @@
4243
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
4344
<argument name="websiteName" value="$createWebsite.website[name]$"/>
4445
</actionGroup>
46+
<magentoCron groups="index" stepKey="reindex"/>
4547

4648
<!-- Delete related products -->
4749
<deleteData createDataKey="createFirstRelatedProduct" stepKey="deleteFirstRelatedProduct"/>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteCustomStore">
2525
<argument name="storeGroupName" value="customStoreGroup.name"/>
2626
</actionGroup>
27+
<magentoCron groups="index" stepKey="reindex"/>
2728
<actionGroup ref="DeleteCategoryActionGroup" stepKey="deleteCreatedNewRootCategory">
2829
<argument name="categoryEntity" value="NewRootCategory"/>
2930
</actionGroup>
@@ -53,6 +54,7 @@
5354
<argument name="StoreGroup" value="customStoreGroup"/>
5455
<argument name="customStore" value="customStore"/>
5556
</actionGroup>
57+
<magentoCron groups="index" stepKey="reindex"/>
5658
<!--Go to store front page-->
5759
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openHomepage"/>
5860
<!--Verify subcategory displayed in store front page-->

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createSecondStoreView">
5656
<argument name="customStore" value="customStoreFR"/>
5757
</actionGroup>
58+
<magentoCron groups="index" stepKey="reindex"/>
5859

5960
<!--Go to created product page and create new attribute-->
6061
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openAdminEditPage">

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<argument name="StoreGroup" value="NewStoreData"/>
3737
<argument name="customStore" value="NewStoreViewData"/>
3838
</actionGroup>
39+
<magentoCron groups="index" stepKey="reindex"/>
3940
<!--Create Product-->
4041
<createData entity="SimpleProduct2" stepKey="createProduct"/>
4142
<createData entity="SubCategory" stepKey="createSubCategory"/>
@@ -65,7 +66,7 @@
6566
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
6667
<argument name="websiteName" value="{{NewWebSiteData.name}}"/>
6768
</actionGroup>
68-
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
69+
<magentoCron groups="index" stepKey="reindex"/>
6970
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
7071
<deleteData createDataKey="createSubCategory" stepKey="deleteSubCategory"/>
7172
<deleteData createDataKey="createRootCategory" stepKey="deleteRootCategory"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteCreatedStore">
2626
<argument name="storeGroupName" value="customStore.code"/>
2727
</actionGroup>
28+
<magentoCron groups="index" stepKey="reindex"/>
2829
<deleteData createDataKey="rootCategory" stepKey="deleteRootCategory"/>
2930
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3031
</after>

0 commit comments

Comments
 (0)