Ask the six optional setup questions after size so each tick can change suggested cards, keeping the answers on the draft and off the published Rule.
This commit is contained in:
1 parent
b4bfa157f8
commit
bdaf1818d9
23 files changed
+399
-82
No files matched your search
@@ -22,6 +22,17 @@ describe("buildPublishPayload", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("omits setup answers from the published Rule", () => {
|
||||
const r = buildPublishPayload({
|
||||
title: "Oak Park Commons",
|
||||
setupTraits: { network: true, employer: true, risky: false },
|
||||
});
|
||||
expect(r.ok).toBe(true);
|
||||
if (!r.ok) return;
|
||||
expect(r.document).not.toHaveProperty("setupTraits");
|
||||
expect(JSON.stringify(r)).not.toContain("setupTraits");
|
||||
});
|
||||
|
||||
it("returns title and fallback Overview section when no sections", () => {
|
||||
const r = buildPublishPayload({ title: "Oak Park Commons" });
|
||||
expect(r.ok).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user