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

Profile

\n
'); }); it('opens the email change form without a Livewire request', function () { $profileView = file_get_contents(resource_path('views/livewire/profile/index.blade.php')); expect($profileView) ->toContain('@click="openEmailModal()"') ->toContain('this.$refs.newEmailInput?.focus()') ->toContain('x-ref="newEmailInput"') ->toContain('x-show="emailModalOpen"') ->toContain('x-teleport="body"') ->toContain('Change email') ->toContain('Send code') ->toContain('Verify email') ->not->toContain('>Cancel') ->not->toContain('wire:click="showEmailChangeForm"'); }); 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) ->not->toContain('') ->toContain('Color theme') ->toContain("setTheme('{{ \$option['value'] }}')") ->toContain("['value' => 'light'") ->toContain("['value' => 'system'") ->toContain('to-[#050505]') ->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'"); });