/** * @Then I should be redirected back to the order payment page */ public function iShouldBeRedirectedBackToTheOrderPaymentPage() { $this->orderPaymentsPage->waitForResponse(5, ['number' => $this->getLastOrder()->getNumber()]); expect($this->orderPaymentsPage->isOpen(['number' => $this->getLastOrder()->getNumber()]))->toBe(true); }