Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
test(ui): align assertions with deferred startup and current controls
rubenluetke10-beep6275d56f43b1
diff --git a/jarvis/ui/web/frontend/src/__tests__/topbarUpdateButton.test.tsx b/jarvis/ui/web/frontend/src/__tests__/topbarUpdateButton.test.tsxindex 417829e3f5..493a54205e 100644--- a/jarvis/ui/web/frontend/src/__tests__/topbarUpdateButton.test.tsx+++ b/jarvis/ui/web/frontend/src/__tests__/topbarUpdateButton.test.tsx@@ -9,6 +9,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { TopBar } from "@/components/layout/TopBar";import { useEventStore } from "@/store/events";+vi.mock("@/lib/bootStagger", () => ({ bootSettled: () => Promise.resolve() }));+function mockUpdateStatus(body: Record<string, unknown>): void {vi.stubGlobal("fetch",diff --git a/jarvis/ui/web/frontend/src/__tests__/topbarUpdateProgress.test.tsx b/jarvis/ui/web/frontend/src/__tests__/topbarUpdateProgress.test.tsxindex 6cba201d44..a14950ff0f 100644--- a/jarvis/ui/web/frontend/src/__tests__/topbarUpdateProgress.test.tsx+++ b/jarvis/ui/web/frontend/src/__tests__/topbarUpdateProgress.test.tsx@@ -16,6 +16,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { TopBar } from "@/components/layout/TopBar";import { useEventStore } from "@/store/events";+vi.mock("@/lib/bootStagger", () => ({ bootSettled: () => Promise.resolve() }));+const OFFER = {managed: true,kind: "managed",diff --git a/jarvis/ui/web/frontend/src/components/AuthGate.test.tsx b/jarvis/ui/web/frontend/src/components/AuthGate.test.tsxindex f286b13fde..bf01f48a58 100644--- a/jarvis/ui/web/frontend/src/components/AuthGate.test.tsx+++ b/jarvis/ui/web/frontend/src/components/AuthGate.test.tsx@@ -61,6 +61,7 @@ describe("AuthGate", () => {expect(fetchMock).toHaveBeenCalledWith("/api/config", {cache: "no-store",credentials: "same-origin",+ signal: expect.any(AbortSignal),});});diff --git a/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsx b/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsxindex 890dc88d32..6808dd92d6 100644--- a/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsx+++ b/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsx@@ -300,7 +300,8 @@ describe("ChatStage (agent chat)", () => {fireEvent.click(screen.getByTestId("composer-provider"));const panel = await screen.findByTestId("composer-provider-panel");// The headings, in catalog order — never "connected / not connected".- const headings = Array.from(panel.querySelectorAll("div.uppercase")).map((el) => el.textContent);+ const headings = ["Coding CLIs", "API keys", "On your own hardware"]+ .map((label) => within(panel).getByText(label).textContent);expect(headings).toEqual(["Coding CLIs", "API keys", "On your own hardware"]);expect(within(panel).queryByText("Connected")).toBeNull();// Only what the Agents tab has set up is listed: Codex (no login) is notdiff --git a/jarvis/ui/web/frontend/src/components/society/world/worldCamera.test.ts b/jarvis/ui/web/frontend/src/components/society/world/worldCamera.test.tsindex e2a36d4d28..7572deeedc 100644--- a/jarvis/ui/web/frontend/src/components/society/world/worldCamera.test.ts+++ b/jarvis/ui/web/frontend/src/components/society/world/worldCamera.test.ts@@ -135,7 +135,7 @@ describe("worldCamera", () => {expect(focusFromSearch("?world=0,0,2,-45")?.yaw).toBe(315);expect(focusFromSearch("?world=0,0,2,225,70")?.pitch).toBe(70);// Past the limits the view is clamped, not refused.- expect(focusFromSearch("?world=0,0,2,0,5")?.pitch).toBe(MIN_PITCH_DEG);+ expect(focusFromSearch("?world=0,0,2,0,-5")?.pitch).toBe(MIN_PITCH_DEG);expect(focusFromSearch("?world=0,0,2,0,120")?.pitch).toBe(MAX_PITCH_DEG);expect(focusFromSearch("?world=0,0,2,abc")?.yaw).toBe(CAMERA_YAW_DEG);});diff --git a/jarvis/ui/web/frontend/src/hooks/usePermissions.test.tsx b/jarvis/ui/web/frontend/src/hooks/usePermissions.test.tsxindex c4b2240cd2..ed4591f1a0 100644--- a/jarvis/ui/web/frontend/src/hooks/usePermissions.test.tsx+++ b/jarvis/ui/web/frontend/src/hooks/usePermissions.test.tsx@@ -2,6 +2,8 @@ import { act, cleanup, renderHook, waitFor } from "@testing-library/react";import { afterEach, expect, it, vi } from "vitest";import { usePermissions, type PermissionSnapshot } from "./usePermissions";+vi.mock("@/lib/bootStagger", () => ({ bootSettled: () => Promise.resolve() }));+afterEach(() => {cleanup();vi.unstubAllGlobals();diff --git a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsx b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsxindex 0115d42f13..0f2a7d6b81 100644--- a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsx@@ -92,7 +92,7 @@ describe("ScreenContextGroup", () => {expect(capped).toHaveLength(0);// Same shell as RealtimeVoiceGroup, so the two read as one list.expect(root?.className).toBe(- "mt-2 rounded-lg border border-border bg-card/60 p-4",+ "mt-2 rounded-lg border border-border bg-card p-4",);});