中文:收口权限与中心/立项配置改造
This commit is contained in:
@@ -67,4 +67,20 @@ describe("study store startup rehydration", () => {
|
||||
expect(study.currentStudy).toBeNull();
|
||||
expect(window.localStorage.getItem("ctms_current_study")).toBeNull();
|
||||
});
|
||||
|
||||
it("does not treat a study role field as the current project role", async () => {
|
||||
const { useStudyStore } = await import("./study");
|
||||
const study = useStudyStore();
|
||||
|
||||
study.setCurrentStudy({
|
||||
id: "study-with-system-role",
|
||||
code: "SYS-ROLE",
|
||||
name: "系统字段项目",
|
||||
status: "ACTIVE",
|
||||
role: "PM",
|
||||
} as any);
|
||||
|
||||
expect(study.currentStudyRole).toBeNull();
|
||||
expect(window.localStorage.getItem("ctms_current_study_role")).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user