Skip to content

Commit 5be20b6

Browse files
committed
Merge branch 'MC-20333' into MC-19451
2 parents 6791b80 + 50cd546 commit 5be20b6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
<click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="saveCategoryWithProducts"/>
5050
<waitForPageLoad stepKey="waitForCategorySaved"/>
5151
<see userInput="You saved the category." stepKey="seeSuccessMessage"/>
52+
53+
<!--Run re-index task-->
54+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
55+
5256
<amOnPage url="$$createCategory.name$$.html" stepKey="goToCategoryStorefront"/>
5357
<waitForPageLoad stepKey="waitForCategoryStorefrontPage"/>
5458
<seeElement selector="{{StorefrontCategoryProductSection.ProductImageByName($$createSimpleProduct.name$$)}}" stepKey="seeCreatedProduct"/>

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
</actionGroup>
4242
<actionGroup ref="saveProductForm" stepKey="saveProduct"/>
4343

44+
<!--Run re-index task-->
45+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
46+
4447
<!--Check product in category listing-->
4548
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="goToCategoryPage"/>
4649
<seeElement selector="{{StorefrontCategoryProductSection.ProductImageByNameAndSrc(SimpleProductNameWithDoubleQuote.name, ProductImage.fileName)}}" stepKey="seeCorrectImageCategoryPage"/>
@@ -88,6 +91,9 @@
8891
<deleteData createDataKey="createCategoryOne" stepKey="deleteCategory"/>
8992
</after>
9093

94+
<!--Run re-index task-->
95+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
96+
9197
<!--Check product in category listing-->
9298
<amOnPage url="{{StorefrontCategoryPage.url($$createCategoryOne.name$$)}}" stepKey="navigateToCategoryPage"/>
9399
<waitForPageLoad stepKey="waitforCategoryPageToLoad"/>
@@ -111,7 +117,7 @@
111117
<waitForPageLoad stepKey="waitforCategoryPageToLoad2"/>
112118

113119
<!--Open product display page-->
114-
<click selector="{{StorefrontCategoryProductSection.ProductTitleByNumber('2')}}" stepKey="goToProduct2DisplayPage"/>
120+
<click selector="{{StorefrontCategoryProductSection.ProductTitleByNumber('1')}}" stepKey="goToProduct2DisplayPage"/>
115121
<!--<click selector="{{StorefrontCategoryProductSection.ProductTitleByName(productWithHTMLEntityOne.name)}}" stepKey="clickProductToGoProductPage"/>-->
116122
<waitForPageLoad stepKey="waitForProductDisplayPageLoad3"/>
117123

0 commit comments

Comments
 (0)