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.
19 lines
928 B
TypeScript
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);
|
|
});
|
|
});
|