Skip to content

Commit 76889cf

Browse files
authored
Rename all configuration inspector tabs to Config (#7140)
1 parent 26d3bd1 commit 76889cf

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

e2e/tests/functional/plugins/faultManagement/faultManagement.e2e.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test.describe('The Fault Management Plugin using example faults', () => {
4040
}) => {
4141
await utils.selectFaultItem(page, 1);
4242

43-
await page.getByRole('tab', { name: 'Fault Management Configuration' }).click();
43+
await page.getByRole('tab', { name: 'Config' }).click();
4444
const selectedFaultName = await page
4545
.locator('.c-fault-mgmt__list.is-selected .c-fault-mgmt__list-faultname')
4646
.textContent();
@@ -65,7 +65,7 @@ test.describe('The Fault Management Plugin using example faults', () => {
6565
);
6666
expect.soft(await selectedRows.count()).toEqual(2);
6767

68-
await page.getByRole('tab', { name: 'Fault Management Configuration' }).click();
68+
await page.getByRole('tab', { name: 'Config' }).click();
6969
const firstSelectedFaultName = await selectedRows.nth(0).textContent();
7070
const secondSelectedFaultName = await selectedRows.nth(1).textContent();
7171
const firstNameInInspectorCount = await page

src/plugins/charts/bar/inspector/BarGraphInspectorViewProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import BarGraphOptions from './BarGraphOptions.vue';
66
export default function BarGraphInspectorViewProvider(openmct) {
77
return {
88
key: BAR_GRAPH_INSPECTOR_KEY,
9-
name: 'Bar Graph Configuration',
9+
name: 'Config',
1010
canView: function (selection) {
1111
if (selection.length === 0 || selection[0].length === 0) {
1212
return false;

src/plugins/charts/bar/pluginSpec.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import EventEmitter from 'EventEmitter';
2525
import { createOpenMct, resetApplicationState } from 'utils/testing';
2626
import Vue from 'vue';
2727

28-
import { BAR_GRAPH_KEY, BAR_GRAPH_VIEW } from './BarGraphConstants';
28+
import { BAR_GRAPH_INSPECTOR_KEY, BAR_GRAPH_KEY, BAR_GRAPH_VIEW } from './BarGraphConstants';
2929
import BarGraphPlugin from './plugin';
3030

3131
describe('the plugin', function () {
@@ -578,9 +578,7 @@ describe('the plugin', function () {
578578
child.append(viewContainer);
579579

580580
const applicableViews = openmct.inspectorViews.get(selection);
581-
plotInspectorView = applicableViews.filter(
582-
(view) => view.name === 'Bar Graph Configuration'
583-
)[0];
581+
plotInspectorView = applicableViews.filter((view) => view.key === BAR_GRAPH_INSPECTOR_KEY)[0];
584582
plotInspectorView.show(viewContainer);
585583

586584
await Vue.nextTick();

src/plugins/faultManagement/FaultManagementInspectorViewProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function FaultManagementInspectorViewProvider(openmct) {
2929
return {
3030
openmct: openmct,
3131
key: FAULT_MANAGEMENT_INSPECTOR,
32-
name: 'Fault Management Configuration',
32+
name: 'Config',
3333
canView: (selection) => {
3434
if (selection.length !== 1 || selection[0].length === 0) {
3535
return false;

src/plugins/faultManagement/pluginSpec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import { createOpenMct, resetApplicationState } from '../../utils/testing';
2424
import {
25+
FAULT_MANAGEMENT_INSPECTOR,
2526
FAULT_MANAGEMENT_NAMESPACE,
2627
FAULT_MANAGEMENT_TYPE,
2728
FAULT_MANAGEMENT_VIEW
@@ -86,7 +87,7 @@ describe('The Fault Management Plugin', () => {
8687
];
8788
const applicableInspectorViews = openmct.inspectorViews.get(faultDomainObjectSelection);
8889
const faultManagementInspectorView = applicableInspectorViews.filter(
89-
(view) => view.name === 'Fault Management Configuration'
90+
(view) => view.key === FAULT_MANAGEMENT_INSPECTOR
9091
);
9192

9293
expect(faultManagementInspectorView.length).toEqual(1);

src/plugins/plot/pluginSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ describe('the plugin', function () {
296296
];
297297
const applicableInspectorViews = openmct.inspectorViews.get(selection);
298298
const plotInspectorView = applicableInspectorViews.find(
299-
(view) => (view.name = 'Plots Configuration')
299+
(view) => view.key === 'plots-inspector'
300300
);
301301

302302
expect(plotInspectorView).toBeDefined();

src/plugins/telemetryTable/TableConfigurationViewProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import TelemetryTableConfiguration from './TelemetryTableConfiguration';
2828
export default function TableConfigurationViewProvider(openmct) {
2929
return {
3030
key: 'table-configuration',
31-
name: 'Configuration',
31+
name: 'Config',
3232
canView: function (selection) {
3333
if (selection.length !== 1 || selection[0].length === 0) {
3434
return false;

0 commit comments

Comments
 (0)