mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-25 12:27:45 +00:00
Add dedicated service volume-backup Livewire pages and routes, wire shared storage backups for services, and pass S3 trusted hosts into MinIO resolve options. Also refine breadcrumbs, sticky sidebars, destination/GitHub layouts, resource filters, and login recovery link.
50 lines
2.1 KiB
PHP
50 lines
2.1 KiB
PHP
<?php
|
|
|
|
it('uses the account menu as the only profile navigation', function () {
|
|
$routes = file_get_contents(base_path('routes/web.php'));
|
|
$profileView = file_get_contents(resource_path('views/livewire/profile/index.blade.php'));
|
|
|
|
expect($routes)
|
|
->toContain("Route::get('/profile/appearance', ProfileAppearance::class)->name('profile.appearance')")
|
|
->and($profileView)
|
|
->not->toContain('<x-profile.navbar />')
|
|
->not->toContain('<h1>Profile</h1>\n <div class="subtitle -mt-2">');
|
|
});
|
|
|
|
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</x-forms.button>')
|
|
->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('<x-profile.navbar />')
|
|
->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'");
|
|
});
|