fix(BUG-095,BUG-097): add Support link to footer partial, expand docs.html footer
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 13m44s

This commit is contained in:
OpenClaw 2026-03-02 14:11:13 +01:00
parent cf1a589a47
commit 6290c3eb97
8 changed files with 52 additions and 0 deletions

View file

@ -150,4 +150,44 @@ describe("App-level routes", () => {
expect(footer).toContain('href="/#change-email"');
});
});
describe("BUG-097: Footer Support link in partial", () => {
it("shared footer partial contains Support mailto link", async () => {
const fs = await import("fs");
const path = await import("path");
const footer = fs.readFileSync(
path.join(__dirname, "../../public/partials/_footer.html"),
"utf-8"
);
expect(footer).toContain('href="mailto:support@docfast.dev"');
expect(footer).toContain(">Support</a>");
});
});
describe("BUG-095: docs.html footer has all links", () => {
it("docs footer contains all expected links", async () => {
const fs = await import("fs");
const path = await import("path");
const docs = fs.readFileSync(
path.join(__dirname, "../../public/docs.html"),
"utf-8"
);
const expectedLinks = [
{ href: "/", text: "Home" },
{ href: "/docs", text: "Docs" },
{ href: "/examples", text: "Examples" },
{ href: "/status", text: "API Status" },
{ href: "mailto:support@docfast.dev", text: "Support" },
{ href: "/#change-email", text: "Change Email" },
{ href: "/impressum", text: "Impressum" },
{ href: "/privacy", text: "Privacy Policy" },
{ href: "/terms", text: "Terms of Service" },
];
for (const link of expectedLinks) {
expect(docs).toContain(`href="${link.href}"`);
expect(docs).toContain(`${link.text}</a>`);
}
expect(docs).toContain('class="open-email-change"');
});
});
});