Skip to content

Commit 9955980

Browse files
committed
MC-65: Admin should be able to create a catalog price rule applied as a percentage of original (for simple product)
- Flush cache after reindexing
1 parent fa11981 commit 9955980

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/CatalogRule/Test/AdminCreateCatalogPriceRuleTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
<!-- Go to category page and make sure that all of the prices are correct -->
4747
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
48+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
4849
<amOnPage url="$$createCategory.name$$.html" stepKey="goToCategoryPage"/>
4950
<waitForPageLoad stepKey="waitForCategory"/>
5051
<see stepKey="seeOldPrice" selector="{{StorefrontCategoryProductSection.ProductOldPriceByNumber('1')}}" userInput="$$createProduct.price$$"/>
@@ -104,6 +105,7 @@
104105

105106
<!-- Go to category page and make sure that all of the prices are correct -->
106107
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
108+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
107109
<amOnPage url="$$createCategory.name$$.html" stepKey="goToCategoryPage"/>
108110
<waitForPageLoad stepKey="waitForCategory"/>
109111
<see stepKey="seeOldPrice" selector="{{StorefrontCategoryProductSection.ProductOldPriceByNumber('1')}}" userInput="$$createProduct.price$$"/>
@@ -163,6 +165,7 @@
163165

164166
<!-- Go to category page and make sure that all of the prices are correct -->
165167
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
168+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
166169
<amOnPage url="$$createCategory.name$$.html" stepKey="goToCategoryPage"/>
167170
<waitForPageLoad stepKey="waitForCategory"/>
168171
<see stepKey="seeOldPrice" selector="{{StorefrontCategoryProductSection.ProductOldPriceByNumber('1')}}" userInput="$$createProduct.price$$"/>
@@ -222,6 +225,7 @@
222225

223226
<!-- Go to category page and make sure that all of the prices are correct -->
224227
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
228+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
225229
<amOnPage url="$$createCategory.name$$.html" stepKey="goToCategoryPage"/>
226230
<waitForPageLoad stepKey="waitForCategory"/>
227231
<see stepKey="seeOldPrice" selector="{{StorefrontCategoryProductSection.ProductOldPriceByNumber('1')}}" userInput="$$createProduct.price$$"/>

0 commit comments

Comments
 (0)