coolify/tests/Feature/ModalConfirmationStep1NoCancelTest.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

15 lines
514 B
PHP

<?php
/**
* Step 1 (checkbox options) should only show Continue — dismiss is the header X.
*/
test('modal confirmation step 1 does not render a cancel button', function () {
$modal = file_get_contents(resource_path('views/components/modal-confirmation.blade.php'));
$step1 = Str::after($modal, '<!-- Step 1: Select actions -->');
$step1 = Str::before($step1, '<!-- Step 2: Confirm deletion -->');
expect($step1)
->toContain('step1ButtonText')
->not->toContain('Cancel');
});