graphdb-workbench-tests 3.0.2-TR1 → 3.1.0-WBM-1

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.
Files changed (181) hide show
  1. package/.editorconfig +17 -0
  2. package/cypress-flaky.config.js +15 -4
  3. package/cypress-legacy.config.js +32 -0
  4. package/cypress.config.js +5 -3
  5. package/{integration-flaky → e2e-flaky}/explore/visual.graph.spec.js +4 -1
  6. package/{integration-flaky → e2e-flaky}/import/import-server-files-operations.spec.js +1 -1
  7. package/{integration-flaky → e2e-flaky}/setup/sparql-template-create.js +9 -2
  8. package/{integration-flaky → e2e-flaky}/setup/users-and-access/security-and-free-access.spec.js +4 -1
  9. package/{integration-flaky → e2e-flaky}/sparql-editor/yasr/table-plugin.spec.js +2 -1
  10. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +4 -1
  11. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +4 -1
  12. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration.spec.js +4 -1
  13. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.js +42 -0
  14. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.js +43 -0
  15. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.js +30 -0
  16. package/{integration/explore → e2e-legacy/explore/class-hierarchy}/class.hierarchy.spec.js +3 -2
  17. package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js +42 -0
  18. package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js +39 -0
  19. package/e2e-legacy/explore/class-relationships/class-relationships-without-selected-repository.spec.js +21 -0
  20. package/{integration/explore/class.relationships.spec.js → e2e-legacy/explore/class-relationships/class-relationships.spec.js} +18 -50
  21. package/{integration/explore → e2e-legacy/explore/graphs-overview}/graphs.overview.spec.js +5 -4
  22. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-with-selected-repository.spec.js +44 -0
  23. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-without-selected-repository.spec.js +32 -0
  24. package/{integration → e2e-legacy}/explore/visual-graph/graphs-config.spec.js +18 -10
  25. package/e2e-legacy/explore/visual-graph/visual-graph-with-selected-repository.js +38 -0
  26. package/e2e-legacy/explore/visual-graph/visual-graph-without-selected-repository.js +21 -0
  27. package/{integration → e2e-legacy}/explore/visual-graph/visual.graph.spec.js +4 -8
  28. package/{integration → e2e-legacy}/graphql/activate-deactivate-graphql-endpoint.spec.js +1 -1
  29. package/{integration → e2e-legacy}/graphql/create-graphql-endpoint.spec.js +1 -1
  30. package/{integration → e2e-legacy}/graphql/delete-graphql-endpoint.spec.js +1 -1
  31. package/{integration → e2e-legacy}/graphql/edit-graphql-enpoint.spec.js +2 -2
  32. package/{integration → e2e-legacy}/graphql/export-graphql-endpoint-definition.spec.js +1 -1
  33. package/{integration → e2e-legacy}/graphql/filter-graphql-endpoints-on-management-view.spec.js +1 -1
  34. package/e2e-legacy/graphql/graphql-endpoint management-without-selected-repository.spec.js +21 -0
  35. package/{integration → e2e-legacy}/graphql/graphql-endpoint-management-view.spec.js +1 -1
  36. package/e2e-legacy/graphql/graphql-endpoint-management-with-endpoints.spec.js +43 -0
  37. package/e2e-legacy/graphql/graphql-endpoint-management-with-selected-repository.spec.jsx +39 -0
  38. package/e2e-legacy/graphql/graphql-playground-with-endpoints.spec.js +40 -0
  39. package/e2e-legacy/graphql/graphql-playground-with-selected-repository.spec.js +38 -0
  40. package/e2e-legacy/graphql/graphql-playground-without-selected-repository.spec.js +22 -0
  41. package/{integration → e2e-legacy}/graphql/graphql-playground.spec.js +2 -2
  42. package/{integration → e2e-legacy}/graphql/import-graphql-endpoint-definitions.spec.js +1 -1
  43. package/{integration → e2e-legacy}/graphql/set-default-graphql-endpoint.spec.js +1 -1
  44. package/{integration → e2e-legacy}/guides/movies-interactive-guide.spec.js +5 -1
  45. package/{integration → e2e-legacy}/guides/star-wars-interactive-guide.js +6 -1
  46. package/{integration → e2e-legacy}/home/cookie-policy.spec.js +6 -7
  47. package/{integration → e2e-legacy}/home/create-repository.spec.js +6 -2
  48. package/{integration → e2e-legacy}/home/documentation-link.spec.js +4 -1
  49. package/e2e-legacy/home/home-page-with-selected-repository.spec.js +66 -0
  50. package/e2e-legacy/home/home-page-without-repositories.spec.js +91 -0
  51. package/e2e-legacy/home/home-page-without-selected-repository.spec.js +59 -0
  52. package/{integration → e2e-legacy}/home/language-change.spec.js +6 -3
  53. package/{integration → e2e-legacy}/home/language-selector.spec.js +4 -1
  54. package/{integration → e2e-legacy}/home/rdf-resource-search.spec.js +4 -1
  55. package/{integration → e2e-legacy}/home/view-resource-autocomplete.spec.js +6 -2
  56. package/{integration → e2e-legacy}/import/import-server-files-batch-operations.spec.js +2 -1
  57. package/{integration → e2e-legacy}/import/import-server-files.spec.js +2 -1
  58. package/{integration → e2e-legacy}/import/import-user-data-file-upload.spec.js +10 -3
  59. package/{integration → e2e-legacy}/import/import-user-data-text-snippet.spec.js +30 -8
  60. package/{integration → e2e-legacy}/import/import-user-data-url.spec.js +2 -1
  61. package/{integration → e2e-legacy}/import/import-user-data.spec.js +8 -3
  62. package/{integration → e2e-legacy}/import/import-view.spec.js +2 -1
  63. package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +51 -0
  64. package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +45 -0
  65. package/e2e-legacy/import/initial-state/import-page-without-selected-repository.spec.js +28 -0
  66. package/{integration → e2e-legacy}/monitor/global-operation-statuses-component.spec.js +4 -1
  67. package/{integration → e2e-legacy}/monitor/monitor.queries.spec.js +4 -1
  68. package/{integration → e2e-legacy}/monitor/monitor.resources.spec.js +2 -1
  69. package/{integration → e2e-legacy}/repository/attach-remote-location.spec.js +4 -1
  70. package/{integration → e2e-legacy}/repository/ontop-repository.spec.js +12 -3
  71. package/{integration → e2e-legacy}/repository/repositories.spec.js +1 -1
  72. package/{integration → e2e-legacy}/resource/resource.spec.js +10 -3
  73. package/{integration → e2e-legacy}/setup/aclmanagement/create-rule.spec.js +3 -1
  74. package/{integration → e2e-legacy}/setup/aclmanagement/edit-rule.spec.js +2 -1
  75. package/{integration → e2e-legacy}/setup/aclmanagement/reorder-rules.spec.js +2 -1
  76. package/{integration → e2e-legacy}/setup/aclmanagement/revert-rules.spec.js +4 -1
  77. package/{integration → e2e-legacy}/setup/aclmanagement/scopes.spec.js +2 -1
  78. package/{integration → e2e-legacy}/setup/aclmanagement/update-rules.spec.js +16 -4
  79. package/{integration → e2e-legacy}/setup/autocomplete.spec.js +4 -1
  80. package/{integration → e2e-legacy}/setup/connectors-lucene.spec.js +2 -1
  81. package/{integration → e2e-legacy}/setup/my-settings.spec.js +4 -2
  82. package/{integration → e2e-legacy}/setup/namespaces.spec.js +6 -2
  83. package/{integration → e2e-legacy}/setup/plugins.spec.js +4 -1
  84. package/{integration → e2e-legacy}/setup/rdf-rank.spec.js +4 -1
  85. package/{integration → e2e-legacy}/setup/sparql-template-create.js +18 -5
  86. package/{integration → e2e-legacy}/setup/sparql-templates.spec.js +2 -1
  87. package/{integration → e2e-legacy}/setup/user-and-access.spec.js +9 -5
  88. package/{integration → e2e-legacy}/sparql-editor/actions/inferred-sameas.spec.js +3 -1
  89. package/{integration → e2e-legacy}/sparql-editor/internationalization.spec.js +4 -1
  90. package/{integration → e2e-legacy}/sparql-editor/saved-query/edit-query.spec.js +3 -0
  91. package/{integration → e2e-legacy}/sparql-editor/saved-query/share-query.spec.js +5 -1
  92. package/{integration → e2e-legacy}/sparql-editor/sparql-editor.spec.js +4 -1
  93. package/e2e-legacy/sparql-editor/sparql-page-with-selected-repository.spec.js +33 -0
  94. package/e2e-legacy/sparql-editor/sparql-page-without-selected-repository.spec.js +26 -0
  95. package/{integration → e2e-legacy}/sparql-editor/yasgui-tabs.spec.js +4 -1
  96. package/{integration → e2e-legacy}/ttyg/agent-list.spec.js +21 -1
  97. package/{integration → e2e-legacy}/ttyg/agent-select-menu.spec.js +24 -0
  98. package/{integration → e2e-legacy}/ttyg/chat-list.spec.js +2 -1
  99. package/{integration → e2e-legacy}/ttyg/chat-panel.spec.js +29 -3
  100. package/{integration → e2e-legacy}/ttyg/create-agent.spec.js +10 -3
  101. package/{integration → e2e-legacy}/ttyg/create-chat.spec.js +3 -1
  102. package/{integration → e2e-legacy}/ttyg/edit-agent.spec.js +18 -8
  103. package/e2e-legacy/ttyg/ttyg-permission.spec.js +69 -0
  104. package/{integration → e2e-legacy}/ttyg/ttyg-view.spec.js +2 -1
  105. package/fixtures/locale-en.json +19 -1
  106. package/fixtures/ttyg/agent/get-agent-list-with-incompatible-agents.json +79 -0
  107. package/fixtures/ttyg/chats/ask-question.json +12 -2
  108. package/fixtures/ttyg/chats/get-chat.json +6 -1
  109. package/npm-shrinkwrap.json +3540 -3815
  110. package/package.json +41 -42
  111. package/steps/class-views-steps.js +16 -0
  112. package/steps/error-steps.js +15 -0
  113. package/steps/explore/class-relationships-steps.js +64 -0
  114. package/steps/explore/graphs-overview-steps.js +21 -1
  115. package/steps/home-steps.js +103 -13
  116. package/steps/import/import-user-data-steps.js +4 -0
  117. package/steps/language-selector-steps.js +2 -2
  118. package/steps/main-menu-steps.js +44 -6
  119. package/steps/modal-dialog-steps.js +20 -0
  120. package/steps/repository-selector-steps.js +3 -3
  121. package/steps/repository-steps.js +7 -1
  122. package/steps/setup/namespace-steps.js +1 -1
  123. package/steps/setup/user-and-access-steps.js +5 -1
  124. package/steps/ttyg/chat-panel-steps.js +1 -1
  125. package/steps/ttyg/ttyg-agent-settings-modal.steps.js +8 -12
  126. package/steps/ttyg/ttyg-view-steps.js +36 -3
  127. package/steps/visual-graph-steps.js +4 -0
  128. package/steps/widgets/active-repository-widget-steps.js +13 -0
  129. package/steps/widgets/license-widget-steps.js +9 -0
  130. package/steps/widgets/repository-errors-widget-steps.js +21 -0
  131. package/steps/widgets/saved-sparql-queries-widget-steps.js +9 -0
  132. package/stubs/autocomplete/autocomplete-stubs.js +7 -0
  133. package/stubs/repositories/repositories-stubs.js +4 -0
  134. package/stubs/repositories-stub.js +6 -6
  135. package/stubs/saved-queries-stubs.js +5 -0
  136. package/stubs/ttyg/ttyg-stubs.js +4 -7
  137. package/support/commands.js +19 -0
  138. package/support/repository-commands.js +6 -3
  139. package/Dockerfile +0 -11
  140. package/fixtures/repositories/get-remote-and-local-repositories.json +0 -34
  141. package/integration/explore/similarity-index/similarity-index-create.spec.js +0 -333
  142. package/integration/explore/similarity-index/similarity-index.spec.js +0 -88
  143. package/integration/explore/similarity-index/similarity.spec.js +0 -628
  144. package/integration/home/workbench.home.spec.js +0 -30
  145. package/integration/setup/jdbc/jdbc-create.spec.js +0 -329
  146. package/integration/setup/jdbc/jdbc.spec.js +0 -161
  147. /package/{integration-flaky → e2e-flaky}/import/import-user-data-batch-operations.spec.js +0 -0
  148. /package/{integration-flaky → e2e-flaky}/import/import.server.files.spec.js +0 -0
  149. /package/{integration-flaky → e2e-flaky}/sparql-editor/actions/execute-update-query.spec.js +0 -0
  150. /package/{integration-flaky → e2e-flaky}/sparql-editor/actions/share-query.spec.js +0 -0
  151. /package/{integration-flaky → e2e-flaky}/sparql-editor/lucene-connector.spec.js +0 -0
  152. /package/{integration-flaky → e2e-flaky}/sparql-editor/plugins/error-plugin.spec.js +0 -0
  153. /package/{integration-flaky → e2e-flaky}/ttyg/ttyg-permission.spec.js +0 -0
  154. /package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
  155. /package/{integration → e2e-legacy}/cluster/cluster-legend.spec.js +0 -0
  156. /package/{integration → e2e-legacy}/cluster/cluster-states.spec.js +0 -0
  157. /package/{integration → e2e-legacy}/cluster/edit-cluster-nodes-modal.spec.js +0 -0
  158. /package/{integration → e2e-legacy}/explore/visual-graph/visual-graph-node-labels.spec.js +0 -0
  159. /package/{integration → e2e-legacy}/help/system-information.spec.js +0 -0
  160. /package/{integration → e2e-legacy}/home/google-analytics.spec.js +0 -0
  161. /package/{integration → e2e-legacy}/import/import-user-data-settings-dialog.spec.js +0 -0
  162. /package/{integration → e2e-legacy}/license/license.spec.js +0 -0
  163. /package/{integration → e2e-legacy}/monitor/monitor.backup-and-restore.spec.js +0 -0
  164. /package/{integration → e2e-legacy}/repository/repository-commands.spec.js +0 -0
  165. /package/{integration → e2e-legacy}/setup/aclmanagement/delete-rule.spec.js +0 -0
  166. /package/{integration → e2e-legacy}/setup/aclmanagement/render-rules.spec.js +0 -0
  167. /package/{integration → e2e-legacy}/sparql-editor/actions/execute-query.spec.js +0 -0
  168. /package/{integration → e2e-legacy}/sparql-editor/actions/expand-results-over-sameas.spec.js +0 -0
  169. /package/{integration → e2e-legacy}/sparql-editor/actions/include-inferred-statements.spec.js +0 -0
  170. /package/{integration → e2e-legacy}/sparql-editor/actions/save-query.spec.js +0 -0
  171. /package/{integration → e2e-legacy}/sparql-editor/actions/show-saved-queries.spec.js +0 -0
  172. /package/{integration → e2e-legacy}/sparql-editor/saved-query/abort-query.spec.js +0 -0
  173. /package/{integration → e2e-legacy}/sparql-editor/saved-query/delete-query.spec.js +0 -0
  174. /package/{integration → e2e-legacy}/sparql-editor/saved-query/readonly-query.spec.js +0 -0
  175. /package/{integration → e2e-legacy}/sparql-editor/yasr/download-as.spec.js +0 -0
  176. /package/{integration → e2e-legacy}/sparql-editor/yasr/pagination.spec.js +0 -0
  177. /package/{integration → e2e-legacy}/sparql-editor/yasr/table-plugin.spec.js +0 -0
  178. /package/{integration → e2e-legacy}/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +0 -0
  179. /package/{integration → e2e-legacy}/ttyg/clone-agent.spec.js +0 -0
  180. /package/{integration → e2e-legacy}/ttyg/delete-agent.spec.js +0 -0
  181. /package/support/{index.js → e2e.js} +0 -0
package/package.json CHANGED
@@ -1,44 +1,43 @@
1
1
  {
2
- "name": "graphdb-workbench-tests",
3
- "version": "3.0.2-TR1",
4
- "description": "Cypress tests for GraphDB workbench",
5
- "scripts": {
6
- "prepack": "npm shrinkwrap",
7
- "postpack": "mv npm-shrinkwrap.json package-lock.json",
8
- "start": "cypress open",
9
- "start:flaky": "cypress open --config-file cypress-flaky.config.js",
10
- "test": "cypress run",
11
- "test:flaky": "cypress run --config-file cypress-flaky.config.js",
12
- "test:partial": "cypress run --spec \"integration/repository/**\"",
13
- "test:core": "cypress run --spec integration/repository/**,integration/import/**,integration/sparql-editor/**,integration/monitor/**,integration/cluster/**,integration/ttyg/**"
14
- },
15
- "author": {
16
- "name": "Ontotext AD",
17
- "url": "https://www.ontotext.com/"
18
- },
19
- "license": "Apache-2.0",
20
- "keywords": [
21
- "graphdb",
22
- "workbench"
23
- ],
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/Ontotext-AD/graphdb-workbench.git"
27
- },
28
- "devDependencies": {
29
- "cypress": "^14.0.3",
30
- "cypress-failed-log": "^2.10.0",
31
- "cypress-file-upload": "^5.0.8",
32
- "cypress-localstorage-commands": "^2.2.6",
33
- "cypress-multi-reporters": "^1.6.3",
34
- "cypress-real-events": "^1.8.1",
35
- "cypress-terminal-report": "^7.0.3",
36
- "cypress-wait-until": "^3.0.2",
37
- "del": "^6.1.1",
38
- "minimist": "^1.2.5",
39
- "mocha-junit-reporter": "^2.2.0"
40
- },
41
- "resolutions": {
42
- "minimist": "^1.2.5"
43
- }
2
+ "name": "graphdb-workbench-tests",
3
+ "version": "3.1.0-WBM-1",
4
+ "description": "Cypress tests for GraphDB workbench",
5
+ "scripts": {
6
+ "prepack": "npm shrinkwrap",
7
+ "postpack": "mv npm-shrinkwrap.json package-lock.json",
8
+ "cy:open": "cypress open",
9
+ "cy:open-legacy": "cypress open --config-file cypress-legacy.config.js",
10
+ "cy:open-flaky": "cypress open --config-file cypress-flaky.config.js",
11
+ "cy:run": "npm run cy:run-legacy && cypress run",
12
+ "cy:run:partial": "cypress run --config-file cypress-legacy.config.js --spec \"e2e-legacy/graphql/graphql-endpoint-management-view.spec.js\" --browser chrome",
13
+ "cy:run-legacy": "cypress run --config-file cypress-legacy.config.js --browser chrome",
14
+ "cy:run-flaky": "cypress run --config-file cypress-flaky.config.js --browser chrome",
15
+ "test:core": "cypress run --spec e2e-broken/repository/**,integration/import/**,integration/sparql-editor/**,integration/monitor/**,integration/cluster/**,integration/ttyg/**"
16
+ },
17
+ "author": {
18
+ "name": "Ontotext AD",
19
+ "url": "https://www.ontotext.com/"
20
+ },
21
+ "license": "Apache-2.0",
22
+ "keywords": [
23
+ "graphdb",
24
+ "workbench"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/Ontotext-AD/graphdb-workbench.git"
29
+ },
30
+ "devDependencies": {
31
+ "cypress": "^13.17.0",
32
+ "cypress-failed-log": "^2.10.0",
33
+ "cypress-file-upload": "^5.0.8",
34
+ "cypress-localstorage-commands": "^2.2.7",
35
+ "cypress-multi-reporters": "^2.0.4",
36
+ "cypress-real-events": "^1.13.0",
37
+ "cypress-terminal-report": "^7.1.0",
38
+ "cypress-wait-until": "^3.0.2",
39
+ "del": "^5.1.0",
40
+ "minimist": "^1.2.8",
41
+ "mocha-junit-reporter": "^2.2.1"
42
+ }
44
43
  }
@@ -21,6 +21,14 @@ class ClassViewsSteps {
21
21
  });
22
22
  }
23
23
 
24
+ static getClassViewsComponent() {
25
+ return cy.get('.explore');
26
+ }
27
+
28
+ static getExploreResults() {
29
+ return this.getClassViewsComponent().find('.explore_results');
30
+ }
31
+
24
32
  static getClassChart() {
25
33
  return cy.get('#classChart');
26
34
  }
@@ -186,6 +194,14 @@ class ClassViewsSteps {
186
194
  static reloadDiagram() {
187
195
  cy.get('.reload-diagram-btn').click();
188
196
  }
197
+
198
+ static getNoHierarchyErrorElement() {
199
+ return this.getExploreResults().find('.no-hierarchy-error');
200
+ }
201
+
202
+ static getRDFClassHierarchy() {
203
+ return this.getExploreResults().find('.rdf-class-hierarchy');
204
+ }
189
205
  }
190
206
 
191
207
  export default ClassViewsSteps;
@@ -6,4 +6,19 @@ export class ErrorSteps {
6
6
  static verifyError(errorMessage) {
7
7
  ErrorSteps.getErrorElement().contains(errorMessage);
8
8
  }
9
+
10
+ static getRepositoryErrors() {
11
+ return cy.get('.card.repository-errors')
12
+ }
13
+
14
+ static getNoConnectedRepoMessage() {
15
+ return this.getRepositoryErrors().find('.alert.lead.alert-info');
16
+ }
17
+
18
+ static verifyNoConnectedRepoMessage() {
19
+ this.getRepositoryErrors().should('be.visible');
20
+ this.getNoConnectedRepoMessage()
21
+ .should('be.visible')
22
+ .and('contain', 'Some functionalities are not available because you are not connected to any repository.');
23
+ }
9
24
  }
@@ -0,0 +1,64 @@
1
+ export class ClassRelationshipsSteps {
2
+ static visit() {
3
+ cy.visit('/relationships');
4
+ }
5
+
6
+ static getFilterField() {
7
+ return cy.get('.search-filter-field');
8
+ }
9
+
10
+ static filterByClass(name) {
11
+ this.getFilterField().type(name);
12
+ }
13
+
14
+ static getDirectionFilter() {
15
+ return cy.get('.direction-filter');
16
+ }
17
+
18
+ static verifySelectedDirectionFilter(name) {
19
+ this.getDirectionFilter().find('input[type=radio]:checked').should('have.value', name);
20
+ }
21
+
22
+ static getRelationsToolbar() {
23
+ return cy.get('.relations-toolbar');
24
+ }
25
+
26
+ static verifyRelationsToolbarContent() {
27
+ this.getRelationsToolbar().should('be.visible');
28
+ this.removeAllClassesButton().should('be.visible');
29
+ this.getReloadDiagramButton().should('be.visible');
30
+ this.getExportDiagramButton().should('be.visible');
31
+ }
32
+
33
+ static getDependenciesList() {
34
+ return cy.get('#wb-dependencies-classInClasses');
35
+ }
36
+
37
+ static verifyListLength(count) {
38
+ this.getDependenciesList().find('.item .row').should('have.length', count);
39
+ }
40
+
41
+ static getNoDataWarning() {
42
+ return cy.get('div.alert.alert-warning');
43
+ }
44
+
45
+ static getReloadDiagramButton() {
46
+ return cy.get('.reload-diagram-btn');
47
+ }
48
+
49
+ static getExportDiagramButton() {
50
+ return this.getRelationsToolbar().find('.export-diagram-btn');
51
+ }
52
+
53
+ static removeAllClassesButton() {
54
+ return this.getRelationsToolbar().find('.remove-all-classes-btn');
55
+ }
56
+
57
+ static getDependenciesDiagram() {
58
+ return cy.get('#dependencies-chord');
59
+ }
60
+
61
+ static getAvailableDependenciesLabel() {
62
+ return cy.get('.available-dependencies-label');
63
+ }
64
+ }
@@ -10,8 +10,16 @@ export class GraphsOverviewSteps {
10
10
  cy.url().should('eq', `${Cypress.config('baseUrl')}${VIEW_URL}`);
11
11
  }
12
12
 
13
+ static getGraphsOverviewComponent() {
14
+ return cy.get('#wb-export');
15
+ }
16
+
17
+ static getResultsElement() {
18
+ return cy.get('#export-graphs');
19
+ }
20
+
13
21
  static getResults() {
14
- return cy.get('#export-graphs').find('tbody tr');
22
+ return this.getResultsElement().find('tbody tr');
15
23
  }
16
24
 
17
25
  static getResult(row = 0) {
@@ -73,4 +81,16 @@ export class GraphsOverviewSteps {
73
81
  static clickOnDownloadAllButton() {
74
82
  this.getDownloadAllButtons().click();
75
83
  }
84
+
85
+ static getGraphsSearchInput() {
86
+ return this.getGraphsOverviewComponent().find('.search-graphs');
87
+ }
88
+
89
+ static getGraphsPaginator() {
90
+ return this.getGraphsOverviewComponent().find('.graphs-overview-paginator');
91
+ }
92
+
93
+ static getClearRepositoryButton() {
94
+ return this.getGraphsOverviewComponent().find('.clear-repository-btn');
95
+ }
76
96
  }
@@ -1,7 +1,13 @@
1
+ import {LicenseWidgetSteps} from "./widgets/license-widget-steps";
2
+ import {RepositoryErrorsWidgetSteps} from "./widgets/repository-errors-widget-steps";
3
+ import {ActiveRepositoryWidgetSteps} from "./widgets/active-repository-widget-steps";
4
+ import {SavedSparqlQueriesWidgetSteps} from "./widgets/saved-sparql-queries-widget-steps";
5
+
1
6
  class HomeSteps {
2
7
 
3
8
  static visit() {
4
9
  cy.visit('/');
10
+ HomeSteps.getTutorialPanel().should('be.visible');
5
11
  }
6
12
 
7
13
  static visitAndWaitLoader(stubNewWindow) {
@@ -17,25 +23,109 @@ class HomeSteps {
17
23
 
18
24
  cy.window();
19
25
 
20
- cy.get('.ot-splash').should('not.be.visible');
21
- return cy.get('.ot-loader-new-content').should('not.exist');
26
+ // TODO: Fix me. Broken due to migration (The issue GDB-10501 not implemented)
27
+ // cy.get('.ot-splash').should('not.be.visible');
28
+ // return cy.get('.ot-loader-new-content').should('not.exist');
22
29
  }
23
30
 
24
- static verifyTutorialVisible(shouldBeVisible) {
25
- if (shouldBeVisible) {
26
- cy.get('.tutorial-container')
27
- .should('be.visible');
28
- } else {
29
- cy.get('.tutorial-container')
30
- .should('not.exist');
31
- }
31
+ static getView() {
32
+ return cy.get('.wb-layout');
33
+ }
34
+
35
+ static getTutorialPanel() {
36
+ return cy.get('.tutorial-container');
37
+ }
38
+
39
+ static hideTutorial() {
40
+ this.getTutorialPanel().find('.decline-tutorial').click();
41
+ }
42
+
43
+ static showTutorialPanel() {
44
+ this.getView().find('.show-tutorial').click();
45
+ }
46
+
47
+ static getNavigationMenu() {
48
+ return this.getView().find('.wb-navbar');
49
+ }
50
+
51
+ static getPageHeader() {
52
+ return this.getView().find('.wb-header');
53
+ }
54
+
55
+ // ===========================
56
+ // RDF search box
57
+ // ===========================
58
+
59
+ static getRDFSearchButton() {
60
+ return this.getPageHeader().find('.rdf-search-button i');
61
+ }
62
+
63
+ // ===========================
64
+ // Repository selector
65
+ // ===========================
66
+
67
+ static getRepositorySelector() {
68
+ return this.getPageHeader().find('onto-repository-selector');
69
+ }
70
+
71
+ static getSelectedRepository() {
72
+ return this.getRepositorySelector().find('.onto-dropdown-button');
73
+ }
74
+
75
+ // ===========================
76
+ // Language selector
77
+ // ===========================
78
+
79
+ static getLanguageSelector() {
80
+ return this.getPageHeader().find('onto-language-selector');
81
+ }
82
+
83
+ static getSelectedLanguage() {
84
+ return this.getLanguageSelector().find('.onto-dropdown-button');
85
+ }
86
+
87
+ // ===========================
88
+ // Active repository widget
89
+ // ===========================
90
+
91
+ static getActiveRepositoryWidget() {
92
+ return ActiveRepositoryWidgetSteps.getWidget();
93
+ }
94
+
95
+ // ===========================
96
+ // License widget
97
+ // ===========================
98
+
99
+ static getLicenseWidget() {
100
+ return LicenseWidgetSteps.getWidget();
101
+ }
102
+
103
+ // ===========================
104
+ // Repository errors widget
105
+ // ===========================
106
+
107
+ static getRepositoryErrorsWidget() {
108
+ return RepositoryErrorsWidgetSteps.getWidget();
32
109
  }
33
110
 
34
- static declineTutorial() {
35
- // Click "No, thanks" button
36
- cy.get('.tutorial-container .decline-tutorial').click();
111
+ // ===========================
112
+ // Saved SPARQL queries widget
113
+ // ===========================
114
+
115
+ static getSavedSparqlQueriesWidget() {
116
+ return SavedSparqlQueriesWidgetSteps.getWidget();
37
117
  }
38
118
 
119
+ // ===========================
120
+ // Page footer
121
+ // ===========================
122
+
123
+ static getPageFooter() {
124
+ return cy.get('.footer-component');
125
+ }
126
+
127
+ // ==========================
128
+
39
129
  static selectSPARQLQueryToExecute(query) {
40
130
  cy.contains('ul.saved-queries li', query)
41
131
  .should('be.visible')
@@ -10,6 +10,10 @@ export class ImportUserDataSteps extends ImportSteps {
10
10
  return this.getView().find('.user-data-import-help');
11
11
  }
12
12
 
13
+ static getFileSizeLimitationWarningMessage() {
14
+ return this.getView().find('.file-size-limit-warning');
15
+ }
16
+
13
17
  static openImportTextSnippetDialog() {
14
18
  cy.get('#import-user .import-rdf-snippet-btn').click()
15
19
  // Forces the popover to disappear as it covers the modal and Cypress refuses to continue
@@ -1,6 +1,6 @@
1
1
  export class LanguageSelectorSteps {
2
2
  static getLanguageSelectorDropdown() {
3
- return cy.get('#languageGroupDrop').should('be.visible');
3
+ return cy.get('.onto-language-selector').should('be.visible');
4
4
  }
5
5
 
6
6
  static openLanguageSelectorDropdown() {
@@ -9,7 +9,7 @@ export class LanguageSelectorSteps {
9
9
 
10
10
  static changeLanguage(language) {
11
11
  LanguageSelectorSteps.openLanguageSelectorDropdown();
12
- cy.get('#lang-select-' + language).click();
12
+ this.getLanguageSelectorDropdown().find(`button.${language}`).click();
13
13
  }
14
14
 
15
15
  static switchToFr() {
@@ -1,7 +1,7 @@
1
1
  export class MainMenuSteps {
2
2
 
3
3
  static getMainMenu() {
4
- return cy.get('.main-menu');
4
+ return cy.get('.navbar-component');
5
5
  }
6
6
 
7
7
  static openHomePage() {
@@ -28,6 +28,24 @@ export class MainMenuSteps {
28
28
  return MainMenuSteps.getMenuButton('SPARQL');
29
29
  }
30
30
 
31
+ static clickOnSparqlMenu() {
32
+ MainMenuSteps.getMenuSparql().click();
33
+ }
34
+
35
+ static openGraphQlMenu() {
36
+ return this.clickOnSubmenuTriggerElement('GraphQL');
37
+ }
38
+
39
+ static clickOnEndpointManagement() {
40
+ this.openGraphQlMenu();
41
+ this.clickOnSubMenu('Endpoint Management');
42
+ }
43
+
44
+ static clickOnGraphQLPlayground() {
45
+ this.openGraphQlMenu();
46
+ this.clickOnSubMenu('GraphQL Playground');
47
+ }
48
+
31
49
  static getSubmenuAutocomplete() {
32
50
  return MainMenuSteps.getSubMenuButton("Autocomplete");
33
51
  }
@@ -45,20 +63,24 @@ export class MainMenuSteps {
45
63
  MainMenuSteps.getMenuButton(menuName).click({force: true});
46
64
  }
47
65
 
66
+ static clickOnSubmenuTriggerElement(menuName) {
67
+ MainMenuSteps.getMainMenu().find('.menu-element-root').contains(menuName).parent().click();
68
+ }
69
+
48
70
  static clickOnMenuImport() {
49
71
  MainMenuSteps.clickOnMenu('Import');
50
72
  }
51
73
 
52
74
  static clickOnExplore() {
53
- MainMenuSteps.clickOnMenu('Explore');
75
+ MainMenuSteps.clickOnSubmenuTriggerElement('Explore');
54
76
  }
55
77
 
56
78
  static getSubMenus() {
57
- return cy.get('.sub-menu-item');
79
+ return MainMenuSteps.getMainMenu().find('.sub-menu');
58
80
  }
59
81
 
60
- static getSubMenuButton(submenuName) {
61
- return MainMenuSteps.getSubMenus().contains(submenuName);
82
+ static getSubMenuButton(testId) {
83
+ return this.getSubMenus().getByTestId(testId);
62
84
  }
63
85
 
64
86
  static clickOnSubMenu(submenuName) {
@@ -66,6 +88,22 @@ export class MainMenuSteps {
66
88
  }
67
89
 
68
90
  static clickOnGraphsOverview() {
69
- MainMenuSteps.clickOnSubMenu('Graphs overview');
91
+ this.clickOnExplore();
92
+ this.getSubMenuButton('sub-menu-graph-overview').click();
93
+ }
94
+
95
+ static clickOnClassHierarchy() {
96
+ this.clickOnExplore();
97
+ this.getSubMenuButton('menu-class-hierarchy').click();
98
+ }
99
+
100
+ static clickOnVisualGraph() {
101
+ this.clickOnExplore();
102
+ this.getSubMenuButton('sub-menu-visual-graph').click();
103
+ }
104
+
105
+ static clickOnClassRelationships() {
106
+ this.clickOnExplore();
107
+ this.getSubMenuButton('sub-menu-class-relationships').click();
70
108
  }
71
109
  }
@@ -63,6 +63,26 @@ export class ModalDialogSteps {
63
63
  ModalDialogSteps.getCancelButton().click();
64
64
  }
65
65
 
66
+ /**
67
+ * Get the dialog with the given body. This method is useful when there are multiple dialogs on the page.
68
+ *
69
+ * @param body - the full or partial text of the dialog body.
70
+ *
71
+ * @return {Cypress.Chainable<JQuery<HTMLElement>>}
72
+ */
73
+ static getDialogWithBody(body) {
74
+ return ModalDialogSteps.getDialog().contains(body).parent().parent();
75
+ }
76
+
77
+ /**
78
+ * Click on the confirmation button of the dialog with the given body. This method is useful when there are multiple dialogs on the page.
79
+ *
80
+ * @param body - the full or partial text of the dialog body.
81
+ */
82
+ static cancelDialogWithBody(body) {
83
+ ModalDialogSteps.getDialogWithBody(body).find('.cancel-btn').click();
84
+ }
85
+
66
86
  static verifyUrlChangedConfirmation(verifyConfirmationDialogOptions = new VerifyConfirmationDialogOptions()) {
67
87
  // and try to change the page
68
88
  verifyConfirmationDialogOptions.changePageFunction();
@@ -1,18 +1,18 @@
1
1
  export class RepositorySelectorSteps {
2
2
 
3
3
  static getRepositorySelectorDropdown() {
4
- return cy.get('#repositorySelectDropdown');
4
+ return cy.get('.onto-repository-selector');
5
5
  }
6
6
 
7
7
  static getRepositorySelectorsButton() {
8
- return RepositorySelectorSteps.getRepositorySelectorDropdown().find('#btnReposGroup');
8
+ return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.onto-dropdown-button .selector-button');
9
9
  }
10
10
  static openRepositorySelectors() {
11
11
  RepositorySelectorSteps.getRepositorySelectorsButton().click();
12
12
  }
13
13
 
14
14
  static getRepositorySelectorButton(repositoryId) {
15
- return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.dropdown-menu .multiline-text').contains(repositoryId);
15
+ return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.repository-selector-dropdown-item .repository-id').contains(repositoryId);
16
16
  }
17
17
 
18
18
  static selectRepository(repositoryId) {
@@ -1,5 +1,8 @@
1
1
  import {REPOSITORIES_URL} from "../support/repository-commands";
2
2
 
3
+ /**
4
+ * TODO: Fix me. Broken due to migration (loader is not implemented)
5
+ */
3
6
  export class RepositorySteps {
4
7
 
5
8
  static visit() {
@@ -22,7 +25,10 @@ export class RepositorySteps {
22
25
 
23
26
  static waitUntilRepositoriesPageIsLoaded() {
24
27
  // Workbench loading screen should not be visible
25
- cy.get('.ot-splash').should('not.be.visible');
28
+ /**
29
+ * TODO: Fix me. Broken due to migration (loader is not implemented)
30
+ */
31
+ // cy.get('.ot-splash').should('not.be.visible');
26
32
 
27
33
  RepositorySteps.getRepositoriesDropdown().should('not.be.disabled');
28
34
  RepositorySteps.getCreateRepositoryButton().should('be.visible').and('not.be.disabled');
@@ -165,7 +165,7 @@ export class NamespaceSteps {
165
165
  }
166
166
 
167
167
  static typeInlineNamespacePrefix(index, prefix) {
168
- this.getInlineNamespacePrefix(index).clear().type(prefix);
168
+ this.getInlineNamespacePrefix(index).click().clear().type(prefix);
169
169
  }
170
170
 
171
171
  static getInlineNamespaceValue(index) {
@@ -8,7 +8,7 @@ export class UserAndAccessSteps {
8
8
  }
9
9
 
10
10
  static getSplashLoader() {
11
- return cy.get('.ot-splash');
11
+ return cy.get('.ot-loader');
12
12
  }
13
13
 
14
14
  static getCreateNewUserButton() {
@@ -159,6 +159,10 @@ export class UserAndAccessSteps {
159
159
  return cy.get('.alert-danger');
160
160
  }
161
161
 
162
+ static getPermissionError() {
163
+ return cy.get('.permission-banner');
164
+ }
165
+
162
166
  static getModal() {
163
167
  return cy.get('.modal-dialog');
164
168
  }
@@ -17,7 +17,7 @@ export class ChatPanelSteps {
17
17
  }
18
18
 
19
19
  static getQuestionInputElement() {
20
- return ChatPanelSteps.getChatPanel().find('.question-input');
20
+ return ChatPanelSteps.getChatPanel().find('.question-input .contenteditable');
21
21
  }
22
22
 
23
23
  static getAskButtonElement() {
@@ -432,18 +432,6 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
432
432
  this.getAutocompleteMaxResults().type(number);
433
433
  }
434
434
 
435
- static getSearchPredicateInput() {
436
- return cy.get('#autocompletePredicateField');
437
- }
438
-
439
- static enterSearchPredicate(text) {
440
- this.getSearchPredicateInput().type(text);
441
- }
442
-
443
- static getSearchPredicateTags() {
444
- return this.getSearchPredicateInput().find('.tag-item');
445
- }
446
-
447
435
  static toggleAutocompleteSearchPanel() {
448
436
  cy.get('.extraction-method-toggle .panel-toggle-link .toggle-icon').click();
449
437
  }
@@ -456,6 +444,14 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
456
444
  this.getSuggestionsList().eq(index).click();
457
445
  }
458
446
 
447
+ static getAutocompleteDisabledMessage() {
448
+ return cy.get('.autocomplete-disabled-message');
449
+ }
450
+
451
+ static clickOnEnableFTSSearch() {
452
+ this.getAutocompleteDisabledMessage().find('a').click();
453
+ }
454
+
459
455
  // System instructions
460
456
 
461
457
  static getSystemInstructionsFormGroup() {