## Summary - standardize the shared verification report family across operation detail, onboarding, and tenant verification widget hosts - standardize normalized settings and normalized diff family wrappers across policy, policy version, and finding detail hosts - add parity and guard coverage plus the full Spec 197 artifacts, including recorded manual smoke evidence ## Testing - focused Sail regression pack from `specs/197-shared-detail-contract/quickstart.md` - local integrated-browser manual smoke for SC-197-003 and SC-197-004 Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #237
32 lines
1.0 KiB
PHP
32 lines
1.0 KiB
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')
|
|
->and($html)->toContain('data-shared-detail-family="normalized-settings"');
|
|
});
|