Skip to content

Commit 0fe9cf2

Browse files
committed
#26986 Fix failing Functional Test: Do not display repeated products
1 parent 14ea335 commit 0fe9cf2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/code/Magento/Elasticsearch6/Test/Mftf/Test/StorefrontProductQuickSearchUsingElasticSearch6Test.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<field key="name">Product Simple AAA</field>
3131
</createData>
3232
<magentoCLI command="config:set {{CustomGridPerPageValuesConfigData.path}} {{CustomGridPerPageValuesConfigData.value}}" stepKey="setCustomGridPerPageValues"/>
33+
<magentoCLI stepKey="flushConfigCache" command="cache:flush config"/>
34+
<magentoCron groups="index" stepKey="runCronIndex"/>
3335
</before>
3436

3537
<after>
@@ -57,11 +59,8 @@
5759
</actionGroup>
5860
<selectOption selector="{{StorefrontCategoryBottomToolbarSection.perPage}}" userInput="2" stepKey="selectDisplayedProductInGridPerPage"/>
5961
<waitForPageLoad stepKey="waitForPageLoad"/>
60-
<actionGroup ref="AssertProductOnCategoryPageActionGroup" stepKey="assertFirstProductDisplayedOnCatalogSearchPage">
61-
<argument name="product" value="$createFirstProduct$"/>
62-
</actionGroup>
63-
<actionGroup ref="AssertProductOnCategoryPageActionGroup" stepKey="assertSecondProductDisplayedOnCatalogSearchPage">
64-
<argument name="product" value="$createSecondProduct$"/>
65-
</actionGroup>
62+
63+
<seeInCurrentUrl stepKey="assertStillOnSecondPage" url="?p=2"/>
64+
<actionGroup ref="AssertStorefrontNoProductsFoundActionGroup" stepKey="assertEmptyResultsPage"/>
6665
</test>
6766
</tests>

0 commit comments

Comments
 (0)