Skip to content

Commit 9b58493

Browse files
author
Joan He
committed
MC-19451: Adapt functional tests to Elasticsearch
1 parent dd8f278 commit 9b58493

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
<requiredEntity createDataKey="createCategory"/>
2626
</createData>
2727

28+
<!-- Perform reindex and flush cache -->
29+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
30+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
31+
2832
<!-- log in and create the price rule -->
2933
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
3034
<actionGroup stepKey="createNewPriceRule" ref="newCatalogPriceRuleByUI"/>
3135
<actionGroup stepKey="selectNotLoggedInCustomerGroup" ref="selectNotLoggedInCustomerGroup"/>
3236
<click stepKey="saveAndApply" selector="{{AdminNewCatalogPriceRule.saveAndApply}}"/>
3337
<see stepKey="assertSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the rule."/>
34-
35-
<!-- Perform reindex and flush cache -->
36-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
37-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
3838
</before>
3939
<after>
4040
<!-- delete the simple product and catalog price rule and logout -->

app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontUpdateWishlistTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<createData entity="Simple_US_Customer" stepKey="customer"/>
2727
</before>
2828

29+
<!-- Perform reindex and flush cache -->
30+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
31+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
32+
2933
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
3034
<argument name="Customer" value="$$customer$$"/>
3135
</actionGroup>

0 commit comments

Comments
 (0)