Create Community stage implemented

This commit is contained in:
adilallo
2026-04-14 09:22:03 -06:00
parent a0de78c020
commit f8255bc2c7
73 changed files with 1105 additions and 392 deletions
@@ -0,0 +1,26 @@
import { describe, it, expect } from "vitest";
import { getProportionBarProgressForCreateFlowStep } from "../../app/create/utils/createFlowProportionProgress";
describe("getProportionBarProgressForCreateFlowStep", () => {
it("uses 1-2 on community-structure (third Create Community step)", () => {
expect(getProportionBarProgressForCreateFlowStep("community-structure")).toBe(
"1-2",
);
});
it("advances proportion after structure for context and size", () => {
expect(getProportionBarProgressForCreateFlowStep("community-context")).toBe(
"1-3",
);
expect(getProportionBarProgressForCreateFlowStep("community-size")).toBe(
"1-4",
);
});
it("uses 2-0 on community-save and review (end of Create Community segment)", () => {
expect(getProportionBarProgressForCreateFlowStep("community-save")).toBe(
"2-0",
);
expect(getProportionBarProgressForCreateFlowStep("review")).toBe("2-0");
});
});