diff options
| author | Adam Malczewski <[email protected]> | 2026-06-27 19:34:14 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-27 19:34:14 +0900 |
| commit | 491bbc1301e3f8bc7ca6d1fc73b9cd4954050d7b (patch) | |
| tree | ecd7e8d87465b10fa4c716f0c7882b41dd74fcc2 /src/features/tabs/ui.test.ts | |
| parent | 6b08485fd94dbe18d70cbbc02cb931a4f50cc1d1 (diff) | |
| download | dispatch-web-491bbc1301e3f8bc7ca6d1fc73b9cd4954050d7b.tar.gz dispatch-web-491bbc1301e3f8bc7ca6d1fc73b9cd4954050d7b.zip | |
style(concurrency): use DaisyUI loading-ring for the queued indicator
The 'queued' (waiting-for-a-concurrency-slot) indicator on the tab + composer
corner used loading-spinner; switch to DaisyUI's loading-ring. The 'active'
(generating) indicator stays loading-dots. typecheck 0/0, 926 tests green,
biome clean, build OK.
Diffstat (limited to 'src/features/tabs/ui.test.ts')
| -rw-r--r-- | src/features/tabs/ui.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/features/tabs/ui.test.ts b/src/features/tabs/ui.test.ts index 4111c16..0dc5e15 100644 --- a/src/features/tabs/ui.test.ts +++ b/src/features/tabs/ui.test.ts @@ -277,9 +277,9 @@ describe("TabList", () => { }, }); - // c1 is queued → a ring (spinner), labeled "Queued". + // c1 is queued → a ring (DaisyUI `loading-ring`), labeled "Queued". const queuedRing = screen.getByLabelText("Queued"); - expect(queuedRing.className).toContain("loading-spinner"); + expect(queuedRing.className).toContain("loading-ring"); expect(queuedRing.closest('[role="tab"]')).toHaveTextContent("First"); const tabs = screen.getAllByRole("tab"); @@ -288,9 +288,9 @@ describe("TabList", () => { const idleTab = tabs[2]; if (activeTab === undefined || idleTab === undefined) throw new Error("missing tabs"); - // c2 is active → loading dots (NOT a spinner). + // c2 is active → loading dots (NOT a ring). expect(activeTab.querySelector(".loading-dots")).not.toBeNull(); - expect(activeTab.querySelector(".loading-spinner")).toBeNull(); + expect(activeTab.querySelector(".loading-ring")).toBeNull(); // c3 has no status → no spinner at all. expect(idleTab.querySelector(".loading")).toBeNull(); |
