Skip to content

Commit 9f0473d

Browse files
Merge remote-tracking branch 'remotes/github/MC-10966' into EPAM-PR-53
2 parents 211dd25 + 8457b1e commit 9f0473d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

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

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

0 commit comments

Comments
 (0)