Add Super Viewer read-only administrator role
CI / checks (push) Successful in 5m40s

This commit is contained in:
2026-10-11 23:30:40 -04:00
parent 253d47300c
commit 4ea291d305
48 changed files with 1684 additions and 933 deletions
+10
View File
@@ -99,6 +99,16 @@ const shell = (overrides: Partial<AuthUser> = {}) =>
}).body;
describe('application shell', () => {
it('explains Super Viewer access while exposing administrator navigation and shortcuts', () => {
const body = shell({ role: 'super_viewer' });
expect(body).toContain('Super Viewer access');
expect(body).toContain('href="/settings/users"');
expect(body).toContain('href="/server-keys"');
expect(body).toContain('href="/settings"');
expect(body).toContain('g h');
expect(body).toContain('g k');
});
it('offers collapsible desktop navigation, a labelled mobile drawer, search and help', () => {
const body = shell();
expect(body).toContain('id="desktop-navigation"');