Skip to content

Commit 30f997f

Browse files
author
Joan He
committed
MC-19451: Adapt functional tests to Elasticsearch
1 parent 0df5c46 commit 30f997f

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<testCaseId value="MC-11386"/>
1919
<group value="catalog"/>
2020
<group value="indexer"/>
21+
<group value="SearchEngineMysql"/>
2122
</annotations>
2223
<before>
2324
<!-- Change "Category Products" and "Product Categories" indexers to "Update by Schedule" mode -->

app/code/Magento/CatalogRule/Test/Mftf/Test/AdminCreateCatalogPriceRuleTest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
<createData entity="ApiSimpleProduct" stepKey="createProduct">
155155
<requiredEntity createDataKey="createCategory"/>
156156
</createData>
157+
157158
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
158159
</before>
159160
<after>
@@ -176,6 +177,10 @@
176177
<click selector="{{AdminNewCatalogPriceRule.saveAndApply}}" stepKey="saveAndApply"/>
177178
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the rule." stepKey="assertSuccess"/>
178179

180+
<!-- Perform reindex and flush cache -->
181+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
182+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
183+
179184
<!-- As a NOT LOGGED IN user, go to the storefront category page and should see the discount -->
180185
<amOnPage url="$$createCategory.name$$.html" stepKey="goToCategory1"/>
181186
<see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$$createProduct.name$$" stepKey="seeProduct1"/>

app/code/Magento/CatalogRule/Test/Mftf/Test/AdminDeleteCatalogPriceRuleEntityTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@
154154
<requiredEntity createDataKey="createConfigChildProduct2"/>
155155
</createData>
156156

157+
<!-- Perform reindex and flush cache -->
158+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
159+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
160+
157161
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
158162

159163
<amOnPage url="{{AdminNewCatalogPriceRulePage.url}}" stepKey="openNewCatalogPriceRulePage"/>

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontImageColorWhenFilterByColorFilterTest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton"/>
6868
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnGenerateProductsButton"/>
6969
<actionGroup ref="saveProductForm" stepKey="saveProductForm"/>
70+
71+
<!-- Perform reindex and flush cache -->
72+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
73+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
74+
7075
<!--Select any option in the Layered navigation and verify product image-->
7176
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="navigateToCategoryPage"/>
7277
<actionGroup ref="SelectStorefrontSideBarAttributeOption" stepKey="selectStorefrontProductAttributeOption">

0 commit comments

Comments
 (0)