- Adjusted button styles across various components for consistency and better UX. - Enhanced layout of action controls to utilize whitespace more effectively. - Updated slider styles for a more modern appearance and improved usability. - Refined input fields and labels for better accessibility and readability. - Introduced new app surface styles for a cohesive design across the application. - Added tests for canvas cursor behavior to ensure correct cursor display during operations.
13 lines
533 B
TypeScript
13 lines
533 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
import { canvasCursorClass } from "./cursor";
|
|
|
|
describe("canvas cursor", () => {
|
|
test("keeps the brush cursor while non-operation UI is open", () => {
|
|
expect(canvasCursorClass({ type: "tool", tool: "brush" }, false, false, true, false)).toBe("cursor-crosshair");
|
|
});
|
|
|
|
test("uses the default cursor while an operation suspends canvas tools", () => {
|
|
expect(canvasCursorClass({ type: "tool", tool: "brush" }, false, false, true, true)).toBe("cursor-default");
|
|
});
|
|
});
|