fix: stabilize terminal dashboard states
This commit is contained in:
@@ -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()} />);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user