Skip to content

Commit 463e25a

Browse files
committed
MAGETWO-52478: CreateOnlineCreditMemoBraintreePaypalTest is failing on closing popup window
- Fix for checkout from shopping cart
1 parent 8d7d96d commit 463e25a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dev/tests/functional/tests/app/Magento/Braintree/Test/TestStep/CheckoutWithPaypalFromCartStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(CheckoutCart $checkoutCart)
3737
public function run()
3838
{
3939
$this->checkoutCart->open();
40-
$this->checkoutCart->getCartBlock()->waitCartContainerLoading();
40+
$this->checkoutCart->getTotalsBlock()->waitForUpdatedTotals();
4141
$currentWindow = $this->checkoutCart->getCartBlock()
4242
->braintreePaypalCheckout();
4343
$this->checkoutCart->getBraintreePaypalBlock()->process($currentWindow);

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ public function isVisibleShippingPriceBlock()
247247
*/
248248
public function waitForUpdatedTotals()
249249
{
250-
// Code under may use JavaScript delay at this point as well.
251-
sleep(1);
250+
$this->waitForElementVisible($this->blockWaitElement);
252251
$this->waitForElementNotVisible($this->blockWaitElement);
253252
}
254253

0 commit comments

Comments
 (0)