1import { describe, expect, it } from "vite-plus/test";
2
3import { agentBrowserCursorOpacity } from "./agentBrowserCursorLogic";
4
5describe("agentBrowserCursorOpacity", () => {
6 it("keeps active movement fully visible", () => {
7 expect(agentBrowserCursorOpacity(true, "agent")).toBe(1);
8 expect(agentBrowserCursorOpacity(true, "human")).toBe(1);
9 });
10
11 it("settles to a visible idle state", () => {
12 expect(agentBrowserCursorOpacity(false, "none")).toBe(0.35);
13 expect(agentBrowserCursorOpacity(false, "agent")).toBe(0.35);
14 });
15
16 it("dims further while the human controls the page", () => {
17 expect(agentBrowserCursorOpacity(false, "human")).toBe(0.18);
18 });
19});