31 lines
978 B
PHP
31 lines
978 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
it('renders Enabled/Disabled strings as badges', function () {
|
|
$html = View::file(
|
|
resource_path('views/filament/infolists/entries/policy-settings-standard.blade.php'),
|
|
[
|
|
'getState' => fn (): array => [
|
|
'settings' => [
|
|
[
|
|
'type' => 'table',
|
|
'title' => 'App configuration settings',
|
|
'rows' => [
|
|
['label' => 'StringEnabled', 'value' => 'Enabled'],
|
|
['label' => 'StringDisabled', 'value' => 'Disabled'],
|
|
],
|
|
],
|
|
],
|
|
'policy_type' => 'managedDeviceAppConfiguration',
|
|
],
|
|
],
|
|
)->render();
|
|
|
|
expect($html)->toContain('Enabled')
|
|
->and($html)->toContain('Disabled')
|
|
->and($html)->toContain('fi-badge');
|
|
});
|