Esempio n. 1
0
 /**
  * @Then I should see the thank you page
  */
 public function iShouldSeeTheThankYouPage()
 {
     /** @var UserInterface $user */
     $user = $this->sharedStorage->getCurrentResource('user');
     $customer = $user->getCustomer();
     expect($this->checkoutThankYouPage->hasThankYouMessageFor($customer->getFullName()))->toBe(true);
 }
Esempio n. 2
0
 /**
  * @Then I should be redirected back to the thank you page
  */
 public function iShouldBeRedirectedBackToTheThankYouPage()
 {
     $this->checkoutThankYouPage->waitForResponse(10);
     expect($this->checkoutThankYouPage->isOpen())->toBe(true);
 }