toContain("Route::get('/profile/appearance', ProfileAppearance::class)->name('profile.appearance')") ->and($profileNavbar) ->toContain('route(\'profile\')') ->toContain('route(\'profile.appearance\')') ->toContain('General') ->toContain('Appearance') ->and($profileView) ->toContain('') ->not->toContain('

Profile

\n
'); }); it('keeps color theme preferences on the profile appearance view without page width or density controls', function () { $appearanceView = file_get_contents(resource_path('views/livewire/profile/appearance.blade.php')); expect($appearanceView) ->toContain('') ->toContain('Color theme') ->toContain("setTheme('{{ \$option['value'] }}')") ->toContain("['value' => 'light'") ->toContain("['value' => 'system'") ->toContain("['value' => 'dark'") ->not->toContain('Page width') ->not->toContain('Interface density') ->not->toContain('setWidth(') ->not->toContain('setZoom(') ->not->toContain('pageWidth') ->not->toContain("localStorage.getItem('zoom')") ->not->toContain("localStorage.setItem('pageWidth'") ->not->toContain("localStorage.setItem('zoom'"); });