graphdb-workbench-tests 2.4.1 → 2.4.2-TR2

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.
@@ -27,6 +27,41 @@ describe('Operations Status Component', () => {
27
27
  OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('not.exist');
28
28
  });
29
29
 
30
+ it('should display icons with ongoing operations', () => {
31
+ // When I visit some page and there are running operations.
32
+ GlobalOperationsStatusesStub.stubGlobalOperationsStatusesResponse(repositoryId);
33
+ HomeSteps.visitAndWaitLoader();
34
+ // Then I expect "Global Operations Component" to be displayed.
35
+ OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
36
+
37
+ OperationsStatusesComponentSteps.getImportOperationStatusHeaderElement()
38
+ .should('have.length', 1)
39
+ .parent()
40
+ .find('.running-operation-count')
41
+ .should('exist')
42
+ .contains('1');
43
+
44
+ OperationsStatusesComponentSteps.getQueriesOperationStatusHeaderElement()
45
+ .should('have.length', 1)
46
+ .parent()
47
+ .find('.running-operation-count')
48
+ .should('exist')
49
+ .contains('26');
50
+
51
+ OperationsStatusesComponentSteps.getBackupAndRestoreOperationStatusHeaderElement()
52
+ .should('have.length', 1)
53
+ .parent()
54
+ .find('.running-operation-count')
55
+ .should('not.exist');
56
+
57
+ OperationsStatusesComponentSteps.getClusterOperationStatusHeaderElement()
58
+ .should('have.length', 1)
59
+ .parent()
60
+ .find('.running-operation-count')
61
+ .should('not.exist');
62
+
63
+ });
64
+
30
65
  it('should redirect to query and update view wen click on queries operation element', () => {
31
66
  // When I visit some page and there are running operations.
32
67
  GlobalOperationsStatusesStub.stubGlobalOperationsStatusesResponse(repositoryId);
@@ -135,8 +135,7 @@ describe('Setup / RDF Rank', () => {
135
135
  getIncludedPredicatesFilter()
136
136
  .find('.tag-list .tag-item')
137
137
  .should('have.length', 1)
138
- // The form automatically converts it to short IRI
139
- .and('contain', 'rdf:type');
138
+ .and('contain', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type');
140
139
  getComputeFullButton().click();
141
140
 
142
141
  // All should be OK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.4.1",
3
+ "version": "2.4.2-TR2",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "start": "cypress open",
@@ -4,6 +4,26 @@ export class OperationsStatusesComponentSteps {
4
4
  return cy.get('.operations-statuses');
5
5
  }
6
6
 
7
+ static getOperationStatusHeader(iconName) {
8
+ return OperationsStatusesComponentSteps.getOperationsStatusesComponent().find(`.operation-status-header ${iconName}`);
9
+ }
10
+
11
+ static getImportOperationStatusHeaderElement() {
12
+ return OperationsStatusesComponentSteps.getOperationStatusHeader('.icon-import');
13
+ }
14
+
15
+ static getQueriesOperationStatusHeaderElement() {
16
+ return OperationsStatusesComponentSteps.getOperationStatusHeader('.icon-exchange');
17
+ }
18
+
19
+ static getBackupAndRestoreOperationStatusHeaderElement() {
20
+ return OperationsStatusesComponentSteps.getOperationStatusHeader('.fa.fa-archive');
21
+ }
22
+
23
+ static getClusterOperationStatusHeaderElement() {
24
+ return OperationsStatusesComponentSteps.getOperationStatusHeader('.fa.fa-sitemap');
25
+ }
26
+
7
27
  static getOperationStatuses() {
8
28
  return cy.get('.operation-status-content');
9
29
  }