Esempio n. 1
0
 /**
  * @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.');
 }
Esempio n. 2
0
 /**
  * @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));
 }