19 lines
747 B
TypeScript
19 lines
747 B
TypeScript
// @vitest-environment node
|
|
import fs from "node:fs";
|
|
import path from "node:path";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
function routeSource(name: string): string {
|
|
return fs.readFileSync(path.resolve(process.cwd(), `apps/web/app/routes/${name}`), "utf8");
|
|
}
|
|
|
|
describe("settings UI contracts", () => {
|
|
it("enables the sticky inner sidebar only on the settings shell", () => {
|
|
expect(routeSource("app.$tenant/settings.tsx")).toContain("<SidebarIconsLayout label={{ align: \"right\" }} items={getTabs()} sticky>");
|
|
});
|
|
|
|
it("keeps breathing room below the workspace deletion area", () => {
|
|
expect(routeSource("app.$tenant/settings/workspace/index.tsx")).toContain('<EditPageLayout fullWidth className="pb-8">');
|
|
});
|
|
});
|