Skip to content

Commit 2db5edc

Browse files
committed
B2B-2117: Prepare AWS Aurora Functional Test CI Build for Handing Off to GL Team
- Fixing flaky tests - Adding cron indexing before quick searching
1 parent b0a0e3d commit 2db5edc

File tree

44 files changed

+53
-59
lines changed

Some content is hidden

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

44 files changed

+53
-59
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@
9393
<actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="saveTheProduct"/>
9494
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShown"/>
9595

96-
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
96+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
97+
<argument name="indices" value=""/>
98+
</actionGroup>
9799

98100
<!--Verify product attribute added in product form -->
99101
<scrollTo selector="{{AdminProductFormSection.contentTab}}" stepKey="scrollToContentTab"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117

118118
<!-- Verify we see success message -->
119119
<see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertVirtualProductSuccessMessage"/>
120-
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
120+
<magentoCron groups="index" stepKey="reindex"/>
121121
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
122122

123123
<!-- Verify customer see created virtual product with custom options suite and import options(from above step) on storefront page and is searchable by sku -->

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<createData entity="ApiSimpleProduct" stepKey="createProductTwo">
2929
<requiredEntity createDataKey="createCategory"/>
3030
</createData>
31+
<magentoCron groups="index" stepKey="reindex"/>
3132
</before>
3233
<after>
3334
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<requiredEntity createDataKey="initialCategoryEntity"/>
2929
</createData>
3030
<createData entity="SimpleSubCategory" stepKey="categoryEntity"/>
31+
<magentoCron groups="index" stepKey="reindex"/>
3132
</before>
3233
<after>
3334
<deleteData stepKey="deleteSimpleSubCategory" createDataKey="initialCategoryEntity"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<requiredEntity createDataKey="initialCategoryEntity"/>
2929
</createData>
3030
<createData entity="SimpleSubCategory" stepKey="categoryEntity"/>
31+
<magentoCron groups="index" stepKey="reindex"/>
3132
</before>
3233
<after>
3334
<deleteData stepKey="deleteSimpleSubCategory" createDataKey="initialCategoryEntity"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</createData>
2727
<createData entity="SimpleSubCategory" stepKey="categoryEntity"/>
2828

29-
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
29+
<magentoCron groups="index" stepKey="reindex"/>
3030
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3131
</before>
3232
<after>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<createData entity="defaultSimpleProduct" stepKey="initialSimpleProduct">
2525
<requiredEntity createDataKey="initialCategoryEntity"/>
2626
</createData>
27+
<magentoCron groups="index" stepKey="reindex"/>
2728
</before>
2829
<after>
2930
<deleteData stepKey="deleteSimpleSubCategory" createDataKey="initialCategoryEntity"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<requiredEntity createDataKey="initialCategoryEntity"/>
2727
</createData>
2828
<createData entity="SimpleSubCategory" stepKey="categoryEntity"/>
29+
<magentoCron groups="index" stepKey="reindex"/>
2930
</before>
3031
<after>
3132
<deleteData stepKey="deleteSimpleSubCategory" createDataKey="initialCategoryEntity"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<requiredEntity createDataKey="initialCategoryEntity"/>
2626
</createData>
2727
<createData entity="SimpleSubCategory" stepKey="categoryEntity"/>
28+
<magentoCron groups="index" stepKey="reindex"/>
2829
</before>
2930
<after>
3031
<deleteData stepKey="deleteSimpleSubCategory" createDataKey="initialCategoryEntity"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="clickAdminProductSEOSection1"/>
9696
<seeInField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{simpleProductRegularPrice245InStock.urlKey}}" stepKey="seeUrlKey"/>
9797

98-
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
98+
<magentoCron groups="index" stepKey="reindex"/>
9999

100100
<!--Verify customer see updated simple product link on category page -->
101101
<amOnPage url="{{StorefrontCategoryPage.url($$categoryEntity.custom_attributes[url_key]$$)}}" stepKey="openCategoryPage"/>

0 commit comments

Comments
 (0)