<?php

declare(strict_types=1);

use App\Filament\Resources\FindingResource;
use Illuminate\Support\Facades\App;

it('resolves first-wave governance labels from the active locale', function (): void {
    App::setLocale('de');

    expect(__('localization.dashboard.tenant_title'))->toBe('Umgebungs-Dashboard')
        ->and(FindingResource::getNavigationGroup())->toBe('Governance')
        ->and(__('localization.findings.needs_action'))->toBe('Handlungsbedarf')
        ->and(__('baseline-compare.stat_total_findings'))->toBe('Findings gesamt')
        ->and(__('findings.rbac.detail_heading'))->toBe('Intune-RBAC-Rollendefinitions-Drift');
});
