Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/SignupTest.php
Show First 20 Lines • Show All 476 Lines • ▼ Show 20 Lines | class SignupTest extends TestCaseDusk | ||||
/** | /** | ||||
* Test signup with voucher | * Test signup with voucher | ||||
*/ | */ | ||||
public function testSignupVoucherLink(): void | public function testSignupVoucherLink(): void | ||||
{ | { | ||||
$this->browse(function (Browser $browser) { | $this->browse(function (Browser $browser) { | ||||
$browser->visit('/signup/voucher/TEST') | $browser->visit('/signup/voucher/TEST') | ||||
->onWithoutAssert(new Signup()) | ->onWithoutAssert(new Signup()) | ||||
->waitUntilMissing('.app-loader') | |||||
->waitFor('@step0') | ->waitFor('@step0') | ||||
->click('.plan-individual button') | ->click('.plan-individual button') | ||||
->whenAvailable('@step1', function (Browser $browser) { | ->whenAvailable('@step1', function (Browser $browser) { | ||||
$browser->type('#signup_first_name', 'Test') | $browser->type('#signup_first_name', 'Test') | ||||
->type('#signup_last_name', 'User') | ->type('#signup_last_name', 'User') | ||||
->type('#signup_email', 'BrowserSignupTestUser1@kolab.org') | ->type('#signup_email', 'BrowserSignupTestUser1@kolab.org') | ||||
->click('[type=submit]'); | ->click('[type=submit]'); | ||||
}) | }) | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |