移除QA预设角色并收紧角色模板编辑

This commit is contained in:
Cheng Zhou
2026-05-26 11:32:14 +08:00
parent 6c2f61eebd
commit 3c168565ce
26 changed files with 387 additions and 119 deletions
@@ -27,4 +27,11 @@ describe("PermissionTemplateSelector", () => {
expect(source).toContain("const perms = props.currentPermissions?.[role];");
expect(source).toContain("emit('edit-role', template.category!)");
});
it("does not define QA as a preset role label or icon", () => {
const source = readSource();
expect(source).not.toContain('QA: "QA"');
expect(source).not.toContain('QA: "✅"');
});
});