TenantAtlas/apps/platform/tests/Feature/RequiredPermissions/RequiredPermissionsEmptyStateTest.php
Ahmed Darrazi e4db44f606
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m27s
feat: complete workspace-first environment routing cutover
2026-05-07 23:46:45 +02:00

20 lines
650 B
PHP

<?php
declare(strict_types=1);
use App\Filament\Resources\TenantResource;
use App\Support\Links\RequiredPermissionsLinks;
it('renders the no-data state with a canonical start verification link when no stored permission data exists', function (): void {
[$user, $tenant] = createUserWithTenant(role: 'readonly');
$expectedUrl = TenantResource::getUrl('view', ['record' => $tenant]);
$this->actingAs($user)
->get(RequiredPermissionsLinks::requiredPermissions($tenant))
->assertSuccessful()
->assertSee('No data available')
->assertSee($expectedUrl, false)
->assertSee('Start verification');
});