Skip to content

Commit b628b53

Browse files
committed
MC-33747: [MFTF] Flaky StorefrontButtonsInlineTranslationTest
1 parent 9821017 commit b628b53

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/Catalog/Test/Mftf/Section/StorefrontProductActionSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<section name="StorefrontProductActionSection">
1111
<element name="quantity" type="input" selector="#qty"/>
1212
<element name="addToCart" type="button" selector="#product-addtocart-button" timeout="60"/>
13+
<element name="addToCartEnabled" type="button" selector="//button[@id='product-addtocart-button' and not(contains(@class, 'disabled'))]" timeout="60"/>
1314
<element name="addToCartButtonTitleIsAdding" type="text" selector="//button/span[text()='Adding...']"/>
1415
<element name="addToCartButtonTitleIsAdded" type="text" selector="//button/span[text()='Added']"/>
1516
<element name="addToCartButtonTitleIsAddToCart" type="text" selector="//button/span[text()='Add to Cart']"/>

app/code/Magento/Translation/Test/Mftf/Test/StorefrontButtonsInlineTranslationTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<!-- Add product to cart on storefront -->
4444
<amOnPage url="{{StorefrontProductPage.url($createProduct.custom_attributes[url_key]$)}}" stepKey="goToProductPage"/>
4545
<waitForPageLoad stepKey="waitForProductPageLoad"/>
46+
<seeElement selector="{{StorefrontProductActionSection.addToCartEnabled}}" stepKey="waitForAddToCartButtonEnabled"/>
4647
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addProductToCart">
4748
<argument name="productName" value="$createProduct.name$"/>
4849
</actionGroup>

0 commit comments

Comments
 (0)