Rebuild downloads, link collection, settings, history, and statistics around a responsive desktop shell with compact account and queue tables, contextual navigation, persistent update affordances, unified overlays, and accessible keyboard interactions. Add safe history-folder reveal IPC, responsive 2560/1920/1366/1120 coverage, deterministic visual fixtures, focused component regressions, and release-tree exclusions for internal working files. Bump the public application version to 2.0.13.
18 lines
616 B
TypeScript
18 lines
616 B
TypeScript
import { renderToStaticMarkup } from "react-dom/server";
|
|
import { describe, expect, it } from "vitest";
|
|
import { Toast } from "../src/renderer/ui/Toast";
|
|
|
|
describe("Toast", () => {
|
|
it("announces the current single toast politely", () => {
|
|
const html = renderToStaticMarkup(<Toast message="Einstellungen gespeichert" />);
|
|
|
|
expect(html).toContain("role=\"status\"");
|
|
expect(html).toContain("aria-live=\"polite\"");
|
|
expect(html).toContain("Einstellungen gespeichert");
|
|
});
|
|
|
|
it("renders nothing without a message", () => {
|
|
expect(renderToStaticMarkup(<Toast message="" />)).toBe("");
|
|
});
|
|
});
|