Автор: Anna Walasek (anna.walasek@lakion.com)
Наследование: extends Sylius\Behat\Page\SymfonyPageInterface
Пример #1
0
 /**
  * @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.');
 }
Пример #2
0
 /**
  * @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.');
 }
Пример #3
0
 /**
  * @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);
 }