Add sanitized provider and account runtime diagnostics, complete the Multi-Debrid-Downloader product rename, preserve existing application data during migration, update public release verification, and publish the accompanying English documentation and regression coverage.
29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const workspaceSource = readFileSync(
|
|
new URL("../src/renderer/views/settings/AccountWorkspace.tsx", import.meta.url),
|
|
"utf8"
|
|
);
|
|
const styles = readFileSync(
|
|
new URL("../src/renderer/views/settings/settings.css", import.meta.url),
|
|
"utf8"
|
|
);
|
|
|
|
describe("account management layout", () => {
|
|
it("keeps all account tabs inside the same fixed content row", () => {
|
|
expect(workspaceSource).toContain('<div className="settings-account-workspace">');
|
|
expect(workspaceSource.match(/className="settings-account-panel"/g)).toHaveLength(3);
|
|
expect(workspaceSource).toContain('hidden={model.activePanel !== "overview"}');
|
|
expect(workspaceSource).toContain('hidden={model.activePanel !== "rules"}');
|
|
expect(workspaceSource).toContain('hidden={model.activePanel !== "runtime"}');
|
|
expect(styles).toMatch(
|
|
/\.settings-account-workspace\s*{[^}]*grid-template-rows:\s*auto auto minmax\(0, 1fr\);[^}]*min-width:\s*0;[^}]*min-height:\s*0;/s
|
|
);
|
|
expect(styles).toMatch(
|
|
/\.settings-account-panel\s*{[^}]*width:\s*100%;[^}]*min-width:\s*0;[^}]*min-height:\s*0;/s
|
|
);
|
|
expect(styles).toMatch(/\.settings-account-rules\s*{[^}]*min-width:\s*0;[^}]*overflow-y:\s*auto;/s);
|
|
});
|
|
});
|