From 11a6b8fe96fe407bc382b24868d067a90da6a3aa Mon Sep 17 00:00:00 2001 From: Scott Bell Date: Thu, 25 Jan 2024 11:06:25 +0100 Subject: [PATCH 1/2] remove errant action --- src/plugins/displayLayout/components/TelemetryView.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/plugins/displayLayout/components/TelemetryView.vue b/src/plugins/displayLayout/components/TelemetryView.vue index 80c4ac6190a..744aa408bef 100644 --- a/src/plugins/displayLayout/components/TelemetryView.vue +++ b/src/plugins/displayLayout/components/TelemetryView.vue @@ -84,12 +84,7 @@ import LayoutFrame from './LayoutFrame.vue'; const DEFAULT_TELEMETRY_DIMENSIONS = [10, 5]; const DEFAULT_POSITION = [1, 1]; -const CONTEXT_MENU_ACTIONS = [ - 'copyToClipboard', - 'copyToNotebook', - 'viewHistoricalData', - 'renderWhenVisible' -]; +const CONTEXT_MENU_ACTIONS = ['copyToClipboard', 'copyToNotebook', 'viewHistoricalData']; export default { makeDefinition(openmct, gridSize, domainObject, position) { From e5accaa48bbad7b312a818d641fa89fa8d35fffd Mon Sep 17 00:00:00 2001 From: Scott Bell Date: Thu, 25 Jan 2024 11:14:59 +0100 Subject: [PATCH 2/2] add e2e test --- .../plugins/displayLayout/displayLayout.e2e.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e2e/tests/functional/plugins/displayLayout/displayLayout.e2e.spec.js b/e2e/tests/functional/plugins/displayLayout/displayLayout.e2e.spec.js index e476d66fe28..f06b29b509b 100644 --- a/e2e/tests/functional/plugins/displayLayout/displayLayout.e2e.spec.js +++ b/e2e/tests/functional/plugins/displayLayout/displayLayout.e2e.spec.js @@ -161,6 +161,13 @@ test.describe('Display Layout', () => { const trimmedDisplayValue = displayLayoutValue.trim(); expect(trimmedDisplayValue).toBe(formattedTelemetryValue); + + // ensure we can right click on the alpha-numeric widget and view historical data + await page.getByLabel('Sine', { exact: true }).click({ + button: 'right' + }); + await page.getByLabel('View Historical Data').click(); + await expect(page.getByLabel('Plot Container Style Target')).toBeVisible(); }); test('alpha-numeric widget telemetry value exactly matches latest telemetry value received in fixed time', async ({ page