'); $step1 = Str::before($step1, ''); expect($step1) ->toContain('step1ButtonText') ->not->toContain('Cancel'); }); test('modal confirmation lets checkbox ids define their Livewire model binding', function () { $checkbox = Blade::render(<<<'BLADE' BLADE); expect($checkbox) ->toContain('x-on:change="toggleAction(\'deleteVolumes\')"') ->toContain('x-bind:checked="selectedActions.includes(\'deleteVolumes\')"') ->toContain('wire:model=deleteVolumes') ->toMatch('/id="deleteVolumes-[a-zA-Z0-9]{24}"/'); });