Author: Mateusz Zalewski (mateusz.zalewski@lakion.com)
Inheritance: extends Sylius\Behat\Page\SymfonyPageInterface
Esempio n. 1
0
 /**
  * @Then I should not be able to complete the shipping step
  */
 public function iShouldNotBeAbleToCompleteTheShippingStep()
 {
     Assert::true($this->selectShippingPage->isNextStepButtonUnavailable(), 'The next step button should be disabled, but it does not.');
 }
Esempio n. 2
0
 /**
  * @Given I should see shipping method :shippingMethodName with fee :fee
  */
 public function iShouldSeeShippingFee($shippingMethodName, $fee)
 {
     Assert::true($this->selectShippingPage->hasShippingMethodFee($shippingMethodName, $fee), sprintf('The shipping fee should be %s, but it does not.', $fee));
 }
Esempio n. 3
0
 /**
  * @Then I should not see :shippingMethodName shipping method
  */
 public function iShouldNotSeeShippingMethod($shippingMethodName)
 {
     Assert::false($this->selectShippingPage->hasShippingMethod($shippingMethodName), sprintf('There should not be %s shipping method, but it is.', $shippingMethodName));
 }
Esempio n. 4
0
 /**
  * @Then I should be checking out as :email
  */
 public function iShouldBeCheckingOutAs($email)
 {
     Assert::same('Checking out as ' . $email . '.', $this->selectShippingPage->getPurchaserEmail());
 }