Skip to content

Commit 30f3ad7

Browse files
committed
MAGETWO-67106: Unstable Automated test Magento\Paypal\Test\TestCase\InContextExpressCheckoutFromShoppingCartTest failed on variation InContextExpressCheckoutFromShoppingCartTestVariation1
1 parent fefd20b commit 30f3ad7

File tree

1 file changed

+2
-1
lines changed
  • dev/tests/functional/tests/app/Magento/Checkout/Test/Block

1 file changed

+2
-1
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Cart extends Block
6262
*
6363
* @var string
6464
*/
65-
protected $inContextPaypalCheckoutButton = 'ul.checkout-methods-items a[data-action="paypal-express-in-context-checkout"]';
65+
protected $inContextPaypalCheckoutButton = 'ul.checkout-methods-items a[data-action="paypal-in-context-checkout"]';
6666

6767
/**
6868
* Locator value for "Check out with Braintree PayPal" button.
@@ -184,6 +184,7 @@ public function paypalCheckout()
184184
*/
185185
public function inContextPaypalCheckout()
186186
{
187+
$this->waitForCheckoutButton();
187188
$this->_rootElement->find($this->inContextPaypalCheckoutButton)->click();
188189
$this->browser->selectWindow();
189190
$this->waitForFormLoaded();

0 commit comments

Comments
 (0)