Treat all Now Serving cards equally and announce every ticket change.
Deploy Ladill Queue / deploy (push) Successful in 1m56s
Deploy Ladill Queue / deploy (push) Successful in 1m56s
Remove newest-card highlighting so every active service point looks the same, sort the board stably by destination, and have the display announce whenever a counter’s ticket changes (falling back when a server voice row is missing). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -101,9 +101,7 @@ class DisplayVoiceTest extends TestCase
|
||||
|
||||
$this->get(route('qms.display.public', $screen->access_token))
|
||||
->assertOk()
|
||||
->assertSee('qms-display__tickets', false)
|
||||
->assertSee('data-ticket-count', false)
|
||||
->assertSee('qms-display__ticket--newest', false)
|
||||
->assertDontSee('qms-display__ticket--newest')
|
||||
->assertSee('Please proceed to')
|
||||
->assertSee('A001')
|
||||
->assertSee('Reception')
|
||||
@@ -161,13 +159,16 @@ class DisplayVoiceTest extends TestCase
|
||||
]);
|
||||
}
|
||||
|
||||
$this->getJson(route('qms.display.data', $screen->access_token))
|
||||
$payload = $this->getJson(route('qms.display.data', $screen->access_token))
|
||||
->assertOk()
|
||||
->assertJsonCount(2, 'now_serving')
|
||||
->assertJsonPath('now_serving.0.ticket_number', 'A005')
|
||||
->assertJsonPath('now_serving.0.counter', 'Room 14')
|
||||
->assertJsonPath('now_serving.1.ticket_number', 'A003')
|
||||
->assertJsonPath('now_serving.1.counter', 'Room 12');
|
||||
->json('now_serving');
|
||||
|
||||
$byCounter = collect($payload)->keyBy('counter');
|
||||
$this->assertSame('A003', $byCounter['Room 12']['ticket_number']);
|
||||
$this->assertSame('A005', $byCounter['Room 14']['ticket_number']);
|
||||
// Stable alphabetical order by destination — equal presentation, no newest-first primacy.
|
||||
$this->assertSame(['Room 12', 'Room 14'], collect($payload)->pluck('counter')->all());
|
||||
}
|
||||
|
||||
public function test_display_falls_back_to_branch_queues_when_none_assigned(): void
|
||||
|
||||
Reference in New Issue
Block a user