9 use Magento\Checkout\Test\Page\CheckoutOnepage;
10 use Magento\Mtf\Constraint\AbstractConstraint;
31 public function processAssert(CheckoutOnepage $checkoutOnepage, $grandTotal)
33 $checkoutOnepage->getReviewBlock()->waitForElementNotVisible($this->waitElement);
34 $checkoutReviewGrandTotal = $checkoutOnepage->getReviewBlock()->getGrandTotal();
36 \PHPUnit\Framework\Assert::assertEquals(
37 number_format($grandTotal, 2),
38 $checkoutReviewGrandTotal,
39 "Grand Total price: $checkoutReviewGrandTotal not equals with price from data set: $grandTotal" 50 return 'Grand Total price equals to price from data set.';
processAssert(CheckoutOnepage $checkoutOnepage, $grandTotal)