Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Admin/LogonTest.php
Show All 21 Lines | class LogonTest extends TestCaseDusk | ||||
} | } | ||||
/** | /** | ||||
* Test menu on logon page | * Test menu on logon page | ||||
*/ | */ | ||||
public function testLogonMenu(): void | public function testLogonMenu(): void | ||||
{ | { | ||||
$this->browse(function (Browser $browser) { | $this->browse(function (Browser $browser) { | ||||
$browser->visit(new Home()); | $browser->visit(new Home()) | ||||
$browser->within(new Menu(), function ($browser) { | ->with(new Menu(), function ($browser) { | ||||
$browser->assertMenuItems(['signup', 'explore', 'blog', 'support', 'webmail']); | $browser->assertMenuItems(['signup', 'explore', 'blog', 'support', 'webmail']); | ||||
}); | }) | ||||
->assertMissing('@second-factor-input') | |||||
->assertMissing('@forgot-password'); | |||||
}); | }); | ||||
} | } | ||||
/** | /** | ||||
* Test redirect to /login if user is unauthenticated | * Test redirect to /login if user is unauthenticated | ||||
*/ | */ | ||||
public function testLogonRedirect(): void | public function testLogonRedirect(): void | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |