mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-29 01:54:37 +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>
18 lines
682 B
PHP
18 lines
682 B
PHP
<?php
|
|
|
|
it('uses distinct keys for the add value field modes', function () {
|
|
$view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/add.blade.php'));
|
|
|
|
expect($view)
|
|
->toContain('wire:key="env-value-textarea"')
|
|
->toContain('wire:key="env-value-input"');
|
|
});
|
|
|
|
it('uses distinct keyed branches for the edit value field modes', function () {
|
|
$view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php'));
|
|
|
|
expect($view)
|
|
->toContain('wire:key="env-show-value-multiline-{{ $env->id }}"')
|
|
->toContain('wire:key="env-show-value-single-{{ $env->id }}"');
|
|
});
|