Fix editor colour refresh, task row layout, dark date icons and time cell width
- The job editor redraws its customer-coloured header when the board saves a customer colour (customer-color-changed). - Service units and members in the editor's sidebar are in two columns. - Native controls follow the dark theme (color-scheme), so the date picker's calendar icon is light. - Task status, assignee and due date sit side by side in the editor. - Each task in the editor has its checklist, comments and images. - The time sheet's time field shows five characters (00:00). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -160,6 +160,8 @@ it('has no accessibility issues in the job editor and the quick intake dialog',
|
||||
$visit->click('#card-job-'.$this->job->id.'-open')
|
||||
->assertScript('document.getElementById("job-editor-dialog").open', true)
|
||||
->assertSee('Kuvauspäivä')
|
||||
->click('#job-editor-dialog [aria-controls^="editor-details-"]')
|
||||
->assertSee('Kuvat')
|
||||
->assertNoJavaScriptErrors()
|
||||
->assertNoAccessibilityIssues(level: 2)
|
||||
->keys('#job-editor-name', 'Escape')
|
||||
|
||||
@@ -126,3 +126,27 @@ it('lets a subcontractor only look at their own job and tick its tasks', functio
|
||||
|
||||
expect($task->fresh()->status->value)->toBe('done');
|
||||
});
|
||||
|
||||
it('shows a new customer colour at once when the board saves it', function () {
|
||||
$editor = Livewire::test('jobs::job-editor')
|
||||
->dispatch('open-job-editor', jobId: $this->job->id)
|
||||
->assertSeeHtml('background-color: #23476a');
|
||||
|
||||
Livewire::test('jobs::board')
|
||||
->call('setCustomerColor', $this->job->customer_id, '#991b1b')
|
||||
->assertDispatched('customer-color-changed', customerId: $this->job->customer_id);
|
||||
|
||||
$editor->dispatch('customer-color-changed', customerId: $this->job->customer_id)
|
||||
->assertSeeHtml('background-color: #991b1b');
|
||||
});
|
||||
|
||||
it('has comments and images for each task', function () {
|
||||
$task = TaskModel::factory()->create(['customer_job_id' => $this->job->id, 'title' => 'Vedos']);
|
||||
|
||||
Livewire::test('jobs::job-editor')
|
||||
->dispatch('open-job-editor', jobId: $this->job->id)
|
||||
->assertSee('Lisätiedot (kommentit 0, kuvat 0)')
|
||||
->assertSeeLivewire('jobs::task-comments')
|
||||
->assertSeeLivewire('jobs::task-images')
|
||||
->assertSeeHtml('editor-task-'.$task->id.'-tabs-tab-images');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user