From 25525308fc178a4e804733273501bc00dfc01b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 13 Oct 2021 15:41:32 +0200 Subject: [PATCH] Pay with saved bank account --- .../ClientPortal/Gateways/Stripe/SEPATest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/Stripe/SEPATest.php b/tests/Browser/ClientPortal/Gateways/Stripe/SEPATest.php index d347518dca5e..fdbfa59b1825 100644 --- a/tests/Browser/ClientPortal/Gateways/Stripe/SEPATest.php +++ b/tests/Browser/ClientPortal/Gateways/Stripe/SEPATest.php @@ -97,4 +97,18 @@ class SEPATest extends DuskTestCase ->waitForText('Details of the payment', 60); }); } + + public function testPayWithSavedBankAccount() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.invoices.index') + ->click('@pay-now') + ->click('@pay-now-dropdown') + ->clickLink('SEPA Direct Debit') + ->click('.toggle-payment-with-token') + ->click('#pay-now') + ->waitForText('Details of the payment', 60); + }); + } }