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>
14 lines
526 B
PHP
14 lines
526 B
PHP
<?php
|
|
|
|
it('renders action content from both contents and actions slots', function () {
|
|
$contents = $this->blade(
|
|
'<x-empty title="Empty" icon-name="keys"><x-slot:contents><button type="button">From contents</button></x-slot:contents></x-empty>'
|
|
);
|
|
$contents->assertSee('From contents');
|
|
|
|
$actions = $this->blade(
|
|
'<x-empty title="Empty" icon-name="keys"><x-slot:actions><button type="button">From actions</button></x-slot:actions></x-empty>'
|
|
);
|
|
$actions->assertSee('From actions');
|
|
});
|