Rollen Chunk 7: Benutzerverwaltung und Sicherung strikt Admin-only
Docker Image / test (push) Canceled after 0s
Docker Image / image (push) Canceled after 0s

This commit is contained in:
loki committed 2026-10-11 20:35:53 +02:00
1 parent 995df259a4
commit 9c7257f6ae
1 file changed
+4 -4
+4 -4
View File
@@ -705,7 +705,7 @@ test("shows a logout icon in the header next to the theme toggle", async () => {
mode: "password",
ssoEnabled: false,
setupRequired: false,
user: { email: "loki@example.org", role: "admin" },
user: { id: "u-1", email: "loki@example.org", role: "admin" },
});
mockApp(true);
render(<Home />);
@@ -726,7 +726,7 @@ test("returns to login after signing out", async () => {
mode: "password",
ssoEnabled: false,
setupRequired: false,
user: { email: "loki@example.org", role: "admin" },
user: { id: "u-1", email: "loki@example.org", role: "admin" },
})
.mockResolvedValue({
enabled: true,
@@ -785,7 +785,7 @@ test("shows the team tab only for team leads and admins", async () => {
mode: "password",
ssoEnabled: false,
setupRequired: false,
user: { email: "loki@example.org", role },
user: { id: "u-1", email: "loki@example.org", role },
});
mockApp(true);
const { unmount } = render(<Home />);
@@ -804,7 +804,7 @@ test("team tab lists members and allowances", async () => {
mode: "password",
ssoEnabled: false,
setupRequired: false,
user: { email: "loki@example.org", role: "admin" },
user: { id: "u-1", email: "loki@example.org", role: "admin" },
});
vi.mocked(getTeam).mockResolvedValue({
year: new Date().getFullYear(),