Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/PaymentMollie.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | class PaymentMollie extends Page | ||||
*/ | */ | ||||
public function submitValidCreditCard($browser) | public function submitValidCreditCard($browser) | ||||
{ | { | ||||
if ($browser->element('@methods')) { | if ($browser->element('@methods')) { | ||||
$browser->click('@methods button.grid-button-creditcard') | $browser->click('@methods button.grid-button-creditcard') | ||||
->waitFor('button.form__button'); | ->waitFor('button.form__button'); | ||||
} | } | ||||
$browser->click('@status-table input[value="paid"]') | $browser->click('input[value="paid"]') | ||||
->click('button.form__button'); | ->click('button.form__button'); | ||||
} | } | ||||
} | } |