Tests: Successful payments

This commit is contained in:
Benjamin Beganović 2021-09-24 23:23:16 +02:00
parent 4dfaf8f1a6
commit 76f646fc81

View File

@ -37,4 +37,21 @@ class KBCTest extends DuskTestCase
->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')
->press('CBC')
->radio('final_state', 'paid')
->press('Continue')
->waitForText('Details of the payment')
->assertSee('Completed');
});
}
}