create([ 'workspace_id' => (int) $tenant->workspace_id, 'name' => 'Baseline A', ]); BaselineTenantAssignment::factory()->create([ 'workspace_id' => (int) $tenant->workspace_id, 'tenant_id' => (int) $tenant->getKey(), 'baseline_profile_id' => (int) $profile->getKey(), ]); OperationRun::factory()->create([ 'tenant_id' => (int) $tenant->getKey(), 'workspace_id' => (int) $tenant->workspace_id, 'type' => 'baseline_compare', 'status' => 'completed', 'outcome' => 'succeeded', 'initiator_name' => 'System', 'context' => [ 'baseline_profile_id' => (int) $profile->getKey(), ], 'completed_at' => now()->subDay(), ]); $this->actingAs($user) ->get(TenantDashboard::getUrl(tenant: $tenant)) ->assertOk() ->assertSee('Baseline Governance') ->assertSee('Baseline A') ->assertSee('No open drift — baseline compliant'); });