Tests: Open payments

This commit is contained in:
Benjamin Beganović 2021-10-04 16:12:51 +02:00
parent e48018067b
commit bc6719e4fb

View File

@ -54,4 +54,21 @@ class IDEALTest extends DuskTestCase
->assertSee('Completed');
});
}
public function testOpenPayments(): void
{
$this->browse(function (Browser $browser) {
$browser
->visitRoute('client.invoices.index')
->click('@pay-now')
->press('Pay Now')
->clickLink('iDEAL')
->waitForText('Test profile')
->press('ABN AMRO')
->radio('final_state', 'open')
->press('Continue')
->waitForText('Details of the payment')
->assertSee('Pending');
});
}
}