Seed Care demos from shared DemoWorld with staff roles.
Deploy Ladill Care / deploy (push) Successful in 1m0s

Patients, branches, and org identity now match suite continuity keys; staff Members are created for training SSO without login reseed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 13:27:07 +00:00
co-authored by Cursor
parent 2d548e2bbc
commit dd4efec135
6 changed files with 689 additions and 19 deletions
+15
View File
@@ -75,4 +75,19 @@ class DemoLoginReseederTest extends TestCase
app(DemoLoginReseeder::class)->maybeResetAfterLogin($user);
$this->app->terminate();
}
public function test_it_skips_staff_demo_logins(): void
{
$user = User::create([
'public_id' => 'demo-pro-doctor-pid',
'name' => 'Dr. Kwame Mensah (Pro)',
'email' => 'demo-pro-doctor@ladill.com',
]);
$seeder = $this->mock(DemoTenantSeeder::class);
$seeder->shouldReceive('seed')->never();
app(DemoLoginReseeder::class)->maybeResetAfterLogin($user);
$this->app->terminate();
}
}