<?php

use App\Filament\Pages\BaselineCompareLanding;
use App\Support\Workspaces\WorkspaceContext;

it('uses baseline compare landing as the drift entry point post-cutover', function (): void {
    [$user, $tenant] = createUserWithTenant(role: 'owner');

    $this->actingAs($user)
        ->withSession([WorkspaceContext::SESSION_KEY => (int) $tenant->workspace_id])
        ->get(BaselineCompareLanding::getUrl(tenant: $tenant, panel: 'admin'))
        ->assertOk();

    $this->actingAs($user)
        ->get('/admin/baseline-compare-landing?tenant='.urlencode((string) $tenant->external_id))
        ->assertNotFound();

    $this->actingAs($user)
        ->get('/admin/t/'.$tenant->external_id.'/drift-landing')
        ->assertNotFound();
});
