Pass the choice to the Kanban column menus (they called the action without it)

Collection::join() plucks from objects, so joining the Js arguments gave an
empty string and the sort and urgent threshold menus called
setColumnSort() / setUrgentThreshold() with no arguments (500).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-30 11:59:14 +02:00
co-authored by Claude Opus 5.5
parent 9eac4c4d4e
commit 8be732ada8
3 changed files with 20 additions and 1 deletions
@@ -286,3 +286,9 @@ it('remembers for each user which cards have their tasks open', function () {
$this->actingAs($colleague);
Livewire::test('jobs::board')->assertDontSeeHtml('aria-expanded="true"');
});
it('passes the column and choice to the order and urgent threshold menus', function () {
Livewire::test('jobs::board')
->assertSeeHtml('wire:click="setColumnSort(&#039;order&#039;, &#039;due_date&#039;)"')
->assertSeeHtml('wire:click="setUrgentThreshold(&#039;immediate&#039;)"');
});