Example #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);
 }
Example #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.');
 }
Example #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.');
 }