Skip to content

Commit d879864

Browse files
author
Davit_Zakharyan
committed
MAGETWO-91542: Product belongs to categories with and without event does not shown
- Added automated test script
1 parent 56e56ce commit d879864

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontCategoryActionGroup.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
<seeElement selector="{{StorefrontCategoryProductSection.ProductAddToCartByName(product.name)}}" stepKey="AssertAddToCart" />
6363
</actionGroup>
6464

65+
<actionGroup name="StorefrontCheckAddToCartButtonAbsence">
66+
<arguments>
67+
<argument name="product"/>
68+
</arguments>
69+
<moveMouseOver selector="{{StorefrontCategoryProductSection.ProductInfoByName(product.name)}}" stepKey="moveMouseOverProduct" />
70+
<dontSeeElement selector="{{StorefrontCategoryProductSection.ProductAddToCartByName(product.name)}}" stepKey="checkAddToCartButtonAbsence"/>
71+
</actionGroup>
72+
6573
<actionGroup name="StorefrontSwitchCategoryViewToListMode">
6674
<click selector="{{StorefrontCategoryMainSection.modeListButton}}" stepKey="switchCategoryViewToListMode"/>
6775
<waitForElement selector="{{StorefrontCategoryMainSection.CategoryTitle}}" time="30" stepKey="waitForCategoryReload"/>

0 commit comments

Comments
 (0)