mirror of
https://github.com/nasa/openmct.git
synced 2025-05-11 13:03:03 +00:00
Fix actions menu on display layout alphanumerics (#7414)
* remove errant action * add e2e test
This commit is contained in:
parent
2b2c74da9c
commit
3e5ada8f5f
@ -161,6 +161,13 @@ test.describe('Display Layout', () => {
|
|||||||
const trimmedDisplayValue = displayLayoutValue.trim();
|
const trimmedDisplayValue = displayLayoutValue.trim();
|
||||||
|
|
||||||
expect(trimmedDisplayValue).toBe(formattedTelemetryValue);
|
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 ({
|
test('alpha-numeric widget telemetry value exactly matches latest telemetry value received in fixed time', async ({
|
||||||
page
|
page
|
||||||
|
@ -84,12 +84,7 @@ import LayoutFrame from './LayoutFrame.vue';
|
|||||||
|
|
||||||
const DEFAULT_TELEMETRY_DIMENSIONS = [10, 5];
|
const DEFAULT_TELEMETRY_DIMENSIONS = [10, 5];
|
||||||
const DEFAULT_POSITION = [1, 1];
|
const DEFAULT_POSITION = [1, 1];
|
||||||
const CONTEXT_MENU_ACTIONS = [
|
const CONTEXT_MENU_ACTIONS = ['copyToClipboard', 'copyToNotebook', 'viewHistoricalData'];
|
||||||
'copyToClipboard',
|
|
||||||
'copyToNotebook',
|
|
||||||
'viewHistoricalData',
|
|
||||||
'renderWhenVisible'
|
|
||||||
];
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
makeDefinition(openmct, gridSize, domainObject, position) {
|
makeDefinition(openmct, gridSize, domainObject, position) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user