Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/DomainTest.php
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | class DomainTest extends TestCaseDusk | ||||
*/ | */ | ||||
public function testDomainListEmpty(): void | public function testDomainListEmpty(): void | ||||
{ | { | ||||
$this->browse(function ($browser) { | $this->browse(function ($browser) { | ||||
// Login the user | // Login the user | ||||
$browser->visit('/login') | $browser->visit('/login') | ||||
->on(new Home()) | ->on(new Home()) | ||||
->submitLogon('jack@kolab.org', 'simple123', true) | ->submitLogon('jack@kolab.org', 'simple123', true) | ||||
// On dashboard click the "Domains" link | |||||
->on(new Dashboard()) | ->on(new Dashboard()) | ||||
->assertVisible('@links a.link-profile') | |||||
->assertMissing('@links a.link-domains') | |||||
->assertMissing('@links a.link-users') | |||||
->assertMissing('@links a.link-wallet'); | |||||
/* | |||||
// On dashboard click the "Domains" link | |||||
->assertSeeIn('@links a.link-domains', 'Domains') | ->assertSeeIn('@links a.link-domains', 'Domains') | ||||
->click('@links a.link-domains') | ->click('@links a.link-domains') | ||||
// On Domains List page click the domain entry | // On Domains List page click the domain entry | ||||
->on(new DomainList()) | ->on(new DomainList()) | ||||
->assertMissing('@table tbody') | ->assertMissing('@table tbody') | ||||
->assertSeeIn('tfoot td', 'There are no domains in this account.'); | ->assertSeeIn('tfoot td', 'There are no domains in this account.'); | ||||
*/ | |||||
}); | }); | ||||
} | } | ||||
} | } |