Skip to content

Commit 8671878

Browse files
committed
MC-34987: [2.3] MFTF tests causing high load on Jenkins agents in MTSv1 platform
1 parent 1523372 commit 8671878

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Paypal/Test/Mftf/ActionGroup/StorefrontPayOrderOnPayPalCheckoutActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<argument name="productName" type="string"/>
1717
</arguments>
1818
<click selector="{{PayPalPaymentSection.cartIcon}}" stepKey="openCart"/>
19-
<waitForPageLoad stepKey="waitForCartLoad"/>
19+
<waitForElementVisible selector="{{PayPalPaymentSection.itemName(productName)}}" stepKey="waitForCartLoad"/>
2020
<seeElement selector="{{PayPalPaymentSection.itemName(productName)}}" stepKey="seeProductName"/>
2121
<click selector="{{PayPalPaymentSection.PayPalSubmitBtn}}" stepKey="clickPayPalSubmitBtn"/>
2222
<switchToPreviousTab stepKey="switchToPreviousTab"/>

app/code/Magento/Paypal/Test/Mftf/Section/PayPalExpressCheckoutConfigSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<element name="loginBtn" type="input" selector="button#btnLogin"/>
6060
<element name="reviewUserInfo" type="text" selector="[data-testid=personalized-banner-content]"/>
6161
<element name="cartIcon" type="text" selector="[data-testid='header-show-cart-dropdown-btn']"/>
62-
<element name="itemName" type="text" selector="//p[contains(@class,'CartDropdown_line') and text()='{{productName}}']" parameterized="true"/>
62+
<element name="itemName" type="text" selector="//p[contains(@class,'CartDropdown_line') and contains(.,'{{productName}}')]" parameterized="true"/>
6363
<element name="PayPalSubmitBtn" type="text" selector="#payment-submit-btn"/>
6464
<element name="nextButton" type="button" selector="#btnNext"/>
6565
<element name="continueButton" type="button" selector=".continueButton"/>

0 commit comments

Comments
 (0)