Files
Multi-Debrid-Downloader/tests/toast.test.tsx
Sucukdeluxe 069babfd54 feat: deliver the redesigned desktop workspace
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.
2026-08-10 14:15:57 +02:00

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("");
});
});