Skip to content

Commit

Permalink
Merge branch 'master' into add-innerHtml-eslint-rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Oct 13, 2023
2 parents 7e4759e + 76889cf commit f59737b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 2 additions & 4 deletions src/plugins/charts/bar/pluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/faultManagement/pluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import { createOpenMct, resetApplicationState } from '../../utils/testing';
import {
FAULT_MANAGEMENT_INSPECTOR,
FAULT_MANAGEMENT_NAMESPACE,
FAULT_MANAGEMENT_TYPE,
FAULT_MANAGEMENT_VIEW
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/plot/pluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f59737b

Please sign in to comment.