Files
coolify/tests/Feature/NativeSelectMigrationTest.php
Andras Bacsai 32bf1860d4 feat(domains): add structured URL editing and responsive domain controls
Add reusable domain URL parsing and input components, expose per-domain
redirect and indexing controls, and improve application and service domain
layouts across responsive breakpoints.
2026-08-11 00:06:55 +02:00

22 lines
816 B
PHP

<?php
test('remaining user-facing dropdown fields use the shared animated listbox', function () {
$views = [
'livewire/source/gitlab/change.blade.php' => ['privateKeyId', 'webhook_endpoint'],
'livewire/project/application/domains.blade.php' => ['newDomainService'],
'livewire/project/service/domains.blade.php' => ['newServiceApplicationId'],
'livewire/server/new/by-ip.blade.php' => ['is_build_server'],
];
foreach ($views as $path => $ids) {
$view = file_get_contents(resource_path('views/'.$path));
foreach ($ids as $id) {
expect($view)
->toContain('<x-forms.listbox')
->toContain('id="'.$id.'"')
->not->toMatch('/<x-forms\.select[^>]*id="'.preg_quote($id, '/').'"/s');
}
}
});