Skip to content

Commit b13c995

Browse files
committed
Merge remote-tracking branch 'mpi/MAGETWO-52478' into MPI-PR-3005
2 parents d57e045 + 2b1865f commit b13c995

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function __construct(CheckoutCart $checkoutCart)
3737
public function run()
3838
{
3939
$this->checkoutCart->open();
40+
$this->checkoutCart->getTotalsBlock()->waitForShippingPriceBlock();
4041
$this->checkoutCart->getTotalsBlock()->waitForUpdatedTotals();
4142
$currentWindow = $this->checkoutCart->getCartBlock()
4243
->braintreePaypalCheckout();

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

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

0 commit comments

Comments
 (0)