TenantAtlas/apps/platform/tests/Feature/RequiredPermissions/RequiredPermissionsEmptyStateTest.php
Ahmed Darrazi 4706e52616
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 58s
feat: add onboarding readiness workflow
2026-04-25 23:16:00 +02:00

19 lines
608 B
PHP

<?php
declare(strict_types=1);
use App\Filament\Resources\TenantResource;
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("/admin/tenants/{$tenant->external_id}/required-permissions")
->assertSuccessful()
->assertSee('No data available')
->assertSee($expectedUrl, false)
->assertSee('Start verification');
});