Disable reload in preview (#7639)

disable reload in preview

Co-authored-by: Jesse Mazzella <ozyx@users.noreply.github.com>
This commit is contained in:
Scott Bell 2024-03-26 17:58:47 +01:00 committed by GitHub
parent 539138437b
commit 986da5782b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -122,4 +122,14 @@ test.describe('Reload action', () => {
expect(fullReloadAlphaTelemetryValue).not.toEqual(afterReloadAlphaTelemetryValue);
expect(fullReloadBetaTelemetryValue).not.toEqual(afterReloadBetaTelemetryValue);
});
test('is disabled in Previews', async ({ page }) => {
test.info().annotations.push({
type: 'issue',
description: 'https://github.com/nasa/openmct/issues/7638'
});
await page.getByLabel('Alpha Table Frame Controls').getByLabel('Large View').click();
await page.getByLabel('Modal Overlay').getByLabel('More actions').click();
await expect(page.getByLabel('Reload')).toBeHidden();
});
});

View File

@ -64,7 +64,7 @@ import NotebookMenuSwitcher from '@/plugins/notebook/components/NotebookMenuSwit
import ViewSwitcher from '../layout/ViewSwitcher.vue';
const HIDDEN_ACTIONS = ['remove', 'move', 'preview', 'large.view'];
const HIDDEN_ACTIONS = ['remove', 'move', 'preview', 'large.view', 'reload'];
export default {
components: {