Skip create save page when logged in

This commit is contained in:
adilallo
2026-04-15 21:15:02 -06:00
parent d597a2348f
commit 92149d9fb0
4 changed files with 50 additions and 6 deletions
+13
View File
@@ -55,4 +55,17 @@ describe("flowSteps", () => {
expect(getNextStep("community-structure")).toBe("community-context");
expect(getNextStep("community-context")).toBe("community-size");
});
it("skipCommunitySave bridges upload → review and review → upload", () => {
const opts = { skipCommunitySave: true } as const;
expect(getNextStep("community-upload", opts)).toBe("review");
expect(getPreviousStep("review", opts)).toBe("community-upload");
});
it("skipCommunitySave does not change steps outside the save segment", () => {
const opts = { skipCommunitySave: true } as const;
expect(getNextStep("community-size", opts)).toBe("community-upload");
expect(getNextStep("review", opts)).toBe("cards");
expect(getPreviousStep("cards", opts)).toBe("review");
});
});