Remove standalone Activity log page (Refs #153)
This commit is contained in:
@@ -8,6 +8,24 @@ import {
|
||||
} from '../../src/lib/ui/command-palette.js';
|
||||
|
||||
describe('command palette destinations', () => {
|
||||
it('omits the retired Activity log while retaining the pages that own history', () => {
|
||||
for (const role of ['admin', 'operator', 'viewer', 'super_viewer'] as const) {
|
||||
const destinations = palettePageResults(role, '').map((item) => item.href);
|
||||
expect(destinations).not.toContain('/activity');
|
||||
expect(destinations).not.toContain('/operations');
|
||||
expect(palettePageResults(role, 'Activity log')).toEqual([]);
|
||||
expect(destinations).toEqual(
|
||||
expect.arrayContaining([
|
||||
'/provisioning',
|
||||
'/maintenance',
|
||||
'/campaigns',
|
||||
'/betas',
|
||||
'/hosts'
|
||||
])
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
it('lets Super Viewers search administration pages without offering operations', () => {
|
||||
const results = palettePageResults('super_viewer', '');
|
||||
expect(results.filter((item) => item.group === 'Actions')).toEqual([]);
|
||||
|
||||
Reference in New Issue
Block a user