driver->manage()->deleteAllCookies(); } $this->disableCompanyGateways(); CompanyGateway::where('gateway_key', '1bd651fb213ca0c9d66ae3c336dc77e8')->restore(); $this->browse(function (Browser $browser) { $browser ->visit(new Login()) ->auth(); }); } public function testSuccessfulPayment(): void { $this->browse(function (Browser $browser) { $browser ->visitRoute('client.invoices.index') ->click('@pay-now') ->press('Pay Now') ->clickLink('Undefined.') ->waitForText('Test profile') ->radio('final_state', 'paid') ->press('Continue') ->waitForText('Details of the payment') ->assertSee('Completed'); }); } }