fix: stabilize terminal dashboard states

This commit is contained in:
golem
2026-08-21 03:44:42 -06:00
parent 10507e769d
commit d1a86ad162
5 changed files with 82 additions and 9 deletions
+13
View File
@@ -100,6 +100,19 @@ describe("read-only operations console", () => {
expect(screen.getByText("500.00 mUSDC")).toBeTruthy();
});
it("makes every learning abbreviation keyboard-focusable with its explanation intact", () => {
const { container } = render(<App dashboard={ready()} />);
const abbreviations = Array.from(container.querySelectorAll("abbr"));
expect(abbreviations).toHaveLength(5);
for (const abbreviation of abbreviations) {
expect(abbreviation.getAttribute("title")?.trim().length).toBeGreaterThan(0);
expect(abbreviation.getAttribute("tabindex")).toBe("0");
(abbreviation as HTMLElement).focus();
expect(document.activeElement).toBe(abbreviation);
}
});
it("renders valid V1 activity newest first beside an isolated decode warning", () => {
render(<App dashboard={ready()} />);