统一项目角色与接口权限配置
This commit is contained in:
@@ -29,11 +29,10 @@ describe("PermissionAccessLogs", () => {
|
||||
expect(source).not.toContain("fetchIpLocations");
|
||||
});
|
||||
|
||||
it("does not expose QA in role filter presets", () => {
|
||||
it("exposes QA and CTA in role filter presets", () => {
|
||||
const source = readSource();
|
||||
|
||||
expect(source).not.toContain('label="QA" value="QA"');
|
||||
expect(source).not.toContain('QA: "QA"');
|
||||
expect(source).toContain('const ROLE_FILTER_KEYS = ["ADMIN", "PM", "CRA", "PV", "QA", "CTA"];');
|
||||
});
|
||||
|
||||
it("uses permission template names for role filters and log lines", () => {
|
||||
@@ -45,7 +44,7 @@ describe("PermissionAccessLogs", () => {
|
||||
expect(source).toContain('v-for="role in roleFilterOptions"');
|
||||
expect(source).toContain("role=${roleLabel(row.role)}");
|
||||
expect(source).not.toContain("const ROLE_LABELS");
|
||||
expect(source).not.toContain('label="医学审核" value="MEDICAL_REVIEW"');
|
||||
expect(source).not.toContain('label="医学审核" value="QA"');
|
||||
});
|
||||
|
||||
it("uses narrow metric cards without helper subtitles", () => {
|
||||
|
||||
Reference in New Issue
Block a user