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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  const path = require('path');
8
8
  const cypress = require('cypress');
9
- const cypressConfig = require('../cypress.json');
9
+ const cypressConfig = require('../cypress.config.js');
10
10
 
11
11
  const originalWorkingDir = process.cwd();
12
12
 
@@ -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('.chart-header').should('contain', chart.label);
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 Load',
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 Storage',
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 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
-
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
- const charts = [{
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.2.1-RC4",
3
+ "version": "2.2.1-RC6",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "start": "cypress open",