mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00: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
656 B
PHP
18 lines
656 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Blade;
|
|
|
|
test('modal confirmation lets checkbox ids define their Livewire model binding', function () {
|
|
$checkbox = Blade::render(<<<'BLADE'
|
|
<x-forms.checkbox id="deleteVolumes"
|
|
x-on:change="toggleAction('deleteVolumes')"
|
|
x-bind:checked="selectedActions.includes('deleteVolumes')" />
|
|
BLADE);
|
|
|
|
expect($checkbox)
|
|
->toContain('x-on:change="toggleAction(\'deleteVolumes\')"')
|
|
->toContain('x-bind:checked="selectedActions.includes(\'deleteVolumes\')"')
|
|
->toContain('wire:model=deleteVolumes')
|
|
->toMatch('/id="deleteVolumes-[a-zA-Z0-9]{24}"/');
|
|
});
|