Skip to content

Commit be06f0f

Browse files
Update integration tests to work with the new text
1 parent 1bb5d4c commit be06f0f

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

frontend/packages/dev-console/integration-tests/features/monitoring/changing-context-monitoring-dashboard.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Feature: Changing context in Observe Dashboard
1010

1111

1212
@regression
13-
Scenario: Charts display in observe dashboard for specific workload: M-01-TC01
13+
Scenario: Charts display in observe dashboards for specific workload: M-01-TC01
1414
Given user is at the Topology page
1515
When user selects the workload "nodejs-ex-git" to open the topology sidebar
16-
And user navigates to observe dashboard from toplogy sidebar
16+
And user navigates to observe dashboards from toplogy sidebar
1717
Then user is able to see the workload "nodejs-ex-git" in workloads dropdown
1818
And user will see "CPU Usage" chart
1919
And user will see "CPU Quota" chart

frontend/packages/dev-console/integration-tests/support/step-definitions/monitoring/changing-context-dashboard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ When('user selects the workload {string} to open the topology sidebar', (workloa
66
topologyPage.clickOnNode(workloadName);
77
});
88

9-
When('user navigates to observe dashboard from toplogy sidebar', () => {
9+
When('user navigates to observe dashboards from toplogy sidebar', () => {
1010
topologySidePane.selectTab('Observe');
11-
cy.get(topologyPO.sidePane.monitoringTab.viewMonitoringDashBoardLink).click({ force: true });
11+
cy.get(topologyPO.sidePane.monitoringTab.viewMonitoringDashBoardsLink).click({ force: true });
1212
});
1313

1414
Then('user is able to see the workload {string} in workloads dropdown', (workloadName: string) => {

frontend/packages/dev-console/integration-tests/support/step-definitions/monitoring/topology-sidebar-actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ When('user selects {string} from Context Menu', (menuOption: string) => {
5454
});
5555

5656
When('user clicks on View dashboard link', () => {
57-
cy.get(topologyPO.sidePane.monitoringTab.viewMonitoringDashBoardLink).click({ force: true });
57+
cy.get(topologyPO.sidePane.monitoringTab.viewMonitoringDashBoardsLink).click({ force: true });
5858
});
5959

6060
When('user selects {string} from topology sidebar Actions dropdown', (menuOption: string) => {
@@ -189,7 +189,7 @@ Then('user wont see Monitoring tab', () => {
189189
});
190190

191191
Then('user will see View dashboard link', () => {
192-
cy.get(topologyPO.sidePane.monitoringTab.viewMonitoringDashBoardLink).should('be.visible');
192+
cy.get(topologyPO.sidePane.monitoringTab.viewMonitoringDashBoardsLink).should('be.visible');
193193
});
194194

195195
Then('user will see CPU Usage Metrics', () => {

frontend/packages/dev-console/src/components/monitoring/overview/MonitoringOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const MonitoringOverview: React.FC<MonitoringOverviewProps> = (props) => {
142142
}?dashboard=grafana-dashboard-k8s-resources-workload&workload=${
143143
resource?.metadata?.name
144144
}&type=${resource?.kind?.toLowerCase()}`}
145-
data-test="observe-dashboard-link"
145+
data-test="observe-dashboards-link"
146146
>
147147
{t('devconsole~View dashboards')}
148148
</Link>

frontend/packages/topology/integration-tests/support/page-objects/topology-po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const topologyPO = {
113113
podTrafficStatus: 'div[data-test="pod-traffic-status',
114114
},
115115
monitoringTab: {
116-
viewMonitoringDashBoardLink: '[data-test="observe-dashboard-link"]',
116+
viewMonitoringDashBoardsLink: '[data-test="observe-dashboards-link"]',
117117
},
118118
releaseNotesTab: {},
119119
},

0 commit comments

Comments
 (0)