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
- // Skipped because cluster health throws an error as there is no cluster.
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
- cy.get('.ot-splash').should('not.be.visible');
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('Cluster health monitoring tab should show charts', () => {
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-stackedarea'
139
+ type: 'nv-noData'
127
140
  }];
128
141
  verifyCharts(charts);
129
142
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.2.1-RC1",
3
+ "version": "2.2.1-RC2",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "start": "cypress open",