Give the editor's task checklist its own toggle, comments and images their tabs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-30 11:05:44 +02:00
co-authored by Claude Opus 5.5
parent 1d9bcefb41
commit f3d2b3e39e
5 changed files with 44 additions and 22 deletions
+3 -2
View File
@@ -160,8 +160,9 @@ 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')
->click('#job-editor-dialog [aria-controls^="editor-checklist-"]')
->click('#job-editor-dialog [aria-controls^="editor-extras-"]')
->assertSee('Kuvat (0)')
->assertNoJavaScriptErrors()
->assertNoAccessibilityIssues(level: 2)
->keys('#job-editor-name', 'Escape')
+4 -1
View File
@@ -145,8 +145,11 @@ it('has comments and images for each task', function () {
Livewire::test('jobs::job-editor')
->dispatch('open-job-editor', jobId: $this->job->id)
->assertSee('Lisätiedot (kommentit 0, kuvat 0)')
->assertSee('Tarkistuslista')
->assertSee('Kommentit ja kuvat (kommentit 0, kuvat 0)')
->assertSeeLivewire('jobs::task-checklist')
->assertSeeLivewire('jobs::task-comments')
->assertSeeLivewire('jobs::task-images')
->assertSeeHtml('editor-task-'.$task->id.'-tabs-tab-comments')
->assertSeeHtml('editor-task-'.$task->id.'-tabs-tab-images');
});