create(['name' => 'Spec385 Baseline Blocked']); [$user, $environment] = createUserWithTenant(tenant: $environment, role: 'owner', workspaceRole: 'manager'); [$profile, $baselineSnapshot] = seedActiveBaselineForTenant($environment); seedBaselineCompareRun( tenant: $environment, profile: $profile, snapshot: $baselineSnapshot, compareContext: spec385FilamentCompareContext([CompareResultReason::UnresolvedAmbiguousIdentity]), outcome: OperationRunOutcome::PartiallySucceeded->value, ); $snapshot = seedEnvironmentReviewEvidence($environment, findingCount: 0, driftCount: 0); $review = composeEnvironmentReviewForTest($environment, $user, $snapshot); $review->forceFill([ 'status' => EnvironmentReviewStatus::Published->value, 'published_at' => now(), 'published_by_user_id' => (int) $user->getKey(), ])->save(); $pack = ReviewPack::factory()->ready()->create([ 'managed_environment_id' => (int) $environment->getKey(), 'workspace_id' => (int) $environment->workspace_id, 'environment_review_id' => (int) $review->getKey(), 'evidence_snapshot_id' => (int) $snapshot->getKey(), 'initiated_by_user_id' => (int) $user->getKey(), 'options' => [ 'include_pii' => false, 'include_operations' => true, ], ]); $review->forceFill(['current_export_review_pack_id' => (int) $pack->getKey()])->save(); $component = spec385WorkspaceComponent($user, $environment) ->assertSee('Needs attention') ->assertSee('Baseline readiness blocked') ->assertSee('Open baseline resolution') ->assertDontSee('Output not customer-ready') ->assertDontSee('baseline_identity_unresolved') ->assertDontSee('provider_resource_id') ->assertDontSee('canonical_subject_key') ->assertDontSee('internal_diagnostics'); expect($component->html())->toMatch('/