Skip to content

Commit c4d2cbb

Browse files
committed
Fixed the broken mftf test
1 parent f41e43f commit c4d2cbb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@
9898
<magentoCLI command="cron:run --group index" stepKey="runCronTwice"/>
9999

100100
<!-- 5. Open category A on Storefront again -->
101-
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadCategoryA"/>
101+
<comment userInput="BIC workaround" stepKey="reloadCategoryA"/>
102+
<reloadPage stepKey="reloadPage"/>
103+
<waitForPageLoad stepKey="waitForPageLoad" time="60"/>
102104

103105
<!-- Category A displays product A1 now -->
104106
<see userInput="$$createCategoryA.name$$" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="seeTitleCategoryA1"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<!-- Run cron -->
8585
<magentoCLI command="cron:run" stepKey="runCron"/>
8686

87+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
8788
<!-- Check product is present in category after cron run -->
8889
<actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="assertProductInStorefront1">
8990
<argument name="category" value="$$createCategory$$"/>

0 commit comments

Comments
 (0)