Skip to content

Commit 6a08fad

Browse files
author
Stanislav Idolov
committed
MAGETWO-59573: Braintree JS error on checkout after applying 100% discount coupon with free shipping enabled
-- functional test
1 parent a66e464 commit 6a08fad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertGrandTotalOrderReview.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
*/
1515
class AssertGrandTotalOrderReview extends AbstractConstraint
1616
{
17+
/**
18+
* Wait element.
19+
*
20+
* @var string
21+
*/
22+
protected $waitElement = '.loading-mask';
23+
1724
/**
1825
* Assert that Order Grand Total is correct on checkoutOnePage
1926
*
@@ -23,6 +30,7 @@ class AssertGrandTotalOrderReview extends AbstractConstraint
2330
*/
2431
public function processAssert(CheckoutOnepage $checkoutOnepage, $grandTotal)
2532
{
33+
$checkoutOnepage->getReviewBlock()->waitForElementNotVisible($this->waitElement);
2634
$checkoutReviewGrandTotal = $checkoutOnepage->getReviewBlock()->getGrandTotal();
2735

2836
\PHPUnit_Framework_Assert::assertEquals(

0 commit comments

Comments
 (0)