File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
class AssertGrandTotalOrderReview extends AbstractConstraint
16
16
{
17
+ /**
18
+ * Wait element.
19
+ *
20
+ * @var string
21
+ */
22
+ protected $ waitElement = '.loading-mask ' ;
23
+
17
24
/**
18
25
* Assert that Order Grand Total is correct on checkoutOnePage
19
26
*
@@ -23,6 +30,7 @@ class AssertGrandTotalOrderReview extends AbstractConstraint
23
30
*/
24
31
public function processAssert (CheckoutOnepage $ checkoutOnepage , $ grandTotal )
25
32
{
33
+ $ checkoutOnepage ->getReviewBlock ()->waitForElementNotVisible ($ this ->waitElement );
26
34
$ checkoutReviewGrandTotal = $ checkoutOnepage ->getReviewBlock ()->getGrandTotal ();
27
35
28
36
\PHPUnit_Framework_Assert::assertEquals (
You can’t perform that action at this time.
0 commit comments