Import the remade decks on stable ids and recommend one card per job, so a saved draft still loads after a chip is renamed.
The real-group profiles stay as a test, so a change that moves a pick fails. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
96ca15d8e3
commit
bcbc6f30d9
89 files changed
+36555
-2828
No files matched your search
@@ -41,6 +41,7 @@ describe("buildPublishPayload", () => {
|
||||
},
|
||||
],
|
||||
coreValues: [],
|
||||
supermajorityShare: 75,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -61,6 +62,7 @@ describe("buildPublishPayload", () => {
|
||||
},
|
||||
],
|
||||
coreValues: [],
|
||||
supermajorityShare: 75,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -85,7 +87,7 @@ describe("buildPublishPayload", () => {
|
||||
const r = buildPublishPayload({ title: "T", sections });
|
||||
expect(r.ok).toBe(true);
|
||||
if (!r.ok) return;
|
||||
expect(r.document).toEqual({ sections, coreValues: [] });
|
||||
expect(r.document).toEqual({ sections, coreValues: [], supermajorityShare: 75 });
|
||||
});
|
||||
|
||||
it("filters invalid section entries from state.sections", () => {
|
||||
@@ -101,6 +103,7 @@ describe("buildPublishPayload", () => {
|
||||
expect(r.document).toEqual({
|
||||
sections: [{ categoryName: "Values", entries: [{ title: "A", body: "B" }] }],
|
||||
coreValues: [],
|
||||
supermajorityShare: 75,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -331,9 +334,9 @@ describe("buildPublishPayload — methodSelections", () => {
|
||||
const r = buildPublishPayload({
|
||||
title: "T",
|
||||
selectedCommunicationMethodIds: ["signal"],
|
||||
selectedMembershipMethodIds: ["open-access"],
|
||||
selectedMembershipMethodIds: ["open-admission"],
|
||||
selectedDecisionApproachIds: ["lazy-consensus"],
|
||||
selectedConflictManagementIds: ["peer-mediation"],
|
||||
selectedConflictManagementIds: ["conflict-ladder"],
|
||||
});
|
||||
expect(r.ok).toBe(true);
|
||||
if (!r.ok) return;
|
||||
|
||||
Reference in new issue
Block a user