Added EPS-Test

This commit is contained in:
Lars Kusch 2021-10-15 16:30:24 +02:00
parent bcc0f39923
commit 13894b0541

View File

@ -48,8 +48,6 @@ class EPSTest extends DuskTestCase
$cg->fees_and_limits = $fees_and_limits; $cg->fees_and_limits = $fees_and_limits;
$cg->save(); $cg->save();
// SOFORT required ['AUT', 'BEL', 'DEU', 'ITA', 'NLD', 'ESP'] to be billing country.
// Setting country to DEU (276).
$client = Client::first(); $client = Client::first();
$client->country_id = 276; $client->country_id = 276;
$client->save(); $client->save();
@ -63,8 +61,12 @@ class EPSTest extends DuskTestCase
->click('@pay-now') ->click('@pay-now')
->press('Pay Now') ->press('Pay Now')
->clickLink('EPS') ->clickLink('EPS')
->press('Pay Now') ->type('#eps-name', 'John Doe')
->waitForText('Sofort test payment page', 120) ->withinFrame('iframe', function (Browser $browser) {
$browser->type('eps', '12345');
})
->click('#pay-now')
->waitForText('EPS test payment page', 120)
->press('.common-Button.common-Button--default') ->press('.common-Button.common-Button--default')
->waitForText('Details of the payment', 60); ->waitForText('Details of the payment', 60);
}); });