graphdb-workbench-tests 2.2.1-RC4 → 2.2.1-RC6
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.
|
@@ -62,7 +62,7 @@ describe('Monitor Resources', () => {
|
|
|
62
62
|
|
|
63
63
|
function verifyCharts(charts) {
|
|
64
64
|
charts.forEach((chart) => {
|
|
65
|
-
getChart(chart.id).scrollIntoView().find('.
|
|
65
|
+
getChart(chart.id).scrollIntoView().find('.title').should('contain', chart.label);
|
|
66
66
|
getChart(chart.id).scrollIntoView().find(`.${chart.type}`).should('be.visible');
|
|
67
67
|
});
|
|
68
68
|
}
|
|
@@ -83,7 +83,7 @@ describe('Monitor Resources', () => {
|
|
|
83
83
|
it('Resource monitoring tab should show cpu, file, storage and memory charts', () => {
|
|
84
84
|
const charts = [{
|
|
85
85
|
id: 'CPUUsageGraphic',
|
|
86
|
-
label: 'System CPU
|
|
86
|
+
label: 'System CPU load',
|
|
87
87
|
type: 'nv-lineChart'
|
|
88
88
|
}, {
|
|
89
89
|
id: 'openFileDescriptors',
|
|
@@ -99,7 +99,7 @@ describe('Monitor Resources', () => {
|
|
|
99
99
|
type: 'nv-lineChart'
|
|
100
100
|
}, {
|
|
101
101
|
id: 'diskStorage',
|
|
102
|
-
label: 'Disk
|
|
102
|
+
label: 'Disk storage',
|
|
103
103
|
type: 'nv-multiBarHorizontalChart'
|
|
104
104
|
}];
|
|
105
105
|
verifyCharts(charts);
|
|
@@ -127,17 +127,9 @@ describe('Monitor Resources', () => {
|
|
|
127
127
|
verifyCharts(charts);
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
it('Should show
|
|
131
|
-
getErrorsPane().should('be.visible');
|
|
132
|
-
getErrors().should('have.length', 1);
|
|
133
|
-
getError(0).should('contain', 'Cluster does not exist');
|
|
134
|
-
|
|
130
|
+
it('Should show info and no error for non existing cluster', () => {
|
|
131
|
+
getErrorsPane().should('not.be.visible');
|
|
135
132
|
getTabButtons().eq(2).click();
|
|
136
|
-
|
|
137
|
-
id: 'clusterHealth',
|
|
138
|
-
label: 'Cluster health',
|
|
139
|
-
type: 'nv-noData'
|
|
140
|
-
}];
|
|
141
|
-
verifyCharts(charts);
|
|
133
|
+
cy.get('.alert-info').should('be.visible').and('contain', 'Charts are not available because GraphDB is not in cluster configuration');
|
|
142
134
|
});
|
|
143
135
|
});
|