/** * @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.'); }
/** * @Given /^I tried to pay(?:| again)$/ * @When /^I try to pay(?:| again)$/ */ public function iTryToPayAgain() { $this->paypalApiMocker->mockApiPaymentInitializeResponse(); $this->thankYouPage->pay(); }
/** * @Given I confirm my changes */ public function iConfirmMyChanges() { $this->thankYouPage->saveChanges(); }
/** * @Then I should be redirected back to the thank you page */ public function iShouldBeRedirectedBackToTheThankYouPage() { $this->checkoutThankYouPage->waitForResponse(5); expect($this->checkoutThankYouPage->isOpen())->toBe(true); }