mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-09 04:17:14 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
co-authored by
ShadowArcanist
parent
0b843bb07c
commit
8ae56587d5
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Destructive confirmation action lists must use reicon trash glyphs,
|
||||
* not dismiss/close X icons or raw stroke SVGs.
|
||||
*/
|
||||
test('modal confirmation action list uses trash reicon markers', function () {
|
||||
$modal = file_get_contents(resource_path('views/components/modal-confirmation.blade.php'));
|
||||
|
||||
expect($modal)
|
||||
->toContain('<x-reicon name="trash" class="mt-0.5 size-3.5 shrink-0" />')
|
||||
->not->toContain('d="M6 18L18 6M6 6l12 12"');
|
||||
|
||||
// Action bullets use trash; header dismiss may still use close X.
|
||||
$actionSection = Str::after($modal, 'The following actions will be performed:');
|
||||
$actionSection = Str::before($actionSection, '@if (!$disableTwoStepConfirmation)');
|
||||
|
||||
expect($actionSection)
|
||||
->toContain('name="trash"')
|
||||
->not->toContain('name="x"');
|
||||
});
|
||||
Reference in New Issue
Block a user