Implement core-values screen
This commit is contained in:
@@ -17,10 +17,13 @@ describe("getProportionBarProgressForCreateFlowStep", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("uses 2-0 on community-save and review (end of Create Community segment)", () => {
|
||||
it("uses 2-0 on community-save, review, and core-values (Create Community segment / same fill)", () => {
|
||||
expect(getProportionBarProgressForCreateFlowStep("community-save")).toBe(
|
||||
"2-0",
|
||||
);
|
||||
expect(getProportionBarProgressForCreateFlowStep("review")).toBe("2-0");
|
||||
expect(getProportionBarProgressForCreateFlowStep("core-values")).toBe(
|
||||
"2-0",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -36,6 +36,7 @@ describe("flowSteps", () => {
|
||||
it("isValidStep reflects FLOW_STEP_ORDER membership", () => {
|
||||
expect(isValidStep("community-size")).toBe(true);
|
||||
expect(isValidStep("confirm-stakeholders")).toBe(true);
|
||||
expect(isValidStep("core-values")).toBe(true);
|
||||
expect(isValidStep("nope")).toBe(false);
|
||||
expect(isValidStep(null)).toBe(false);
|
||||
});
|
||||
@@ -65,7 +66,7 @@ describe("flowSteps", () => {
|
||||
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");
|
||||
expect(getNextStep("review", opts)).toBe("core-values");
|
||||
expect(getPreviousStep("cards", opts)).toBe("core-values");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user