1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Tests: Successful payments

This commit is contained in:
Benjamin Beganović 2021-09-24 23:48:24 +02:00
parent 9d46052752
commit a6564e321b

View File

@ -17,7 +17,7 @@ use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
use Tests\Browser\Pages\ClientPortal\Login;
class Bancontact extends DuskTestCase
class BancontactTest extends DuskTestCase
{
protected function setUp(): void
{
@ -37,4 +37,20 @@ class Bancontact 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')
->radio('final_state', 'paid')
->press('Continue')
->waitForText('Details of the payment')
->assertSee('Completed');
});
}
}