mirror of
https://github.com/Patiun/com.gregkilmer.www.git
synced 2026-11-08 04:08:24 +00:00
Add a Before launch placeholder check to admin
Lists pages still showing built-in wording, notes holding placeholder text, unpublished posts and live notes missing the field their page is built around, each linked to its editor. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012aSbo2D1qP8cMFQCykf7kx
This commit is contained in:
@@ -150,6 +150,14 @@ describe("admin page", () => {
|
||||
expect(page.text).toContain("Suwayomi did not answer");
|
||||
});
|
||||
|
||||
it("lists what is still a placeholder before launch", async () => {
|
||||
await post("/edit/save", { type: "craft", title: "Leather", status: "Practicing", "has.publish": "1", publish: "1" });
|
||||
const text = (await get("/launch")).text;
|
||||
expect(text).toContain("Before launch");
|
||||
expect(text).toContain("Blog (/blog) has no Page text note");
|
||||
expect(text).toContain("Craft Leather has no blurb.");
|
||||
});
|
||||
|
||||
it("edits a page's text and images from Site pages", async () => {
|
||||
const site = await get("/site");
|
||||
expect(site.text).toContain("Add page text");
|
||||
|
||||
Reference in New Issue
Block a user