This commit is contained in:
@@ -26,3 +26,13 @@ it('keeps the navigation palette useful for viewers without offering write actio
|
||||
expect(body).not.toContain('Create server');
|
||||
expect(body).not.toContain('Add host');
|
||||
});
|
||||
|
||||
it('includes administration pages for Super Viewers without write actions', () => {
|
||||
const body = render(CommandPalette, { props: { open: true, role: 'super_viewer' } }).body;
|
||||
expect(body).toContain('Settings');
|
||||
expect(body).toContain('Users');
|
||||
expect(body).toContain('Keys');
|
||||
expect(body).not.toContain('Create server');
|
||||
expect(body).not.toContain('Manage servers');
|
||||
expect(body).not.toContain('Add host');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user