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 17
17
<testCaseId value =" MC-71" />
18
18
<group value =" CatalogRule" />
19
19
</annotations >
20
+
20
21
<before >
21
22
<!-- Create a simple product and a category-->
22
23
<createData entity =" ApiCategory" stepKey =" createCategory" />
26
27
27
28
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
28
29
<actionGroup ref =" AdminCatalogPriceRuleDeleteAllActionGroup" stepKey =" deleteAllCatalogPriceRule" />
29
- <magentoCLI command =" indexer:reindex" arguments =" catalogsearch_fulltext" stepKey =" reindexFulltextSearch" />
30
30
</before >
31
+
31
32
<after >
32
33
<!-- Delete the simple product and category -->
33
34
<deleteData createDataKey =" createProduct" stepKey =" deleteProduct" />
34
35
<deleteData createDataKey =" createCategory" stepKey =" deleteCategory" />
35
36
<actionGroup ref =" AdminCatalogPriceRuleDeleteAllActionGroup" stepKey =" deleteAllCatalogPriceRule" />
36
37
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" amOnLogoutPage" />
38
+ <magentoCron groups =" index" stepKey =" reindexInvalidatedIndices" />
37
39
</after >
38
40
39
41
<!-- Create a catalog rule for the NOT LOGGED IN customer group -->
43
45
</actionGroup >
44
46
<actionGroup ref =" AdminCatalogPriceRuleFillActionsActionGroup" stepKey =" fillActionsPriceRule" />
45
47
<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 " />
48
50
49
51
<!-- As a NOT LOGGED IN user, go to the storefront category page and should see the discount -->
50
52
<actionGroup ref =" StorefrontNavigateCategoryPageActionGroup" stepKey =" goToCategory1" >
You can’t perform that action at this time.
0 commit comments