Skip to content

Commit 383704d

Browse files
committed
Merge remote-tracking branch 'origin/MC-34251' into 2.4-develop-pr39
2 parents 7c19db0 + 6b57698 commit 383704d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
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"/>
@@ -26,14 +27,15 @@
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 -->
@@ -43,8 +45,8 @@
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">

0 commit comments

Comments
 (0)