Remove standalone Activity log page (Refs #153)
This commit is contained in:
@@ -20,13 +20,25 @@ describe('navigation context', () => {
|
||||
expect(returnLabel('/collections?view=history&launches=30')).toBe('Back to launch history');
|
||||
});
|
||||
|
||||
it('retains Activity filters and a selected result when opening a detail', () => {
|
||||
const source = '/activity?source=maintenance&state=failed&offset=25#operation-12';
|
||||
it('retains Maintenance filters and a selected result when opening a detail', () => {
|
||||
const source = '/maintenance?view=activity&state=failed&offset=25#operation-12';
|
||||
const target = new URL(contextHref('/provisioning/12', source), 'http://localhost');
|
||||
expect(safeReturnHref(target.searchParams.get('returnTo'), '/')).toBe(source);
|
||||
expect(returnLabel(source)).toBe('Back to Activity');
|
||||
expect(returnLabel(source)).toBe('Back to Maintenance');
|
||||
});
|
||||
|
||||
it.each(['/activity', '/operations'])(
|
||||
'replaces retired %s return links with their current history',
|
||||
(path) => {
|
||||
const source = `${path}?server=town&host=host-1&state=failed&offset=25`;
|
||||
const expected = '/servers/town?tab=history&host=host-1&state=failed&offset=25';
|
||||
expect(safeReturnHref(source, '/')).toBe(expected);
|
||||
const target = new URL(contextHref('/provisioning/12', source), 'http://localhost');
|
||||
expect(target.searchParams.get('returnTo')).toBe(expected);
|
||||
expect(returnLabel(expected)).toBe('Back to server');
|
||||
}
|
||||
);
|
||||
|
||||
it('preserves the selected diagnostic tab on both sides of a contextual link', () => {
|
||||
const url = new URL(
|
||||
contextHref(
|
||||
|
||||
Reference in New Issue
Block a user