Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/LogonTest.php
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | public function testLogonSuccessful(): void | ||||
// Checks if we're really on Dashboard page | // Checks if we're really on Dashboard page | ||||
$browser->on(new Dashboard()) | $browser->on(new Dashboard()) | ||||
->within(new Menu(), function ($browser) { | ->within(new Menu(), function ($browser) { | ||||
$browser->assertMenuItems(['support', 'contact', 'webmail', 'logout']); | $browser->assertMenuItems(['support', 'contact', 'webmail', 'logout']); | ||||
}) | }) | ||||
->assertUser('john@kolab.org'); | ->assertUser('john@kolab.org'); | ||||
// TODO: Verify dashboard content | // Assert no "Account status" for this account | ||||
$browser->assertMissing('@status'); | |||||
// Goto /domains and assert that the link on logo element | // Goto /domains and assert that the link on logo element | ||||
// leads to the dashboard | // leads to the dashboard | ||||
$browser->visit('/domains') | $browser->visit('/domains') | ||||
->waitForText('Domains') | ->waitForText('Domains') | ||||
->click('a.navbar-brand') | ->click('a.navbar-brand') | ||||
->on(new Dashboard()); | ->on(new Dashboard()); | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |