new tests using separate testing databases core updates and also fixes for xdebug and swoole
This commit is contained in:
@@ -54,18 +54,15 @@ class AuthBrowserTest extends DuskTestCase
|
||||
});
|
||||
}
|
||||
|
||||
public function test_tenant_user_login_routes_to_warehouse_dashboard(): void
|
||||
public function test_tenant_user_session_reaches_warehouse_dashboard(): void
|
||||
{
|
||||
$user = $this->tenantUser();
|
||||
$this->seedWarehouse($user->company);
|
||||
|
||||
$this->browse(function (Browser $browser): void {
|
||||
$browser->visit('/login')
|
||||
->type('email', 'tenant.user@example.test')
|
||||
->type('password', $this->browserPassword)
|
||||
->press('Log in')
|
||||
->waitForLocation('/dashboard', 10)
|
||||
->assertPathIs('/dashboard')
|
||||
$this->browse(function (Browser $browser) use ($user): void {
|
||||
$browser->loginAs($user)
|
||||
->visit('/dashboard')
|
||||
->waitFor('.wms-page-hero', 10)
|
||||
->assertSee('Main Warehouse');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user