9 use Magento\Mtf\TestStep\TestStepInterface;
10 use Magento\Paypal\Test\Fixture\SandboxCustomer;
11 use Magento\Paypal\Test\Page\Sandbox\ExpressReview;
38 private $assertTotalPaypalReview;
45 private $paypalPrices;
58 array $paypalPrices = []
62 $this->assertTotalPaypalReview = $assertTotalPaypalReview;
63 $this->paypalPrices = $paypalPrices;
73 $this->expressReview->getExpressMainLoginBlock()->waitForFormLoaded();
74 if ($this->expressReview->getExpressMainLoginBlock()->isVisible()) {
75 $this->expressReview->getExpressMainLoginBlock()->getLoginBlock()->fill($this->sandboxCustomer);
76 $this->expressReview->getExpressMainLoginBlock()->getLoginBlock()->sandboxLogin();
78 if (isset($this->paypalPrices[
'total'])) {
79 $this->assertTotalPaypalReview->processAssert($this->expressReview, $this->paypalPrices[
'total']);
81 $this->expressReview->getExpressMainReviewBlock()->getReviewBlock()->reviewAndContinue();
__construct(SandboxCustomer $sandboxCustomer, ExpressReview $expressReview, AssertTotalPaypalReview $assertTotalPaypalReview, array $paypalPrices=[])