This commit is contained in:
@@ -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"');
|
||||
|
||||
Reference in New Issue
Block a user