Skip to content

Commit

Permalink
#26986 Fix failing Functional Test (assert empty page)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajsarowicz committed Feb 24, 2020
1 parent ecb3a8d commit 015c5fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AssertStorefrontNoProductsFoundActionGroup">
<see userInput="We can't find products matching the selection." stepKey="seeEmptyNotice"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@

<!-- # Category should open successfully # <product1> should be absent on the page -->
<see userInput="$$createAnchoredCategory1.name$$" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="seeCategory1Name"/>
<see userInput="We can't find products matching the selection." stepKey="seeEmptyNotice"/>
<actionGroup ref="AssertStorefrontNoProductsFoundActionGroup" stepKey="seeEmptyNotice"/>
<dontSee userInput="$$simpleProduct.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="dontseeProduct"/>

<!-- Log in to the backend: Admin user is logged in-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

<!-- The category is still empty -->
<see userInput="$$createCategoryA.name$$" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="seeCategoryA1Name"/>
<see userInput="We can't find products matching the selection." stepKey="seeEmptyNotice"/>
<actionGroup ref="AssertStorefrontNoProductsFoundActionGroup" stepKey="seeEmptyNotice"/>
<dontSee userInput="$$createProductA1.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="dontseeProductA1"/>

<!-- 4. Run cron to reindex -->
Expand Down Expand Up @@ -128,7 +128,7 @@

<!-- Category A is empty now -->
<see userInput="$$createCategoryA.name$$" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="seeOnPageCategoryAName"/>
<see userInput="We can't find products matching the selection." stepKey="seeOnPageEmptyNotice"/>
<actionGroup ref="AssertStorefrontNoProductsFoundActionGroup" stepKey="seeOnPageEmptyNotice"/>
<dontSee userInput="$$createProductA1.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="dontseeProductA1OnPage"/>

<!-- Case: change product status -->
Expand Down

0 comments on commit 015c5fc

Please sign in to comment.