new tests using separate testing databases core updates and also fixes for xdebug and swoole

This commit is contained in:
Mark Gregory
2026-06-11 15:41:51 +01:00
parent 2367c4aa2d
commit dd13d38ed6
6 changed files with 59 additions and 81 deletions
+5 -8
View File
@@ -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');
});
}