coolify/tests/Feature/HideNativeSearchClearButtonTest.php
Andras Bacsai 8ae56587d5
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
2026-08-03 23:11:54 +02:00

16 lines
606 B
PHP

<?php
test('app css hides native webkit search cancel button to avoid double clear controls', function () {
$css = file_get_contents(resource_path('css/app.css'));
expect($css)
->toContain('input[type="search"]::-webkit-search-cancel-button')
->toContain('display: none');
});
test('resource index keeps a single custom clear search control', function () {
$view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));
expect(substr_count($view, 'aria-label="Clear search"'))->toBe(1)
->and($view)->toContain('type="search"');
});