Пример #1
0
 /**
  * @Then I should be redirected back to the thank you page
  */
 public function iShouldBeRedirectedBackToTheThankYouPage()
 {
     $this->checkoutThankYouPage->waitForResponse(5);
     expect($this->checkoutThankYouPage->isOpen())->toBe(true);
 }
Пример #2
0
 /**
  * @Then /^I should be redirected (?:|back )to the thank you page$/
  */
 public function iShouldBeRedirectedBackToTheThankYouPage()
 {
     $this->thankYouPage->waitForResponse(5);
     Assert::true($this->thankYouPage->isOpen(), 'I should be on thank you page, but I am not.');
 }
Пример #3
0
 /**
  * @Then I should be able to pay again
  */
 public function iShouldBeAbleToPayAgain()
 {
     Assert::true($this->thankYouPage->isOpen(), 'I should be on thank you page, but I am not.');
     Assert::true($this->thankYouPage->hasPayAction(), 'I should be able to pay, but I am not able to.');
 }