Remove non-admin workbench

This commit is contained in:
Cheng Zhou
2026-05-21 15:48:19 +08:00
parent da6f2f2d41
commit 78247a8149
20 changed files with 36 additions and 1474 deletions
@@ -30,6 +30,15 @@ describe("project management access", () => {
expect(layout).toContain('index="/admin/projects"');
});
it("removes the non-admin personal dashboard menu entry", () => {
const layout = readLayout();
const removedPath = `/${["work", "bench"].join("")}`;
const removedMenuKey = ["TEXT.menu.work", "bench"].join("");
expect(layout).not.toContain(`index="${removedPath}"`);
expect(layout).not.toContain(removedMenuKey);
});
it("uses each project permission matrix to show project management actions", () => {
const source = readProjects();