Skip to content

Commit 0c378c5

Browse files
ACQE-8028: [MFTF TESTS] StorefrontButtonsInlineTranslationOnProductPageTest
- Added a scrollTo action in the AddToCartFromStorefrontProductPageActionGroup before the click
1 parent a6933f3 commit 0c378c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
</arguments>
1919
<waitForElementNotVisible selector="{{StorefrontProductActionSection.addToCartDisabled}}" stepKey="waitForAddToCartButtonToRemoveDisabledState"/>
2020
<waitForElementClickable selector="{{StorefrontProductActionSection.addToCart}}" stepKey="waitForAddToCartButton"/>
21+
<!-- Scroll to button to prevent overlapping elements from intercepting click -->
22+
<scrollTo selector="{{StorefrontProductActionSection.addToCart}}" stepKey="scrollToAddToCartButton"/>
2123
<click selector="{{StorefrontProductActionSection.addToCart}}" stepKey="addToCart"/>
2224
<waitForPageLoad stepKey="waitForAddToCart"/>
2325
<waitForElementNotVisible selector="{{StorefrontProductActionSection.addToCartButtonTitleIsAdding}}" stepKey="waitForElementNotVisibleAddToCartButtonTitleIsAdding"/>

0 commit comments

Comments
 (0)