mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-14 08:42:38 -04: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>
24 lines
882 B
PHP
24 lines
882 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Blade;
|
|
|
|
it('keeps the save button loading until the parent compose save finishes', function () {
|
|
$component = file_get_contents(app_path('Livewire/Project/Service/StackForm.php'));
|
|
|
|
expect($component)
|
|
->toContain('public function saveCompose($raw)')
|
|
->toContain("\$this->dispatch('compose-save-finished')");
|
|
});
|
|
|
|
it('does not show a saving notification for compose changes', function () {
|
|
$component = file_get_contents(app_path('Livewire/Project/Service/EditCompose.php'));
|
|
|
|
expect($component)->not->toContain("\$this->dispatch('info', 'Saving new docker compose...')");
|
|
});
|
|
|
|
it('keeps the saving state as an Alpine button binding', function () {
|
|
$html = Blade::render('<x-forms.button x-bind:disabled="saving">Save changes</x-forms.button>');
|
|
|
|
expect($html)->toContain('x-bind:disabled="saving"');
|
|
});
|