From 13894b0541e6154d54d0490776be1ac3692c2532 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Fri, 15 Oct 2021 16:30:24 +0200 Subject: [PATCH] Added EPS-Test --- tests/Browser/ClientPortal/Gateways/Stripe/EPSTest.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/Browser/ClientPortal/Gateways/Stripe/EPSTest.php b/tests/Browser/ClientPortal/Gateways/Stripe/EPSTest.php index 748584f6ab1d..4660d6a030ea 100644 --- a/tests/Browser/ClientPortal/Gateways/Stripe/EPSTest.php +++ b/tests/Browser/ClientPortal/Gateways/Stripe/EPSTest.php @@ -48,8 +48,6 @@ class EPSTest extends DuskTestCase $cg->fees_and_limits = $fees_and_limits; $cg->save(); - // SOFORT required ['AUT', 'BEL', 'DEU', 'ITA', 'NLD', 'ESP'] to be billing country. - // Setting country to DEU (276). $client = Client::first(); $client->country_id = 276; $client->save(); @@ -63,8 +61,12 @@ class EPSTest extends DuskTestCase ->click('@pay-now') ->press('Pay Now') ->clickLink('EPS') - ->press('Pay Now') - ->waitForText('Sofort test payment page', 120) + ->type('#eps-name', 'John Doe') + ->withinFrame('iframe', function (Browser $browser) { + $browser->type('eps', '12345'); + }) + ->click('#pay-now') + ->waitForText('EPS test payment page', 120) ->press('.common-Button.common-Button--default') ->waitForText('Details of the payment', 60); });