/** * @Given I should be able to go to the summary page again */ public function iShouldBeAbleToGoToTheSummaryPageAgain() { $this->selectPaymentPage->nextStep(); Assert::true($this->completePage->isOpen(), 'Checkout summary page should be opened, but it is not.'); }
/** * @Then there should be information about no payment methods available for my order */ public function thereShouldBeInformationAboutNoPaymentMethodsAvailableForMyOrder() { Assert::true($this->selectPaymentPage->hasNoAvailablePaymentMethodsWarning(), 'There should be warning about no available payment methods, but it does not.'); }
/** * @Then I should have :paymentMethodName payment method available as the last choice */ public function iShouldHavePaymentMethodAvailableAsLastChoice($paymentMethodName) { $paymentMethods = $this->selectPaymentPage->getPaymentMethods(); $lastPaymentMethod = end($paymentMethods); Assert::same($paymentMethodName, $lastPaymentMethod); }