toContain('section="shared-variables"') ->toContain(':titleOnDesktop="false"'); } }); test('shared variables editor places the view toggle next to the tabs', function () { $editor = file_get_contents(resource_path('views/components/shared-variables/editor.blade.php')); expect($editor) ->toContain('') ->toContain('wire:click="switch"') ->toContain('Developer view') ->toContain('Normal view'); // No longer nested as a section header action above the variable list. expect($editor)->not->toMatch( '/settings-section[\s\S]{0,200}[\s\S]{0,200}wire:click="switch"/' ); }); test('shared variables table omits resource-only flag columns', function () { $editor = file_get_contents(resource_path('views/components/shared-variables/editor.blade.php')); $show = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php')); $css = file_get_contents(resource_path('css/app.css')); // Shared table: Name / Scope / Comment / Multiline only (no Literal, Buildtime, Runtime). expect($editor) ->toContain('env-table-grid-shared') ->toContain('>Multiline') ->not->toContain('>Literal') ->not->toContain('>Buildtime') ->not->toContain('>Runtime'); expect($show) ->toContain('env-table-grid-shared') ->toContain('$isSharedVariable'); expect($css)->toContain('.env-table-grid-shared'); });