/** * @Given I should be able to go to the summary page again */ public function iShouldBeAbleToGoToTheSummaryPageAgain() { $this->paymentPage->nextStep(); Assert::true($this->summaryPage->isOpen(), 'Checkout summary page should be opened, but it is not.'); }
/** * @Then I should not be able to select :paymentMethodName payment method */ public function iShouldNotBeAbleToSelectPaymentMethod($paymentMethodName) { Assert::false($this->paymentPage->hasPaymentMethod($paymentMethodName), sprintf('Payment method "%s" should not be available but it does.', $paymentMethodName)); }