graphdb-workbench-tests 2.2.1-RC1 → 2.2.1-RC2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// TODO Unskip this either when cluster is available for cypress tests or when proper error handling in the monitor view is implemented
|
|
3
|
-
describe.skip('Monitor Resources', () => {
|
|
1
|
+
describe('Monitor Resources', () => {
|
|
4
2
|
|
|
5
3
|
let repositoryId;
|
|
6
4
|
|
|
@@ -16,8 +14,7 @@ describe.skip('Monitor Resources', () => {
|
|
|
16
14
|
cy.window();
|
|
17
15
|
|
|
18
16
|
// Wait for loaders to disappear
|
|
19
|
-
|
|
20
|
-
cy.get('.ot-loader').should('not.be.visible');
|
|
17
|
+
getTabsPanel().should('be.visible');
|
|
21
18
|
|
|
22
19
|
// Ensure the chart on the default active tab is rendered
|
|
23
20
|
getActiveTabContent().should('be.visible');
|
|
@@ -51,6 +48,18 @@ describe.skip('Monitor Resources', () => {
|
|
|
51
48
|
return getTabContent().find(`#${id}`);
|
|
52
49
|
}
|
|
53
50
|
|
|
51
|
+
function getErrorsPane() {
|
|
52
|
+
return cy.get('.errors');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function getErrors() {
|
|
56
|
+
return getErrorsPane().find('.error');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function getError(index) {
|
|
60
|
+
return getErrors().eq(index);
|
|
61
|
+
}
|
|
62
|
+
|
|
54
63
|
function verifyCharts(charts) {
|
|
55
64
|
charts.forEach((chart) => {
|
|
56
65
|
getChart(chart.id).scrollIntoView().find('.chart-header').should('contain', chart.label);
|
|
@@ -118,12 +127,16 @@ describe.skip('Monitor Resources', () => {
|
|
|
118
127
|
verifyCharts(charts);
|
|
119
128
|
});
|
|
120
129
|
|
|
121
|
-
it('
|
|
130
|
+
it('Should show error and no data chart for non existing cluster', () => {
|
|
131
|
+
getErrorsPane().should('be.visible');
|
|
132
|
+
getErrors().should('have.length', 1);
|
|
133
|
+
getError(0).should('contain', 'Cluster does not exist');
|
|
134
|
+
|
|
122
135
|
getTabButtons().eq(2).click();
|
|
123
136
|
const charts = [{
|
|
124
137
|
id: 'clusterHealth',
|
|
125
138
|
label: 'Cluster health',
|
|
126
|
-
type: 'nv-
|
|
139
|
+
type: 'nv-noData'
|
|
127
140
|
}];
|
|
128
141
|
verifyCharts(charts);
|
|
129
142
|
});
|