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); });