Skip to content

Commit f5c21d0

Browse files
Implemented reindexing using CliIndexerReindexActionGroup and removed reloading the page
1 parent 36f313c commit f5c21d0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminApplyChangePriceForConfigurableProductWithAssignedSimpleProductsTest.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,17 @@
7878
<requiredEntity createDataKey="createFirstConfigProduct"/>
7979
<requiredEntity createDataKey="createFirstConfigFirstChildProduct"/>
8080
</createData>
81-
81+
<!-- Perform CLI reindex -->
82+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
83+
<argument name="indices" value=""/>
84+
</actionGroup>
8285
<!-- Assert first product in category -->
83-
<magentoCLI command="cron:run" stepKey="runCron"/>
8486
<amOnPage url="{{StorefrontCategoryPage.url($$firstSimpleCategory.custom_attributes[url_key]$$)}}" stepKey="goToFirstCategoryPageStorefront"/>
8587
<waitForPageLoad stepKey="waitForFirstCategoryPageLoad"/>
8688

8789
<reloadPage stepKey="reloadPage"/>
8890
<waitForPageLoad stepKey="waitForPageLoad"/>
89-
91+
9092
<actionGroup ref="StorefrontCheckCategoryConfigurableProductWithUpdatedPriceActionGroup" stepKey="checkFirstProductPriceInCategory">
9193
<argument name="productName" value="$$createFirstConfigProduct.name$$"/>
9294
<argument name="expectedPrice" value="$$createFirstConfigFirstChildProduct.price$$"/>

0 commit comments

Comments
 (0)