File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
dev/tests/functional/tests/app/Magento Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function __construct(CheckoutCart $checkoutCart)
37
37
public function run ()
38
38
{
39
39
$ this ->checkoutCart ->open ();
40
- $ this ->checkoutCart ->getCartBlock ()->waitCartContainerLoading ();
40
+ $ this ->checkoutCart ->getTotalsBlock ()->waitForUpdatedTotals ();
41
41
$ currentWindow = $ this ->checkoutCart ->getCartBlock ()
42
42
->braintreePaypalCheckout ();
43
43
$ this ->checkoutCart ->getBraintreePaypalBlock ()->process ($ currentWindow );
Original file line number Diff line number Diff line change @@ -247,8 +247,7 @@ public function isVisibleShippingPriceBlock()
247
247
*/
248
248
public function waitForUpdatedTotals ()
249
249
{
250
- // Code under may use JavaScript delay at this point as well.
251
- sleep (1 );
250
+ $ this ->waitForElementVisible ($ this ->blockWaitElement );
252
251
$ this ->waitForElementNotVisible ($ this ->blockWaitElement );
253
252
}
254
253
You can’t perform that action at this time.
0 commit comments