Polish dashboard analytics and campaign layouts
This commit is contained in:
@@ -11,6 +11,7 @@ const sidebarPath = join(
|
||||
const authEntryPath = join(process.cwd(), "components", "auth-entry.tsx");
|
||||
const layoutPath = join(process.cwd(), "app", "layout.tsx");
|
||||
const globalsPath = join(process.cwd(), "app", "globals.css");
|
||||
const themePath = join(process.cwd(), "components", "dashboard-theme.tsx");
|
||||
|
||||
test("dashboard sidebar uses PitchFast SaaS branding", async () => {
|
||||
const source = await readFile(sidebarPath, "utf8");
|
||||
@@ -31,6 +32,17 @@ test("light theme sidebar remains a light operational rail", async () => {
|
||||
assert.match(darkBlock, /--sidebar:\s*oklch\(0\.13/);
|
||||
});
|
||||
|
||||
test("desktop dashboard shell keeps sidebar height independent from content", async () => {
|
||||
const sidebar = await readFile(sidebarPath, "utf8");
|
||||
const theme = await readFile(themePath, "utf8");
|
||||
|
||||
assert.match(theme, /md:items-start/);
|
||||
assert.match(sidebar, /md:h-dvh/);
|
||||
assert.match(sidebar, /md:self-start/);
|
||||
assert.match(sidebar, /md:overflow-y-auto/);
|
||||
assert.doesNotMatch(sidebar, /md:min-h-dvh/);
|
||||
});
|
||||
|
||||
test("public entry branding also uses PitchFast", async () => {
|
||||
const authEntry = await readFile(authEntryPath, "utf8");
|
||||
const layout = await readFile(layoutPath, "utf8");
|
||||
|
||||
Reference in New Issue
Block a user