Esempio n. 1
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.');
 }
Esempio n. 2
0
 /**
  * @Given /^I tried to pay(?:| again)$/
  * @When /^I try to pay(?:| again)$/
  */
 public function iTryToPayAgain()
 {
     $this->paypalApiMocker->mockApiPaymentInitializeResponse();
     $this->thankYouPage->pay();
 }
Esempio n. 3
0
 /**
  * @Given I confirm my changes
  */
 public function iConfirmMyChanges()
 {
     $this->thankYouPage->saveChanges();
 }
Esempio n. 4
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);
 }