mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-29 18:12:53 +08:00
- Delete Blade components, component classes, Livewire components and views that nothing uses after the redesign. - Delete tests that only compare Blade/CSS source text; keep the source checks for authorization gates, stable wire:key values and escaping. - Update stale tests to the current UI and behaviour. - Update DESIGN.md to the current navigation and layout. - Add a lesson: test behaviour, not source markup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
505 B
PHP
20 lines
505 B
PHP
<?php
|
|
|
|
use App\Livewire\SettingsDropdown;
|
|
|
|
it('opens and closes the changelog modal state', function () {
|
|
$component = new SettingsDropdown;
|
|
$component->trigger = 'changelog-sidebar';
|
|
|
|
expect($component->trigger)->toBe('changelog-sidebar')
|
|
->and($component->showWhatsNewModal)->toBeFalse();
|
|
|
|
$component->openWhatsNewModal();
|
|
|
|
expect($component->showWhatsNewModal)->toBeTrue();
|
|
|
|
$component->closeWhatsNewModal();
|
|
|
|
expect($component->showWhatsNewModal)->toBeFalse();
|
|
});
|