Skip to content

Commit 67c7937

Browse files
author
Joan He
committed
Merge remote-tracking branch 'arcticfoxes/MC-19451' into test-function-test
2 parents 8bc3f6f + 639e068 commit 67c7937

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
<actionGroup stepKey="selectNotLoggedInCustomerGroup" ref="selectNotLoggedInCustomerGroup"/>
3232
<click stepKey="saveAndApply" selector="{{AdminNewCatalogPriceRule.saveAndApply}}"/>
3333
<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"/>
3438
</before>
3539
<after>
3640
<!-- delete the simple product and catalog price rule and logout -->

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
<selectOption selector="{{AdminNewCatalogPriceRule.status}}" userInput="Inactive" stepKey="setInactive"/>
3030
<click selector="{{AdminNewCatalogPriceRule.saveAndApply}}" stepKey="saveAndApply"/>
3131
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the rule." stepKey="seeSuccess"/>
32+
33+
<!-- Perform reindex and flush cache -->
34+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
35+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
3236
</before>
3337
<after>
3438
<deleteData createDataKey="createProduct" stepKey="deleteSimpleProduct"/>

0 commit comments

Comments
 (0)