Skip to content

Commit 728a4c8

Browse files
author
Joan He
committed
MC-19451: Adapt functional tests to Elasticsearch
1 parent 2071f5c commit 728a4c8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
<!--Verify Category Title-->
6565
<see selector="{{AdminCategoryContentSection.categoryPageTitle}}" userInput="{{_defaultCategory.name}}" stepKey="seePageTitle" />
6666

67+
<!-- Perform reindex and flush cache -->
68+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
69+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
70+
6771
<!--Verify Category in store front page-->
6872
<amOnPage url="{{StorefrontCategoryPage.url(_defaultCategory.name)}}" stepKey="seeDefaultProductPage"/>
6973
<waitForPageLoad stepKey="waitForPageToBeLoaded"/>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@
186186
<waitForElementVisible selector="{{AdminCatalogStorefrontConfigSection.productsPerPageAllowedValues}}" stepKey="waitForSectionOpen"/>
187187
<seeInField selector="{{AdminCatalogStorefrontConfigSection.productsPerPageAllowedValues}}" userInput="12,24,36" stepKey="seeDefaultValueAllowedNumberProductsPerPage"/>
188188
<seeInField selector="{{AdminCatalogStorefrontConfigSection.productsPerPageDefaultValue}}" userInput="12" stepKey="seeDefaultValueProductPerPage"/>
189+
190+
<!-- Perform reindex and flush cache -->
191+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
192+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
193+
189194
<!-- Open storefront on the category page -->
190195
<comment userInput="Open storefront on the category page" stepKey="commentOpenStorefront"/>
191196
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="goToStorefrontCreatedCategoryPage"/>

0 commit comments

Comments
 (0)