File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/code/Magento/CatalogRule/Test/Mftf/Test/AdminCreateCatalogPriceRuleTest Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1717 <testCaseId value =" MC-71" />
1818 <group value =" CatalogRule" />
1919 </annotations >
20+
2021 <before >
2122 <!-- Create a simple product and a category-->
2223 <createData entity =" ApiCategory" stepKey =" createCategory" />
2627
2728 <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
2829 <actionGroup ref =" AdminCatalogPriceRuleDeleteAllActionGroup" stepKey =" deleteAllCatalogPriceRule" />
29- <magentoCLI command =" indexer:reindex" arguments =" catalogsearch_fulltext" stepKey =" reindexFulltextSearch" />
3030 </before >
31+
3132 <after >
3233 <!-- Delete the simple product and category -->
3334 <deleteData createDataKey =" createProduct" stepKey =" deleteProduct" />
3435 <deleteData createDataKey =" createCategory" stepKey =" deleteCategory" />
3536 <actionGroup ref =" AdminCatalogPriceRuleDeleteAllActionGroup" stepKey =" deleteAllCatalogPriceRule" />
3637 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" amOnLogoutPage" />
38+ <magentoCron groups =" index" stepKey =" reindexInvalidatedIndices" />
3739 </after >
3840
3941 <!-- Create a catalog rule for the NOT LOGGED IN customer group -->
4345 </actionGroup >
4446 <actionGroup ref =" AdminCatalogPriceRuleFillActionsActionGroup" stepKey =" fillActionsPriceRule" />
4547 <actionGroup ref =" AdminCatalogPriceRuleSaveAndApplyActionGroup" stepKey =" saveAndApplyFPriceRule" />
46- <!-- Perform reindex -->
47- <magentoCLI command = " indexer:reindex " arguments = " catalogrule_rule " stepKey =" reindexPriceRuleIndex " />
48+ <!-- Perform reindex and flush cache -->
49+ <actionGroup ref = " AdminReindexAndFlushCache " stepKey =" reindexAndFlushCache " />
4850
4951 <!-- As a NOT LOGGED IN user, go to the storefront category page and should see the discount -->
5052 <actionGroup ref =" StorefrontNavigateCategoryPageActionGroup" stepKey =" goToCategory1" >
You can’t perform that action at this time.
0 commit comments