Files
Multi-Debrid-Downloader/tests/sidepanel-theme-css.test.ts
Sucukdeluxe 2ea494cd5c Prepare v2.0.74 sidepanel reliability release
Restore and persist the package-based link collector with progressive metadata, bounded high-volume updates, safe hydration, visible selection, and complete localization.

Harden download controls, snapshot ordering, history pagination, statistics recovery, settings saves, backup imports, notification persistence, and Windows storage races with regression coverage.
2026-08-26 20:35:06 +02:00

19 lines
928 B
TypeScript

import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const themeCss = readFileSync(new URL("../src/renderer/theme.css", import.meta.url), "utf8");
const settingsCss = readFileSync(new URL("../src/renderer/views/settings/settings.css", import.meta.url), "utf8");
const historyCss = readFileSync(new URL("../src/renderer/views/history/history.css", import.meta.url), "utf8");
describe("sidepanel theme surfaces", () => {
it("defines the shared panel token used by account and history surfaces", () => {
expect(themeCss).toMatch(/--ui-panel:\s*var\(--ui-surface\);/);
expect(settingsCss).toContain("var(--ui-panel)");
expect(historyCss).toContain("var(--ui-panel)");
});
it("removes the standalone settings divider inside the shell sidebar", () => {
expect(settingsCss).toMatch(/\.md-shell-sidebar-scroll\s*>\s*\.settings-sidebar\s*\{[^}]*border-right:\s*0;/s);
});
});