Files
coolify/tests/Feature/SettingsSectionDescriptionTest.php
Andras Bacsai bdb367555d feat(ui): unify brand accents and polish shared controls
Standardize highlighted buttons, selected controls, and loading
indicators on coollabs accent colors; improve light-mode log toolbar
styling; enhance small popups with compact/icon modes; and align
navbars, helpers, and related layouts with matching tests.
2026-08-05 22:34:56 +02:00

20 lines
762 B
PHP

<?php
use Illuminate\Support\Facades\Blade;
it('renders section helper copy as a tooltip on the underlined title', function () {
$html = Blade::render(<<<'BLADE'
<x-application.settings-section title="Primary server" helper="The server and network used by this resource.">
Content
</x-application.settings-section>
BLADE);
expect($html)
->toContain('Primary server')
->toContain('The server and network used by this resource.')
->toContain('aria-label="More information about Primary server"')
->toContain('class="underline underline-offset-4"')
->toContain('underline-offset-4')
->not->toMatch('/<p[^>]*>\s*The server and network used by this resource\.\s*<\/p>/');
});