From bc6719e4fb834a5470d166cf2920afda99629bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Oct 2021 16:12:51 +0200 Subject: [PATCH] Tests: Open payments --- .../ClientPortal/Gateways/Mollie/IDEALTest.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/Mollie/IDEALTest.php b/tests/Browser/ClientPortal/Gateways/Mollie/IDEALTest.php index 8ece57b89ba9..ae3e15fff8d6 100644 --- a/tests/Browser/ClientPortal/Gateways/Mollie/IDEALTest.php +++ b/tests/Browser/ClientPortal/Gateways/Mollie/IDEALTest.php @@ -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'); + }); + } } \ No newline at end of file