Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/SignupTest.php
Show First 20 Lines • Show All 363 Lines • ▼ Show 20 Lines | public function testSignupStep3(): void | ||||
$step->click('[type=submit]'); | $step->click('[type=submit]'); | ||||
}); | }); | ||||
// At this point we should be auto-logged-in to dashboard | // At this point we should be auto-logged-in to dashboard | ||||
$browser->waitUntilMissing('@step3') | $browser->waitUntilMissing('@step3') | ||||
->waitUntilMissing('.app-loader') | ->waitUntilMissing('.app-loader') | ||||
->on(new Dashboard()) | ->on(new Dashboard()) | ||||
->assertUser('signuptestdusk@' . \config('app.domain')); | ->assertUser('signuptestdusk@' . \config('app.domain')) | ||||
->assertVisible('@links a.link-profile') | |||||
->assertMissing('@links a.link-domains') | |||||
->assertVisible('@links a.link-users') | |||||
->assertVisible('@links a.link-wallet'); | |||||
// Logout the user | // Logout the user | ||||
$browser->within(new Menu(), function ($browser) { | $browser->within(new Menu(), function ($browser) { | ||||
$browser->clickMenuItem('logout'); | $browser->clickMenuItem('logout'); | ||||
}); | }); | ||||
}); | }); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | public function testSignupGroup(): void | ||||
$step->type('#signup_domain', 'user-domain-signup.com') | $step->type('#signup_domain', 'user-domain-signup.com') | ||||
->click('[type=submit]'); | ->click('[type=submit]'); | ||||
}); | }); | ||||
// At this point we should be auto-logged-in to dashboard | // At this point we should be auto-logged-in to dashboard | ||||
$browser->waitUntilMissing('@step3') | $browser->waitUntilMissing('@step3') | ||||
->waitUntilMissing('.app-loader') | ->waitUntilMissing('.app-loader') | ||||
->on(new Dashboard()) | ->on(new Dashboard()) | ||||
->assertUser('admin@user-domain-signup.com'); | ->assertUser('admin@user-domain-signup.com') | ||||
->assertVisible('@links a.link-profile') | |||||
->assertVisible('@links a.link-domains') | |||||
->assertVisible('@links a.link-users') | |||||
->assertVisible('@links a.link-wallet'); | |||||
$browser->within(new Menu(), function ($browser) { | $browser->within(new Menu(), function ($browser) { | ||||
$browser->clickMenuItem('logout'); | $browser->clickMenuItem('logout'); | ||||
}); | }); | ||||
}); | }); | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |