TenantAtlas/apps/platform/tests/Feature/Rbac/DriftLandingUiEnforcementTest.php
Ahmed Darrazi 444b3520b0
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 10m54s
fix: restore full suite green signal
2026-05-12 20:45:16 +02:00

18 lines
629 B
PHP

<?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(panel: 'admin').'?tenant='.urlencode((string) $tenant->external_id))
->assertOk();
$this->actingAs($user)
->get('/admin/t/'.$tenant->external_id.'/drift-landing')
->assertNotFound();
});