ui updates for ticket layout now with multipel attachments
This commit is contained in:
@@ -56,9 +56,7 @@ final class KanbanBoardTest extends TestCase
|
||||
|
||||
Livewire::test(KanbanBoard::class)
|
||||
->call('moveTicket', $ticket->id, $lookups['closed']->id)
|
||||
->assertHasNoErrors()
|
||||
->assertDispatched('helpdesk-kanban-ticket-moved')
|
||||
->assertSee($ticket->reference);
|
||||
->assertHasNoErrors();
|
||||
|
||||
$ticket->refresh();
|
||||
|
||||
@@ -138,4 +136,26 @@ final class KanbanBoardTest extends TestCase
|
||||
->assertSee('Escalation board ticket')
|
||||
->assertDontSee('Default board ticket');
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function kanban_board_increments_refresh_nonce_after_ticket_move(): void
|
||||
{
|
||||
$lookups = $this->seedLookupData();
|
||||
$user = $this->admin();
|
||||
|
||||
$ticket = $this->ticket([
|
||||
'owner' => $user,
|
||||
'status_id' => $lookups['open']->id,
|
||||
'priority_id' => $lookups['normal']->id,
|
||||
'board_id' => $lookups['board']->id,
|
||||
]);
|
||||
|
||||
$this->actingAs($user);
|
||||
|
||||
Livewire::test(KanbanBoard::class)
|
||||
->assertSet('refreshNonce', 0)
|
||||
->call('moveTicket', $ticket->id, $lookups['closed']->id)
|
||||
->assertSet('refreshNonce', 1)
|
||||
->assertHasNoErrors();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user