mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
Rename all configuration inspector tabs to Config
(#7140)
This commit is contained in:
parent
26d3bd1e69
commit
76889cf60d
@ -40,7 +40,7 @@ test.describe('The Fault Management Plugin using example faults', () => {
|
||||
}) => {
|
||||
await utils.selectFaultItem(page, 1);
|
||||
|
||||
await page.getByRole('tab', { name: 'Fault Management Configuration' }).click();
|
||||
await page.getByRole('tab', { name: 'Config' }).click();
|
||||
const selectedFaultName = await page
|
||||
.locator('.c-fault-mgmt__list.is-selected .c-fault-mgmt__list-faultname')
|
||||
.textContent();
|
||||
@ -65,7 +65,7 @@ test.describe('The Fault Management Plugin using example faults', () => {
|
||||
);
|
||||
expect.soft(await selectedRows.count()).toEqual(2);
|
||||
|
||||
await page.getByRole('tab', { name: 'Fault Management Configuration' }).click();
|
||||
await page.getByRole('tab', { name: 'Config' }).click();
|
||||
const firstSelectedFaultName = await selectedRows.nth(0).textContent();
|
||||
const secondSelectedFaultName = await selectedRows.nth(1).textContent();
|
||||
const firstNameInInspectorCount = await page
|
||||
|
@ -6,7 +6,7 @@ import BarGraphOptions from './BarGraphOptions.vue';
|
||||
export default function BarGraphInspectorViewProvider(openmct) {
|
||||
return {
|
||||
key: BAR_GRAPH_INSPECTOR_KEY,
|
||||
name: 'Bar Graph Configuration',
|
||||
name: 'Config',
|
||||
canView: function (selection) {
|
||||
if (selection.length === 0 || selection[0].length === 0) {
|
||||
return false;
|
||||
|
@ -25,7 +25,7 @@ import EventEmitter from 'EventEmitter';
|
||||
import { createOpenMct, resetApplicationState } from 'utils/testing';
|
||||
import Vue from 'vue';
|
||||
|
||||
import { BAR_GRAPH_KEY, BAR_GRAPH_VIEW } from './BarGraphConstants';
|
||||
import { BAR_GRAPH_INSPECTOR_KEY, BAR_GRAPH_KEY, BAR_GRAPH_VIEW } from './BarGraphConstants';
|
||||
import BarGraphPlugin from './plugin';
|
||||
|
||||
describe('the plugin', function () {
|
||||
@ -578,9 +578,7 @@ describe('the plugin', function () {
|
||||
child.append(viewContainer);
|
||||
|
||||
const applicableViews = openmct.inspectorViews.get(selection);
|
||||
plotInspectorView = applicableViews.filter(
|
||||
(view) => view.name === 'Bar Graph Configuration'
|
||||
)[0];
|
||||
plotInspectorView = applicableViews.filter((view) => view.key === BAR_GRAPH_INSPECTOR_KEY)[0];
|
||||
plotInspectorView.show(viewContainer);
|
||||
|
||||
await Vue.nextTick();
|
||||
|
@ -29,7 +29,7 @@ export default function FaultManagementInspectorViewProvider(openmct) {
|
||||
return {
|
||||
openmct: openmct,
|
||||
key: FAULT_MANAGEMENT_INSPECTOR,
|
||||
name: 'Fault Management Configuration',
|
||||
name: 'Config',
|
||||
canView: (selection) => {
|
||||
if (selection.length !== 1 || selection[0].length === 0) {
|
||||
return false;
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
import { createOpenMct, resetApplicationState } from '../../utils/testing';
|
||||
import {
|
||||
FAULT_MANAGEMENT_INSPECTOR,
|
||||
FAULT_MANAGEMENT_NAMESPACE,
|
||||
FAULT_MANAGEMENT_TYPE,
|
||||
FAULT_MANAGEMENT_VIEW
|
||||
@ -86,7 +87,7 @@ describe('The Fault Management Plugin', () => {
|
||||
];
|
||||
const applicableInspectorViews = openmct.inspectorViews.get(faultDomainObjectSelection);
|
||||
const faultManagementInspectorView = applicableInspectorViews.filter(
|
||||
(view) => view.name === 'Fault Management Configuration'
|
||||
(view) => view.key === FAULT_MANAGEMENT_INSPECTOR
|
||||
);
|
||||
|
||||
expect(faultManagementInspectorView.length).toEqual(1);
|
||||
|
@ -296,7 +296,7 @@ describe('the plugin', function () {
|
||||
];
|
||||
const applicableInspectorViews = openmct.inspectorViews.get(selection);
|
||||
const plotInspectorView = applicableInspectorViews.find(
|
||||
(view) => (view.name = 'Plots Configuration')
|
||||
(view) => view.key === 'plots-inspector'
|
||||
);
|
||||
|
||||
expect(plotInspectorView).toBeDefined();
|
||||
|
@ -28,7 +28,7 @@ import TelemetryTableConfiguration from './TelemetryTableConfiguration';
|
||||
export default function TableConfigurationViewProvider(openmct) {
|
||||
return {
|
||||
key: 'table-configuration',
|
||||
name: 'Configuration',
|
||||
name: 'Config',
|
||||
canView: function (selection) {
|
||||
if (selection.length !== 1 || selection[0].length === 0) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user