Skip to content

Commit

Permalink
#26986 Fix failing Functional Test: Do not display repeated products
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajsarowicz committed Feb 25, 2020
1 parent 14ea335 commit 0fe9cf2
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<field key="name">Product Simple AAA</field>
</createData>
<magentoCLI command="config:set {{CustomGridPerPageValuesConfigData.path}} {{CustomGridPerPageValuesConfigData.value}}" stepKey="setCustomGridPerPageValues"/>
<magentoCLI stepKey="flushConfigCache" command="cache:flush config"/>
<magentoCron groups="index" stepKey="runCronIndex"/>
</before>

<after>
Expand Down Expand Up @@ -57,11 +59,8 @@
</actionGroup>
<selectOption selector="{{StorefrontCategoryBottomToolbarSection.perPage}}" userInput="2" stepKey="selectDisplayedProductInGridPerPage"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AssertProductOnCategoryPageActionGroup" stepKey="assertFirstProductDisplayedOnCatalogSearchPage">
<argument name="product" value="$createFirstProduct$"/>
</actionGroup>
<actionGroup ref="AssertProductOnCategoryPageActionGroup" stepKey="assertSecondProductDisplayedOnCatalogSearchPage">
<argument name="product" value="$createSecondProduct$"/>
</actionGroup>

<seeInCurrentUrl stepKey="assertStillOnSecondPage" url="?p=2"/>
<actionGroup ref="AssertStorefrontNoProductsFoundActionGroup" stepKey="assertEmptyResultsPage"/>
</test>
</tests>

0 comments on commit 0fe9cf2

Please sign in to comment.