toContain('') ->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"'); });