Skip to content

Commit 53b2ed1

Browse files
committed
B2B-2123: [S3 MFTF] Flaky test StorefrontInlineTranslationWithQuoteSymbolsTest
1 parent d2e7a3c commit 53b2ed1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/AssertOneProductNameInMiniCartActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<argument name="productName"/>
1717
</arguments>
1818

19+
<waitForElementVisible selector="{{StorefrontMinicartSection.nonEmptyCartCounter}}" stepKey="waitForNonEmptyCartCounter" />
1920
<conditionalClick selector="{{StorefrontMinicartSection.showCart}}" dependentSelector="{{StorefrontMinicartSection.miniCartOpened}}" visible="false" stepKey="openMiniCart"/>
2021
<waitForPageLoad stepKey="waitForCartToAppear"/>
2122
<waitForElementVisible selector="{{StorefrontMinicartSection.viewAndEditCart}}" stepKey="waitForViewAndEditCartVisible"/>

app/code/Magento/Checkout/Test/Mftf/Section/StorefrontMinicartSection.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
<element name="itemQuantityUpdate" type="button" selector="//a[text()='{{productName}}']/../..//span[text()='Update']" parameterized="true"/>
3636
<element name="itemDiscount" type="text" selector="//tr[@class='totals']//td[@class='amount']/span"/>
3737
<element name="subtotal" type="text" selector="//tr[@class='totals sub']//td[@class='amount']/span"/>
38-
<element name="emptyCart" type="text" selector=".counter.qty.empty"/>
38+
<element name="emptyCart" type="text" selector=".minicart-wrapper .counter.qty.empty"/>
39+
<element name="nonEmptyCartCounter" type="text" selector=".minicart-wrapper .counter.qty:not(.empty)"/>
3940
<element name="emptyMiniCart" type="text" selector="//div[@class='minicart-wrapper']//span[@class='counter qty empty']/../.."/>
4041
<element name="minicartContent" type="block" selector="#minicart-content-wrapper"/>
4142
<element name="messageEmptyCart" type="text" selector="//*[@id='minicart-content-wrapper']//*[contains(@class,'subtitle empty')]"/>

0 commit comments

Comments
 (0)