graphdb-workbench-tests 3.4.0-TR4 → 3.4.0-TR6

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 (365) hide show
  1. package/.editorconfig +17 -0
  2. package/.nycrc +10 -0
  3. package/cypress-flaky.config.js +20 -6
  4. package/cypress-legacy.config.js +47 -0
  5. package/cypress-security.config.js +36 -0
  6. package/cypress.config.js +45 -6
  7. package/{integration-flaky → e2e-flaky}/explore/visual.graph.spec.js +4 -1
  8. package/{integration-flaky → e2e-flaky}/import/import-server-files-operations.spec.js +2 -2
  9. package/{integration-flaky → e2e-flaky}/import/import-user-data-batch-operations.spec.js +3 -3
  10. package/e2e-flaky/import/import-user-data-url.spec.js +63 -0
  11. package/{integration-flaky → e2e-flaky}/setup/sparql-template-create.js +10 -18
  12. package/{integration-flaky → e2e-flaky}/sparql-editor/actions/execute-update-query.spec.js +2 -12
  13. package/{integration-flaky → e2e-flaky}/sparql-editor/actions/share-query.spec.js +1 -7
  14. package/{integration-flaky → e2e-flaky}/sparql-editor/yasr/table-plugin.spec.js +3 -7
  15. package/{integration → e2e-legacy}/cluster/cluster-states.spec.js +3 -3
  16. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.spec.js +42 -0
  17. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.spec.js +43 -0
  18. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.spec.js +30 -0
  19. package/{integration/explore → e2e-legacy/explore/class-hierarchy}/class.hierarchy.spec.js +1 -1
  20. package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js +42 -0
  21. package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js +39 -0
  22. package/e2e-legacy/explore/class-relationships/class-relationships-without-selected-repository.spec.js +21 -0
  23. package/{integration/explore/class.relationships.spec.js → e2e-legacy/explore/class-relationships/class-relationships.spec.js} +20 -50
  24. package/{integration/explore → e2e-legacy/explore/graphs-overview}/graphs.overview.spec.js +4 -4
  25. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-with-selected-repository.spec.js +44 -0
  26. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-without-selected-repository.spec.js +32 -0
  27. package/e2e-legacy/explore/similarity-index/similarity-index-with-repository.spec.js +38 -0
  28. package/e2e-legacy/explore/similarity-index/similarity-index-without-repository.spec.js +21 -0
  29. package/{integration → e2e-legacy}/explore/visual-graph/graphs-config.spec.js +5 -10
  30. package/e2e-legacy/explore/visual-graph/node-info-panel.spec.js +58 -0
  31. package/e2e-legacy/explore/visual-graph/visual-graph-links-limit.spec.js +142 -0
  32. package/{integration → e2e-legacy}/explore/visual-graph/visual-graph-node-labels.spec.js +14 -2
  33. package/e2e-legacy/explore/visual-graph/visual-graph-with-selected-repository.js +38 -0
  34. package/e2e-legacy/explore/visual-graph/visual-graph-without-selected-repository.js +21 -0
  35. package/{integration → e2e-legacy}/explore/visual-graph/visual.graph.spec.js +75 -96
  36. package/{integration → e2e-legacy}/graphql/create-graphql-endpoint.spec.js +0 -2
  37. package/{integration → e2e-legacy}/graphql/edit-graphql-enpoint.spec.js +1 -1
  38. package/{integration → e2e-legacy}/graphql/filter-graphql-endpoints-on-management-view.spec.js +1 -1
  39. package/{integration → e2e-legacy}/graphql/graphql-endpoint-management-view.spec.js +4 -4
  40. package/e2e-legacy/graphql/graphql-endpoint-management-with-endpoints.spec.js +43 -0
  41. package/e2e-legacy/graphql/graphql-endpoint-management-with-selected-repository.spec.js +39 -0
  42. package/e2e-legacy/graphql/graphql-endpoint-management-without-selected-repository.spec.js +21 -0
  43. package/e2e-legacy/graphql/graphql-playground-with-endpoints.spec.js +40 -0
  44. package/e2e-legacy/graphql/graphql-playground-with-selected-repository.spec.js +38 -0
  45. package/e2e-legacy/graphql/graphql-playground-without-selected-repository.spec.js +22 -0
  46. package/{integration → e2e-legacy}/graphql/graphql-playground.spec.js +1 -1
  47. package/e2e-legacy/graphql/graphql-theme.spec.js +73 -0
  48. package/{integration → e2e-legacy}/graphql/import-graphql-endpoint-definitions.spec.js +0 -6
  49. package/e2e-legacy/guides/autocomplete/enable-autocomplete-guide.spec.js +49 -0
  50. package/e2e-legacy/guides/class-hierarcy/class-hierarchy-guide.spec.js +89 -0
  51. package/e2e-legacy/guides/class-relations/class-relations-guide.spec.js +76 -0
  52. package/e2e-legacy/guides/connectors/connectors-guide.spec.js +163 -0
  53. package/e2e-legacy/guides/create-similarity-index/create-similarity-index-guide.spec.js +74 -0
  54. package/e2e-legacy/guides/download-guide-resource/download-guide-resource-guide.js +55 -0
  55. package/e2e-legacy/guides/execute-sparql-query/execute-sparql-query-guide.spec.js +92 -0
  56. package/e2e-legacy/guides/import-rdf-file/confirm-duplicate-rdf-file.spec.js +63 -0
  57. package/e2e-legacy/guides/import-rdf-file/import-rdf-file.spec.js +105 -0
  58. package/e2e-legacy/guides/main-menu/main-menu-guide.spec.js +302 -0
  59. package/e2e-legacy/guides/navigation/navigation-guide.spec.js +64 -0
  60. package/e2e-legacy/guides/rdf-rank/rdf-rank-guide.spec.js +42 -0
  61. package/e2e-legacy/guides/repositories/create-repository-guide.spec.js +69 -0
  62. package/e2e-legacy/guides/table-graph-explore/table-graph-explore-guide.spec.js +168 -0
  63. package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +158 -0
  64. package/e2e-legacy/guides/ttyg/conversation/ttyg-conversation-guide.spec.js +92 -0
  65. package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +88 -0
  66. package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +372 -0
  67. package/e2e-legacy/guides/welcome/welcome-guide.spec.js +36 -0
  68. package/e2e-legacy/help/guides/guides-autostart.spec.js +126 -0
  69. package/e2e-legacy/help/guides/guides-confirm-cancel-dialog.js +83 -0
  70. package/e2e-legacy/help/guides/guides-with-repository.spec.js +32 -0
  71. package/e2e-legacy/help/guides/guides-without-repository.spec.js +20 -0
  72. package/e2e-legacy/help/guides/movies-interactive-guide.spec.js +71 -0
  73. package/{integration/guides/star-wars-interactive-guide.js → e2e-legacy/help/guides/star-wars-interactive-guide.spec.js} +3 -2
  74. package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-with-repository.spec.js +32 -0
  75. package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-without-repository.spec.js +20 -0
  76. package/e2e-legacy/help/system-information/system-information-with-repository.spec.js +32 -0
  77. package/e2e-legacy/help/system-information/system-information-without-repository.spec.js +20 -0
  78. package/e2e-legacy/home/cookie-policy/cookie-policy.spec.js +182 -0
  79. package/e2e-legacy/home/documentation-link.spec.js +41 -0
  80. package/{integration → e2e-legacy}/home/google-analytics.spec.js +4 -6
  81. package/e2e-legacy/home/home-page-with-selected-repository.spec.js +69 -0
  82. package/e2e-legacy/home/home-page-without-repositories.spec.js +87 -0
  83. package/e2e-legacy/home/home-page-without-selected-repository.spec.js +59 -0
  84. package/{integration → e2e-legacy}/home/language-change.spec.js +2 -2
  85. package/e2e-legacy/home/rdf-resource-search.spec.js +160 -0
  86. package/e2e-legacy/home/view-resource-autocomplete.spec.js +65 -0
  87. package/{integration → e2e-legacy}/import/import-server-files.spec.js +5 -3
  88. package/{integration → e2e-legacy}/import/import-user-data-file-upload.spec.js +19 -13
  89. package/{integration → e2e-legacy}/import/import-user-data-text-snippet.spec.js +0 -2
  90. package/{integration → e2e-legacy}/import/import-user-data-url.spec.js +0 -23
  91. package/{integration → e2e-legacy}/import/import-user-data.spec.js +11 -4
  92. package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +51 -0
  93. package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +45 -0
  94. package/e2e-legacy/import/initial-state/import-page-without-selected-repository.spec.js +28 -0
  95. package/e2e-legacy/license/license-with-repository.spec.js +113 -0
  96. package/e2e-legacy/license/license-without-repository.spec.js +103 -0
  97. package/{integration → e2e-legacy}/license/license.spec.js +4 -4
  98. package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-with-repository.spec.js +36 -0
  99. package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-without-repository.spec.js +25 -0
  100. package/{integration/monitor/monitor.backup-and-restore.spec.js → e2e-legacy/monitor/backup-and-restore/backup-and-restore.spec.js} +2 -2
  101. package/{integration → e2e-legacy}/monitor/global-operation-statuses-component.spec.js +12 -5
  102. package/e2e-legacy/monitor/query-and-updates/queries-and-updates-with-repository.spec.js +39 -0
  103. package/e2e-legacy/monitor/query-and-updates/queries-and-updates-without-repository.spec.js +21 -0
  104. package/{integration/monitor → e2e-legacy/monitor/system}/monitor.resources.spec.js +3 -2
  105. package/e2e-legacy/monitor/system/system-monitoring-with-repository.spec.js +32 -0
  106. package/e2e-legacy/monitor/system/system-monitoring-without-repository.spec.js +20 -0
  107. package/e2e-legacy/not-found/not-found.spec.js +23 -0
  108. package/{integration → e2e-legacy}/repository/ontop-repository.spec.js +1 -1
  109. package/{integration → e2e-legacy}/repository/repositories.spec.js +37 -45
  110. package/e2e-legacy/repository/url-with-repository-id-parameter.spec.js +181 -0
  111. package/{integration → e2e-legacy}/resource/resource.spec.js +50 -20
  112. package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +84 -0
  113. package/e2e-legacy/setup/aclmanagement/acl-management-without-repositories.spec.js +21 -0
  114. package/{integration → e2e-legacy}/setup/aclmanagement/create-rule.spec.js +4 -0
  115. package/e2e-legacy/setup/autocomplete/autocomplete-with-repository.spec.js +40 -0
  116. package/e2e-legacy/setup/autocomplete/autocomplete-without-repository.spec.js +27 -0
  117. package/{integration/setup → e2e-legacy/setup/autocomplete}/autocomplete.spec.js +6 -7
  118. package/e2e-legacy/setup/cluster/cluster-initial-state-with-cluster.spec.js +34 -0
  119. package/e2e-legacy/setup/cluster/cluster-initial-state-without-cluster.spec.js +25 -0
  120. package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +41 -0
  121. package/e2e-legacy/setup/connectors/connectors-initial-state-without-repositories.spec.js +21 -0
  122. package/{integration → e2e-legacy}/setup/connectors-lucene.spec.js +26 -10
  123. package/{integration → e2e-legacy}/setup/jdbc/jdbc-create.spec.js +4 -4
  124. package/e2e-legacy/setup/jdbc/jdbc-with-repository.spec.js +39 -0
  125. package/e2e-legacy/setup/jdbc/jdbc-without-repository.spec.js +27 -0
  126. package/e2e-legacy/setup/namespaces/namespaces-with-repository.spec.js +44 -0
  127. package/e2e-legacy/setup/namespaces/namespaces-without-repository.spec.js +27 -0
  128. package/{integration/setup → e2e-legacy/setup/namespaces}/namespaces.spec.js +6 -5
  129. package/e2e-legacy/setup/plugins/plugins-with-repository.spec.js +38 -0
  130. package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +28 -0
  131. package/{integration/setup → e2e-legacy/setup/plugins}/plugins.spec.js +3 -3
  132. package/e2e-legacy/setup/rdf-rank/rdf-rank-with-repository.spec.js +40 -0
  133. package/e2e-legacy/setup/rdf-rank/rdf-rank-without-repository.spec.js +30 -0
  134. package/{integration/setup → e2e-legacy/setup/rdf-rank}/rdf-rank.spec.js +3 -5
  135. package/e2e-legacy/setup/repositories/repositories-view-with-repositories.spec.js +40 -0
  136. package/e2e-legacy/setup/repositories/repositories-view-without-repositories.spec.js +28 -0
  137. package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +86 -0
  138. package/e2e-legacy/setup/settings/my-settings.spec.js +207 -0
  139. package/{integration/setup/sparql-template-create.js → e2e-legacy/setup/sparql-template/sparql-template-create.spec.js} +16 -8
  140. package/e2e-legacy/setup/sparql-template/sparql-template-with-repository.spec.js +39 -0
  141. package/e2e-legacy/setup/sparql-template/sparql-template-without-repository.spec.js +29 -0
  142. package/{integration/setup → e2e-legacy/setup/sparql-template}/sparql-templates.spec.js +4 -4
  143. package/{integration/setup → e2e-legacy/setup/users-and-access}/user-and-access.spec.js +184 -87
  144. package/e2e-legacy/setup/users-and-access/users-and-access-initial-state.spec.js +25 -0
  145. package/{integration → e2e-legacy}/sparql-editor/actions/expand-results-over-sameas.spec.js +12 -12
  146. package/{integration → e2e-legacy}/sparql-editor/actions/include-inferred-statements.spec.js +6 -6
  147. package/{integration → e2e-legacy}/sparql-editor/actions/inferred-sameas.spec.js +10 -8
  148. package/{integration → e2e-legacy}/sparql-editor/actions/show-saved-queries.spec.js +1 -6
  149. package/{integration → e2e-legacy}/sparql-editor/saved-query/abort-query.spec.js +1 -1
  150. package/{integration → e2e-legacy}/sparql-editor/saved-query/edit-query.spec.js +3 -3
  151. package/{integration → e2e-legacy}/sparql-editor/saved-query/readonly-query.spec.js +15 -24
  152. package/{integration → e2e-legacy}/sparql-editor/saved-query/share-query.spec.js +32 -1
  153. package/e2e-legacy/sparql-editor/sparql-page-with-selected-repository.spec.js +33 -0
  154. package/e2e-legacy/sparql-editor/sparql-page-without-selected-repository.spec.js +26 -0
  155. package/{integration → e2e-legacy}/sparql-editor/yasgui-tabs.spec.js +2 -12
  156. package/e2e-legacy/sparql-editor/yasqe-themes.spec.js +54 -0
  157. package/{integration → e2e-legacy}/sparql-editor/yasr/pagination.spec.js +5 -18
  158. package/{integration → e2e-legacy}/sparql-editor/yasr/table-plugin.spec.js +1 -6
  159. package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +106 -0
  160. package/e2e-legacy/sparql-editor/yasr/yasr.spec.js +80 -0
  161. package/{integration → e2e-legacy}/ttyg/agent-list.spec.js +53 -2
  162. package/{integration → e2e-legacy}/ttyg/agent-select-menu.spec.js +25 -2
  163. package/{integration → e2e-legacy}/ttyg/chat-list.spec.js +3 -14
  164. package/{integration → e2e-legacy}/ttyg/chat-panel.spec.js +74 -6
  165. package/{integration → e2e-legacy}/ttyg/clone-agent.spec.js +24 -2
  166. package/{integration → e2e-legacy}/ttyg/create-agent.spec.js +37 -66
  167. package/{integration → e2e-legacy}/ttyg/create-chat.spec.js +6 -4
  168. package/{integration → e2e-legacy}/ttyg/delete-agent.spec.js +1 -2
  169. package/e2e-legacy/ttyg/edit-agent.spec.js +178 -0
  170. package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +46 -0
  171. package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +45 -0
  172. package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +21 -0
  173. package/{integration-flaky → e2e-legacy}/ttyg/ttyg-permission.spec.js +23 -17
  174. package/{integration → e2e-legacy}/ttyg/ttyg-view.spec.js +2 -2
  175. package/e2e-security/repository/url-with-repository-id-parameter.spec.js +57 -0
  176. package/e2e-security/setup/home/cookie-policy.spec.js +290 -0
  177. package/e2e-security/setup/users-and-access/create-user-permissions.spec.js +193 -0
  178. package/e2e-security/setup/users-and-access/graphql-user.spec.js +126 -0
  179. package/e2e-security/setup/users-and-access/repo-admin-role.spec.js +70 -0
  180. package/e2e-security/setup/users-and-access/turn-on-security-and-password-change.spec.js +99 -0
  181. package/e2e-security/setup/users-and-access/user-and-access.spec.js +87 -0
  182. package/e2e-security/setup/users-and-access/users-and-access-initial-state.spec.js +38 -0
  183. package/eslint.config.js +39 -0
  184. package/fixtures/graph/graph-configurations.json +59 -0
  185. package/fixtures/guides/autocomplete/enable-autocomplete-guide.json +12 -0
  186. package/fixtures/guides/class-hierarchy/class-hierarchy-guide.json +35 -0
  187. package/fixtures/guides/class-relations/class-relations-guide.json +33 -0
  188. package/fixtures/guides/confirm-cancel-dialog/confirm-cancel-dialog-guide.json +15 -0
  189. package/fixtures/guides/connectors/connectors-guide.json +66 -0
  190. package/fixtures/guides/connectors/lucene-connector-guide.json +120 -0
  191. package/fixtures/guides/create-repository/create-repository-guide.json +25 -0
  192. package/fixtures/guides/create-similarity-index/create-similarity-index-guide.json +36 -0
  193. package/fixtures/guides/download-guide-resource/download-guide-resource-guide.json +25 -0
  194. package/fixtures/guides/download-resource.ttl +629 -0
  195. package/fixtures/guides/execute-sparql-query/execute-sparql-query-guide.json +54 -0
  196. package/fixtures/guides/import-rdf-file/confirm-duplicate-rdf-file-guide.json +30 -0
  197. package/fixtures/guides/import-rdf-file/import-rdf-file-guide.json +21 -0
  198. package/fixtures/guides/main-menu/main-menu-guide.json +98 -0
  199. package/fixtures/guides/navigation/navigation-guide.json +60 -0
  200. package/fixtures/guides/rdf-rank/rdf-rank-guide.json +18 -0
  201. package/fixtures/guides/table-graph-explore/table-graph-explore-guide.json +51 -0
  202. package/fixtures/guides/table-graph-explore/table-graph-explore-without-substeps-guide.json +25 -0
  203. package/fixtures/guides/ttyg/configure-agent/configure-ttyg-agent-guide.json +74 -0
  204. package/fixtures/guides/ttyg/conversation/ttyg-conversation-guide.json +26 -0
  205. package/fixtures/guides/ttyg/edit-ttyg-agent/edit-ttyg-agent-guide.json +22 -0
  206. package/fixtures/guides/visual-graph/visual-graph-config-guide.json +39 -0
  207. package/fixtures/guides/visual-graph/visual-graph-guide.json +85 -0
  208. package/fixtures/guides/welcome/welcome-guide.json +18 -0
  209. package/fixtures/repositories/free-access.json +13 -0
  210. package/fixtures/similarity/get-ttyg-similarity-instances.json +10 -0
  211. package/fixtures/ttyg/agent/get-agent-defaults-assistant-api.json +44 -0
  212. package/fixtures/ttyg/agent/get-agent-defaults.json +9 -2
  213. package/fixtures/ttyg/agent/get-agent-list-with-incompatible-agents.json +79 -0
  214. package/fixtures/ttyg/agent/get-similarity-indexes-for-another-repo.json +8 -0
  215. package/fixtures/ttyg/agent/get-similarity-indexes.json +22 -0
  216. package/fixtures/ttyg/chats/ask-question-cancel.json +12 -0
  217. package/fixtures/ttyg/chats/ask-question.json +12 -2
  218. package/fixtures/ttyg/chats/cancel-question-response.json +1 -0
  219. package/fixtures/ttyg/chats/create/create-chat-response.json +10 -14
  220. package/fixtures/ttyg/chats/create/question-response-after-chat-creation.json +29 -0
  221. package/fixtures/ttyg/chats/explain-response-1.json +2 -48
  222. package/fixtures/ttyg/chats/explain-response-3.json +12 -0
  223. package/fixtures/ttyg/chats/get-chat.json +6 -1
  224. package/npm-shrinkwrap.json +11004 -3815
  225. package/package.json +58 -42
  226. package/plugins/index.js +10 -5
  227. package/steps/application-steps.js +8 -6
  228. package/steps/base-steps.js +29 -0
  229. package/steps/class-views-steps.js +35 -7
  230. package/steps/cluster/cluster-page-steps.js +12 -2
  231. package/steps/cookie-policy/cookie-consent-banner-steps.js +21 -0
  232. package/steps/cookie-policy/cookie-policy-modal.steps.js +56 -0
  233. package/steps/error-page-steps.js +9 -0
  234. package/steps/error-steps.js +15 -3
  235. package/steps/explore/class-relationships-steps.js +64 -0
  236. package/steps/explore/graphs-overview-steps.js +21 -1
  237. package/steps/explore/similarity-index-create-steps.js +5 -3
  238. package/steps/explore/similarity-indexes-steps.js +16 -2
  239. package/steps/graphql/graphql-endpoint-management-steps.js +2 -2
  240. package/steps/graphql/playground-editor-steps.js +46 -0
  241. package/steps/guides/guide-dialog-steps.js +81 -2
  242. package/steps/guides/guide-steps.js +54 -2
  243. package/steps/guides/movies-guide-steps.js +2 -1
  244. package/steps/header-steps.js +22 -0
  245. package/steps/home-steps.js +184 -77
  246. package/steps/import/import-resource-message-dialog.js +1 -1
  247. package/steps/import/import-steps.js +12 -16
  248. package/steps/import/import-user-data-steps.js +5 -1
  249. package/steps/language-selector-steps.js +2 -2
  250. package/steps/license-steps.js +91 -9
  251. package/steps/login-steps.js +31 -6
  252. package/steps/main-menu-steps.js +244 -19
  253. package/steps/modal-dialog-steps.js +32 -1
  254. package/steps/monitoring/backup-and-restore-steps.js +9 -3
  255. package/steps/monitoring/queries-and-updates-steps.js +20 -0
  256. package/steps/monitoring/system-monitoring-steps.js +40 -0
  257. package/steps/not-found/not-found-steps.js +23 -0
  258. package/steps/operations-statuses-component-steps.js +5 -10
  259. package/steps/rdf-resource-search-steps.js +55 -0
  260. package/steps/repository-selector-steps.js +3 -3
  261. package/steps/repository-steps.js +88 -18
  262. package/steps/resource/resource-steps.js +6 -10
  263. package/steps/rest-api-documentation-steps.js +15 -0
  264. package/steps/setup/acl-management-steps.js +18 -2
  265. package/steps/setup/autocomplete-steps.js +23 -8
  266. package/steps/setup/connectors-steps.js +32 -0
  267. package/steps/setup/jdbc-steps.js +18 -4
  268. package/steps/setup/namespace-steps.js +10 -7
  269. package/steps/setup/plugins-steps.js +12 -5
  270. package/steps/setup/rdf-rank-steps.js +23 -9
  271. package/steps/setup/settings-steps.js +101 -2
  272. package/steps/setup/sparql-templates-steps.js +19 -1
  273. package/steps/setup/user-and-access-steps.js +50 -16
  274. package/steps/shared-modal-dialog-steps.js +45 -0
  275. package/steps/sparql-editor-steps.js +21 -2
  276. package/steps/sparql-steps.js +13 -1
  277. package/steps/system-information-steps.js +70 -0
  278. package/steps/toaster-steps.js +18 -6
  279. package/steps/ttyg/chat-panel-steps.js +40 -2
  280. package/steps/ttyg/ttyg-agent-settings-modal.steps.js +136 -31
  281. package/steps/ttyg/ttyg-view-steps.js +80 -10
  282. package/steps/visual-graph-split-button-steps.js +45 -0
  283. package/steps/visual-graph-steps.js +106 -10
  284. package/steps/widgets/active-repository-widget-steps.js +29 -0
  285. package/steps/widgets/license-widget-steps.js +9 -0
  286. package/steps/widgets/repository-errors-widget-steps.js +21 -0
  287. package/steps/widgets/saved-sparql-queries-widget-steps.js +9 -0
  288. package/steps/yasgui/yasgui-loader.js +3 -3
  289. package/steps/yasgui/yasgui-steps.js +1 -1
  290. package/steps/yasgui/yasqe-steps.js +35 -4
  291. package/steps/yasgui/yasr-steps.js +35 -5
  292. package/stubs/autocomplete/autocomplete-stubs.js +7 -0
  293. package/stubs/browser-stubs.js +21 -0
  294. package/stubs/environment-stubs.js +9 -1
  295. package/stubs/graph-config-stubs.js +17 -0
  296. package/stubs/guides/guides-stubs.js +103 -0
  297. package/stubs/license-stubs.js +51 -0
  298. package/stubs/repositories/repositories-stubs.js +180 -75
  299. package/stubs/saved-queries-stubs.js +5 -0
  300. package/stubs/security-stubs.js +12 -0
  301. package/stubs/similarity-index-stubs.js +4 -0
  302. package/stubs/sparql-stubs.js +10 -0
  303. package/stubs/ttyg/ttyg-stubs.js +64 -15
  304. package/stubs/yasgui/query-stubs.js +5 -1
  305. package/support/commands.js +22 -1
  306. package/support/connector-commands.js +13 -0
  307. package/support/e2e-security.js +9 -0
  308. package/support/{index.js → e2e.js} +9 -3
  309. package/support/repository-commands.js +29 -4
  310. package/support/settings-commands.js +33 -1
  311. package/support/url-commands.js +13 -0
  312. package/support/user-commands.js +9 -4
  313. package/utils/html-util.js +24 -4
  314. package/Dockerfile +0 -11
  315. package/fixtures/locale-en.json +0 -3342
  316. package/integration/explore/similarity-index/similarity-index-create.spec.js +0 -333
  317. package/integration/explore/similarity-index/similarity-index.spec.js +0 -88
  318. package/integration/explore/similarity-index/similarity.spec.js +0 -628
  319. package/integration/guides/movies-interactive-guide.spec.js +0 -73
  320. package/integration/home/cookie-policy.spec.js +0 -90
  321. package/integration/home/documentation-link.spec.js +0 -60
  322. package/integration/home/language-selector.spec.js +0 -19
  323. package/integration/home/rdf-resource-search.spec.js +0 -177
  324. package/integration/home/view-resource-autocomplete.spec.js +0 -52
  325. package/integration/home/workbench.home.spec.js +0 -30
  326. package/integration/monitor/monitor.queries.spec.js +0 -31
  327. package/integration/setup/my-settings.spec.js +0 -289
  328. package/integration/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +0 -57
  329. package/integration/ttyg/edit-agent.spec.js +0 -99
  330. package/integration-flaky/setup/users-and-access/security-and-free-access.spec.js +0 -54
  331. package/stubs/repositories-stub.js +0 -73
  332. package/{integration-flaky → e2e-flaky}/import/import.server.files.spec.js +0 -0
  333. package/{integration-flaky → e2e-flaky}/sparql-editor/lucene-connector.spec.js +0 -0
  334. package/{integration-flaky → e2e-flaky}/sparql-editor/plugins/error-plugin.spec.js +0 -0
  335. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +0 -0
  336. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +0 -0
  337. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
  338. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration.spec.js +0 -0
  339. package/{integration → e2e-legacy}/cluster/cluster-legend.spec.js +0 -0
  340. package/{integration → e2e-legacy}/cluster/edit-cluster-nodes-modal.spec.js +0 -0
  341. package/{integration → e2e-legacy}/graphql/activate-deactivate-graphql-endpoint.spec.js +0 -0
  342. package/{integration → e2e-legacy}/graphql/delete-graphql-endpoint.spec.js +0 -0
  343. package/{integration → e2e-legacy}/graphql/export-graphql-endpoint-definition.spec.js +0 -0
  344. package/{integration → e2e-legacy}/graphql/set-default-graphql-endpoint.spec.js +0 -0
  345. package/{integration/help → e2e-legacy/help/system-information}/system-information.spec.js +0 -0
  346. package/{integration → e2e-legacy}/home/create-repository.spec.js +0 -0
  347. package/{integration → e2e-legacy}/import/import-server-files-batch-operations.spec.js +0 -0
  348. package/{integration → e2e-legacy}/import/import-user-data-settings-dialog.spec.js +0 -0
  349. package/{integration → e2e-legacy}/import/import-view.spec.js +0 -0
  350. package/{integration → e2e-legacy}/repository/attach-remote-location.spec.js +1 -1
  351. /package/{integration → e2e-legacy}/repository/repository-commands.spec.js +0 -0
  352. /package/{integration → e2e-legacy}/setup/aclmanagement/delete-rule.spec.js +0 -0
  353. /package/{integration → e2e-legacy}/setup/aclmanagement/edit-rule.spec.js +0 -0
  354. /package/{integration → e2e-legacy}/setup/aclmanagement/render-rules.spec.js +0 -0
  355. /package/{integration → e2e-legacy}/setup/aclmanagement/reorder-rules.spec.js +0 -0
  356. /package/{integration → e2e-legacy}/setup/aclmanagement/revert-rules.spec.js +0 -0
  357. /package/{integration → e2e-legacy}/setup/aclmanagement/scopes.spec.js +0 -0
  358. /package/{integration → e2e-legacy}/setup/aclmanagement/update-rules.spec.js +0 -0
  359. /package/{integration → e2e-legacy}/setup/jdbc/jdbc.spec.js +0 -0
  360. /package/{integration → e2e-legacy}/sparql-editor/actions/execute-query.spec.js +0 -0
  361. /package/{integration → e2e-legacy}/sparql-editor/actions/save-query.spec.js +0 -0
  362. /package/{integration → e2e-legacy}/sparql-editor/internationalization.spec.js +0 -0
  363. /package/{integration → e2e-legacy}/sparql-editor/saved-query/delete-query.spec.js +0 -0
  364. /package/{integration → e2e-legacy}/sparql-editor/sparql-editor.spec.js +0 -0
  365. /package/{integration → e2e-legacy}/sparql-editor/yasr/download-as.spec.js +0 -0
package/.editorconfig ADDED
@@ -0,0 +1,17 @@
1
+ root = true
2
+
3
+ [*]
4
+
5
+ indent_style = space
6
+ indent_size = 4
7
+
8
+ end_of_line = lf
9
+ charset = utf-8
10
+ trim_trailing_whitespace = true
11
+ insert_final_newline = true
12
+
13
+ [*.md]
14
+ trim_trailing_whitespace = false
15
+
16
+ [*.txt]
17
+ insert_final_newline = false
package/.nycrc ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "temp-directory": "../.nyc_output",
3
+ "include": [
4
+ "packages/legacy-workbench/src/**/*.js"
5
+ ],
6
+ "exclude": [
7
+ "packages/root-config/**",
8
+ "packages/shared-components/**"
9
+ ]
10
+ }
@@ -1,21 +1,35 @@
1
- const {defineConfig} = require('cypress');
1
+ import { defineConfig } from 'cypress';
2
+ import setupPlugins from './plugins/index.js';
2
3
 
3
- module.exports = defineConfig({
4
+ export default defineConfig({
4
5
  projectId: 'v35btb',
5
6
  fixturesFolder: 'fixtures',
6
7
  screenshotsFolder: 'report/screenshots',
7
8
  videosFolder: 'report/videos',
8
9
  video: true,
9
- defaultCommandTimeout: 15000,
10
+ defaultCommandTimeout: 25000,
10
11
  numTestsKeptInMemory: 10,
12
+ viewportWidth: 1600,
13
+ viewportHeight: 1200,
11
14
  e2e: {
15
+ retries: {
16
+ runMode: 2,
17
+ openMode: 0
18
+ },
12
19
  // We've imported your old cypress plugins here.
13
20
  // You may want to clean this up later by importing these.
14
21
  setupNodeEvents(on, config) {
15
- return require('./plugins/index.js')(on, config);
22
+ return setupPlugins(on, config);
16
23
  },
17
24
  baseUrl: 'http://localhost:9000',
18
- specPattern: 'integration-flaky/**/*.{js,jsx,ts,tsx}',
19
- supportFile: 'support/index.js'
25
+ specPattern: 'e2e-flaky/**/*.{js,jsx,ts,tsx}',
26
+ supportFile: 'support/e2e.js',
27
+ reporter: 'cypress-multi-reporters',
28
+ reporterOptions: {
29
+ configFile: 'cypress-reporter-config.json'
30
+ }
31
+ },
32
+ env: {
33
+ set_default_user_data: true
20
34
  }
21
35
  });
@@ -0,0 +1,47 @@
1
+ import { defineConfig } from 'cypress';
2
+ import setupPlugins from './plugins/index.js';
3
+
4
+ const isCoverage = process.env.COVERAGE === 'true';
5
+
6
+ const loadCodeCoverage = async (on, config) => {
7
+ const mod = await import('@bahmutov/cypress-code-coverage/plugin');
8
+ const plugin = ('default' in mod) ? mod.default : mod;
9
+ plugin(on, config);
10
+ };
11
+
12
+ export default defineConfig({
13
+ projectId: 'v35btb',
14
+ fixturesFolder: 'fixtures',
15
+ screenshotsFolder: 'report/screenshots',
16
+ videosFolder: 'report/videos',
17
+ video: true,
18
+ defaultCommandTimeout: 25000,
19
+ numTestsKeptInMemory: 10,
20
+ viewportWidth: 1600,
21
+ viewportHeight: 1200,
22
+ e2e: {
23
+ retries: {
24
+ runMode: 2,
25
+ openMode: 0
26
+ },
27
+ // We've imported your old cypress plugins here.
28
+ // You may want to clean this up later by importing these.
29
+ async setupNodeEvents(on, config) {
30
+ setupPlugins(on, config);
31
+ if (isCoverage) {
32
+ await loadCodeCoverage(on, config);
33
+ }
34
+ return config;
35
+ },
36
+ baseUrl: 'http://localhost:9000',
37
+ specPattern: 'e2e-legacy/**/*.{js,jsx,ts,tsx}',
38
+ supportFile: 'support/e2e.js',
39
+ reporter: "cypress-multi-reporters",
40
+ reporterOptions: {
41
+ configFile: 'cypress-reporter-config.json'
42
+ }
43
+ },
44
+ env: {
45
+ set_default_user_data: true
46
+ }
47
+ });
@@ -0,0 +1,36 @@
1
+ import { defineConfig } from 'cypress';
2
+ import setupPlugins from './plugins/index.js';
3
+
4
+ export default defineConfig({
5
+ projectId: 'v35btb',
6
+ fixturesFolder: 'fixtures',
7
+ screenshotsFolder: 'report/screenshots',
8
+ videosFolder: 'report/videos',
9
+ video: true,
10
+ defaultCommandTimeout: 25000,
11
+ numTestsKeptInMemory: 10,
12
+ viewportWidth: 1600,
13
+ viewportHeight: 1200,
14
+ e2e: {
15
+ retries: {
16
+ runMode: 2,
17
+ openMode: 0
18
+ },
19
+ // We've imported your old cypress plugins here.
20
+ // You may want to clean this up later by importing these.
21
+ async setupNodeEvents(on, config) {
22
+ setupPlugins(on, config);
23
+ return config;
24
+ },
25
+ baseUrl: 'http://localhost:9000',
26
+ specPattern: 'e2e-security/**/*.{js,jsx,ts,tsx}',
27
+ supportFile: 'support/e2e-security.js',
28
+ reporter: "cypress-multi-reporters",
29
+ reporterOptions: {
30
+ configFile: 'cypress-reporter-config.json'
31
+ }
32
+ },
33
+ env: {
34
+ set_default_user_data: true
35
+ }
36
+ });
package/cypress.config.js CHANGED
@@ -1,13 +1,19 @@
1
- const {defineConfig} = require('cypress');
1
+ import { defineConfig } from 'cypress';
2
+ import setupPlugins from './plugins/index.js';
3
+ import webpackPreprocessor from '@cypress/webpack-preprocessor';
2
4
 
3
- module.exports = defineConfig({
5
+ export default defineConfig({
4
6
  projectId: 'v35btb',
5
7
  fixturesFolder: 'fixtures',
6
8
  screenshotsFolder: 'report/screenshots',
7
9
  videosFolder: 'report/videos',
8
10
  video: true,
9
- defaultCommandTimeout: 40000,
11
+ screenshotOnRunFailure: true,
12
+ trashAssetsBeforeRuns: true,
13
+ defaultCommandTimeout: 10000,
10
14
  numTestsKeptInMemory: 10,
15
+ viewportWidth: 1280,
16
+ viewportHeight: 720,
11
17
  e2e: {
12
18
  retries: {
13
19
  runMode: 2,
@@ -16,11 +22,44 @@ module.exports = defineConfig({
16
22
  // We've imported your old cypress plugins here.
17
23
  // You may want to clean this up later by importing these.
18
24
  setupNodeEvents(on, config) {
19
- return require('./plugins/index.js')(on, config);
25
+ on('file:preprocessor', webpackPreprocessor({
26
+ webpackOptions: {
27
+ resolve: {
28
+ extensions: ['.js', '.json'],
29
+ modules: ['node_modules', '.'],
30
+ fullySpecified: false,
31
+ alias: {
32
+ path: 'path-browserify'
33
+ },
34
+ fallback: {
35
+ // Provide empty mocks for Node.js core modules
36
+ path: false,
37
+ fs: false,
38
+ os: false,
39
+ crypto: false,
40
+ util: false,
41
+ buffer: false,
42
+ stream: false
43
+ }
44
+ },
45
+ module: {
46
+ rules: [
47
+ {
48
+ test: /\.js$/,
49
+ resolve: {
50
+ fullySpecified: false
51
+ }
52
+ }
53
+ ]
54
+ },
55
+ target: 'web',
56
+ }
57
+ }));
58
+ return setupPlugins(on, config);
20
59
  },
21
60
  baseUrl: 'http://localhost:9000',
22
- specPattern: 'integration/**/*.{js,jsx,ts,tsx}',
23
- supportFile: 'support/index.js',
61
+ specPattern: './**/*.js',
62
+ supportFile: 'support/e2e.js',
24
63
  reporter: "cypress-multi-reporters",
25
64
  reporterOptions: {
26
65
  configFile: 'cypress-reporter-config.json'
@@ -25,7 +25,10 @@ describe('Visual graph screen validation', () => {
25
25
  cy.presetRepository(repositoryId);
26
26
  });
27
27
 
28
- it('CRUD on saved graph', () => {
28
+ /**
29
+ * TODO: Fix me. Broken due to migration (Error: unknown)
30
+ */
31
+ it.skip('CRUD on saved graph', () => {
29
32
  const graphConfigName = 'MyGraphConfig_' + Date.now();
30
33
  const namedGraph = 'myGraph_' + Date.now();
31
34
  const renamedGraph = 'myRenamedGraph_' + Date.now();
@@ -1,7 +1,7 @@
1
1
  import {ImportServerFilesSteps} from "../../steps/import/import-server-files-steps";
2
2
  import {ImportSettingsDialogSteps} from "../../steps/import/import-settings-dialog-steps";
3
3
 
4
- describe('Import server files - Operations', {retries: {runMode: 2}}, () => {
4
+ describe('Import server files - Operations', () => {
5
5
 
6
6
  let repositoryId;
7
7
 
@@ -18,7 +18,7 @@ describe('Import server files - Operations', {retries: {runMode: 2}}, () => {
18
18
  repositoryId = 'server-import-' + Date.now();
19
19
  cy.createRepository({id: repositoryId});
20
20
  ImportServerFilesSteps.visitServerImport(repositoryId);
21
- ImportServerFilesSteps.getResources().should('have.length', 14);
21
+ ImportServerFilesSteps.getResources().should('have.length', 18);
22
22
  });
23
23
 
24
24
  afterEach(() => {
@@ -1,7 +1,7 @@
1
1
  import {ModalDialogSteps} from "../../steps/modal-dialog-steps";
2
2
  import {ImportSettingsDialogSteps} from "../../steps/import/import-settings-dialog-steps";
3
- import {MainMenuSteps} from "../../steps/main-menu-steps";
4
3
  import {ImportUserDataSteps} from "../../steps/import/import-user-data-steps";
4
+ import {HeaderSteps} from '../../steps/header-steps.js';
5
5
 
6
6
  const bnodes = `_:node0 <http://purl.org/dc/elements/1.1/title> "A new book" ;
7
7
  \t<http://purl.org/dc/elements/1.1/creator> "A.N.Other" .`;
@@ -14,7 +14,7 @@ const jsonld = JSON.stringify({
14
14
  "ab:email": "richard491@hotmail.com"
15
15
  });
16
16
 
17
- describe('Import user data: Batch operations', {retries: {runMode: 2}}, () => {
17
+ describe('Import user data: Batch operations', () => {
18
18
 
19
19
  let repositoryId;
20
20
  const testFiles = [
@@ -146,7 +146,7 @@ describe('Import user data: Batch operations', {retries: {runMode: 2}}, () => {
146
146
  ModalDialogSteps.clickOnConfirmButton();
147
147
  // Then the files should be deleted
148
148
  ImportUserDataSteps.getResources().should('have.length', 0);
149
- MainMenuSteps.openHomePage();
149
+ HeaderSteps.openHomePage();
150
150
  ImportUserDataSteps.visit();
151
151
  ImportUserDataSteps.getResources().should('have.length', 0);
152
152
  });
@@ -0,0 +1,63 @@
1
+ import {ImportUserDataSteps} from "../../steps/import/import-user-data-steps";
2
+ import {ImportSettingsDialogSteps} from "../../steps/import/import-settings-dialog-steps";
3
+
4
+ describe('Import user data: URL import', () => {
5
+
6
+ let repositoryId;
7
+
8
+ const IMPORT_URL = 'https://www.w3.org/TR/owl-guide/wine.rdf';
9
+ const JSONLD_FORMAT = 'JSON-LD';
10
+ const VALID_URL_RDF_FORMAT = 'RDF/XML';
11
+ const RDF_ERROR_MESSAGE = 'RDF Parse Error:';
12
+ const IMPORT_JSONLD_URL = 'https://example.com/0007-context.jsonld';
13
+
14
+ beforeEach(() => {
15
+ repositoryId = 'user-import-' + Date.now();
16
+ cy.createRepository({id: repositoryId});
17
+ ImportUserDataSteps.visitUserImport(repositoryId);
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.deleteRepository(repositoryId);
22
+ });
23
+
24
+ // Test fails because GDB waits for the import link to be resolved and since it is invalid it waits for a timeout, blocking all other requests
25
+ it('should import JSON-LD file via URL with correct request body', () => {
26
+ cy.intercept('GET', `/rest/repositories/${repositoryId}/import/upload`).as('upload');
27
+
28
+ ImportUserDataSteps.stubPostJSONLDFromURL(repositoryId);
29
+ ImportUserDataSteps.openImportURLDialog(IMPORT_JSONLD_URL);
30
+ ImportUserDataSteps.selectRDFFormat(JSONLD_FORMAT);
31
+ ImportUserDataSteps.clickImportUrlButton();
32
+ ImportSettingsDialogSteps.import();
33
+ cy.wait('@postJsonldUrl').then((xhr) => {
34
+ expect(xhr.request.body.name).to.eq('https://example.com/0007-context.jsonld');
35
+ expect(xhr.request.body.data).to.eq('https://example.com/0007-context.jsonld');
36
+ expect(xhr.request.body.type).to.eq('url');
37
+ expect(xhr.request.body.hasContextLink).to.be.true;
38
+ });
39
+ cy.waitUntil(() =>
40
+ cy.wait('@upload').then((xhr) => {
41
+ console.log(xhr.response.body)
42
+ return xhr.response.body[0]?.status === 'ERROR'
43
+ }), {timeout: 10000, interval: 1000}
44
+ )
45
+ });
46
+
47
+ it('should show error on invalid JSON-LD URL', () => {
48
+ cy.intercept('GET', `/rest/repositories/${repositoryId}/import/upload`).as('upload');
49
+
50
+ ImportUserDataSteps.stubPostJSONLDFromURL();
51
+ ImportUserDataSteps.openImportURLDialog(IMPORT_JSONLD_URL);
52
+ ImportUserDataSteps.selectRDFFormat(JSONLD_FORMAT);
53
+ ImportUserDataSteps.clickImportUrlButton();
54
+ ImportSettingsDialogSteps.import();
55
+ cy.waitUntil(() =>
56
+ cy.wait('@upload').then((xhr) => {
57
+ console.log(xhr.response.body)
58
+ return xhr.response.body[0]?.status === 'ERROR'
59
+ }), {timeout: 10000, interval: 1000}
60
+ )
61
+ ImportUserDataSteps.checkImportedResource(0, IMPORT_JSONLD_URL, 'https://example.com/0007-context.jsonld');
62
+ });
63
+ });
@@ -6,6 +6,7 @@ import {MainMenuSteps} from "../../steps/main-menu-steps";
6
6
  import {RepositorySelectorSteps} from "../../steps/repository-selector-steps";
7
7
  import {SparqlTemplatesSteps} from "../../steps/setup/sparql-templates-steps";
8
8
 
9
+ // TODO: Fix me. Broken due to migration (Error: beforeEach)
9
10
  describe('SPARQL create template', () => {
10
11
 
11
12
  let repositoryId;
@@ -25,12 +26,7 @@ describe('SPARQL create template', () => {
25
26
  cy.deleteRepository(secondRepositoryId);
26
27
  });
27
28
 
28
- it('should has error message described that query is invalid', {
29
- retries: {
30
- runMode: 1,
31
- openMode: 0
32
- }
33
- }, () => {
29
+ it('should has error message described that query is invalid', () => {
34
30
  // When I visit 'Sparql create template' view,
35
31
  // and fill valid template id.
36
32
  SparqlCreateUpdateSteps.typeTemplateId('http://test');
@@ -44,12 +40,10 @@ describe('SPARQL create template', () => {
44
40
  SparqlCreateUpdateSteps.getInvalidQueryElement().contains('Invalid query');
45
41
  });
46
42
 
47
- it('should display confirm dialog I am updating a sparql template and change the repository', {
48
- retries: {
49
- runMode: 1,
50
- openMode: 0
51
- }
52
- }, () => {
43
+ /**
44
+ * TODO: Fix me. Broken due to migration (Repository selector changed)
45
+ */
46
+ it.skip('should display confirm dialog I am updating a sparql template and change the repository', () => {
53
47
  // When I visit 'Sparql create template' view,
54
48
  // create a SPARQL template
55
49
  const templateId = 'http://' + Date.now();
@@ -112,12 +106,10 @@ describe('SPARQL create template', () => {
112
106
  RepositorySelectorSteps.getSelectedRepository().contains(repositoryId);
113
107
  });
114
108
 
115
- it('should confirm me before navigate when query is changed', {
116
- retries: {
117
- runMode: 1,
118
- openMode: 0
119
- }
120
- }, () => {
109
+ /**
110
+ * TODO: Fix me. Broken due to migration (Changes in main menu)
111
+ */
112
+ it.skip('should confirm me before navigate when query is changed', () => {
121
113
  // When I visit 'Sparql create template' view,
122
114
  // and change the query in ontotext-yasgui editor.
123
115
  // When I fill non update query (select for example).
@@ -22,12 +22,7 @@ describe('Execute of update query', () => {
22
22
  cy.deleteRepository(repositoryId);
23
23
  });
24
24
 
25
- it('should display properly result message info when insert 2 statements', {
26
- retries: {
27
- runMode: 1,
28
- openMode: 0
29
- }
30
- }, () => {
25
+ it('should display properly result message info when insert 2 statements', () => {
31
26
  // When I execute insert query which adds 2 results
32
27
  YasqeSteps.pasteQuery(
33
28
  'PREFIX : <http://bedrock/> ' +
@@ -56,12 +51,7 @@ describe('Execute of update query', () => {
56
51
  TablePluginSteps.getQueryResultInfo().contains('The number of statements did not change.');
57
52
  });
58
53
 
59
- it('should display result message info which describes that two statements are removed', {
60
- retries: {
61
- runMode: 1,
62
- openMode: 0
63
- }
64
- }, () => {
54
+ it('should display result message info which describes that two statements are removed', () => {
65
55
  // When I visit a page with "ontotext-yasgui-web-component" in it,
66
56
  // and selected repository has some inserted statements.
67
57
  YasqeSteps.pasteQuery(
@@ -47,13 +47,7 @@ describe('Share query', () => {
47
47
  ApplicationSteps.getSuccessNotifications().should('be.visible');
48
48
  });
49
49
 
50
- it('Should be able to open a share link in a new editor tab',
51
- {
52
- retries: {
53
- runMode: 1,
54
- openMode: 0
55
- }
56
- }, () => {
50
+ it('Should be able to open a share link in a new editor tab',() => {
57
51
  // Given I have opened the sparql editor
58
52
  YasguiSteps.getTabs().should('have.length', 1);
59
53
  // When I get the shareable link for current query
@@ -5,7 +5,8 @@ import {YasrSteps} from "../../../steps/yasgui/yasr-steps";
5
5
  import {ApplicationSteps} from "../../../steps/application-steps";
6
6
  import {TablePluginSteps} from "../../../steps/yasgui/table-plugin-steps";
7
7
 
8
- describe('Yasr Table plugin', () => {
8
+ //TODO: Fix me. Broken due to migration (Error: beforeEach)
9
+ describe.skip('Yasr Table plugin', () => {
9
10
  let repositoryId;
10
11
  beforeEach(() => {
11
12
  repositoryId = 'sparql-editor-' + Date.now();
@@ -34,12 +35,7 @@ describe('Yasr Table plugin', () => {
34
35
  YasrSteps.getCopyResourceLink(28, 2).should('be.visible');
35
36
  });
36
37
 
37
- it('Should be able to copy a link', {
38
- retries: {
39
- runMode: 1,
40
- openMode: 0
41
- }
42
- }, () => {
38
+ it('Should be able to copy a link', () => {
43
39
  // When I execute a query which returns results of type is uri.
44
40
  QueryStubs.stubDefaultQueryResponse();
45
41
  YasqeSteps.executeQuery();
@@ -104,14 +104,14 @@ describe('Cluster states', () => {
104
104
  ClusterViewSteps.getLink('pc-desktop-7300-pc-desktop-7302').should('have.css', 'stroke-dasharray', '10px, 10px')
105
105
  .and('have.css', 'marker-mid', 'url("#arrowhead_big")')
106
106
  .invoke('attr', 'stroke')
107
- .should('eq', 'var(--secondary-color)');
107
+ .should('eq', 'var(--gw-foreground-on-surface-primary)');
108
108
  // And I expect an out of sync link between the leader and the out of sync node (the one receiving the snapshot)
109
109
  ClusterViewSteps.getLink('pc-desktop-7301-pc-desktop-7300').should('have.css', 'stroke-dasharray', '10px, 10px')
110
110
  .invoke('attr', 'stroke')
111
- .should('eq', 'var(--gray-color)');
111
+ .should('eq', 'var(--gw-neutral-light)');
112
112
  // And I expect to have an in sync link between the leader and the node sending the snapshot
113
113
  ClusterViewSteps.getLink('pc-desktop-7301-pc-desktop-7302').should('have.css', 'stroke-dasharray', 'none')
114
114
  .invoke('attr', 'stroke')
115
- .should('eq', 'var(--secondary-color)');
115
+ .should('eq', 'var(--gw-foreground-on-surface-primary)');
116
116
  });
117
117
  });
@@ -0,0 +1,42 @@
1
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
2
+ import HomeSteps from "../../../steps/home-steps";
3
+ import {RepositoryErrorsWidgetSteps} from "../../../steps/widgets/repository-errors-widget-steps";
4
+ import ClassViewsSteps from "../../../steps/class-views-steps";
5
+
6
+ describe('Initial state of the Class hierarchy view with a selected repository and without class hierarchy', () => {
7
+
8
+ let repositoryId;
9
+
10
+ beforeEach(() => {
11
+ repositoryId = 'class-hierarchy-' + Date.now();
12
+ cy.createRepository({id: repositoryId});
13
+ cy.presetRepository(repositoryId);
14
+ });
15
+
16
+ afterEach(() => {
17
+ cy.deleteRepository(repositoryId);
18
+ });
19
+
20
+ it('Should display the correct initial state when navigating via URL', () => {
21
+ // When: I visit the Class hierarchy page via URL with a repository selected and without class hierarchy
22
+ ClassViewsSteps.visit();
23
+ // Then:
24
+ verifyInitialStateWithSelectedRepository();
25
+ });
26
+
27
+ it('Should display the correct initial state when navigating via the navigation bar', () => {
28
+ // When: I visit the Class hierarchy page via the navigation menu with a repository selected and without class hierarchy
29
+ HomeSteps.visit();
30
+ MainMenuSteps.clickOnClassHierarchy();
31
+ // Then:
32
+ verifyInitialStateWithSelectedRepository();
33
+ });
34
+
35
+ const verifyInitialStateWithSelectedRepository = () => {
36
+ RepositoryErrorsWidgetSteps.getWidget().should('be.hidden');
37
+ ClassViewsSteps.getNoHierarchyErrorElement().should('be.visible');
38
+ ClassViewsSteps.getToolbarHolder().should('be.hidden');
39
+ ClassViewsSteps.getSlider().should('be.hidden');
40
+ ClassViewsSteps.getRDFClassHierarchy().should('be.hidden');
41
+ };
42
+ });
@@ -0,0 +1,43 @@
1
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
2
+ import HomeSteps from "../../../steps/home-steps";
3
+ import {RepositoryErrorsWidgetSteps} from "../../../steps/widgets/repository-errors-widget-steps";
4
+ import ClassViewsSteps from "../../../steps/class-views-steps";
5
+
6
+ describe('Initial state of the Class hierarchy view with a selected repository', () => {
7
+ const FILE_TO_IMPORT = 'wine.rdf';
8
+ let repositoryId;
9
+
10
+ beforeEach(() => {
11
+ repositoryId = 'class-hierarchy-' + Date.now();
12
+ cy.createRepository({id: repositoryId});
13
+ cy.presetRepository(repositoryId);
14
+ cy.importServerFile(repositoryId, FILE_TO_IMPORT);
15
+ });
16
+
17
+ afterEach(() => {
18
+ cy.deleteRepository(repositoryId);
19
+ });
20
+
21
+ it('Should display the correct initial state when navigating via URL', () => {
22
+ // When: I visit the Class hierarchy page via URL with a repository selected
23
+ ClassViewsSteps.visit();
24
+ // Then:
25
+ verifyInitialStateWithSelectedRepository();
26
+ });
27
+
28
+ it('Should display the correct initial state when navigating via the navigation bar', () => {
29
+ // When: I visit the Class hierarchy page via the navigation menu with a repository selected
30
+ HomeSteps.visit();
31
+ MainMenuSteps.clickOnClassHierarchy();
32
+ // Then:
33
+ verifyInitialStateWithSelectedRepository();
34
+ });
35
+
36
+ const verifyInitialStateWithSelectedRepository = () => {
37
+ RepositoryErrorsWidgetSteps.getWidget().should('be.hidden');
38
+ ClassViewsSteps.getNoHierarchyErrorElement().should('be.hidden');
39
+ ClassViewsSteps.getToolbarHolder().should('be.visible');
40
+ ClassViewsSteps.getSlider().should('be.visible');
41
+ ClassViewsSteps.getRDFClassHierarchy().should('be.visible');
42
+ };
43
+ });
@@ -0,0 +1,30 @@
1
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
2
+ import HomeSteps from "../../../steps/home-steps";
3
+ import {RepositoryErrorsWidgetSteps} from "../../../steps/widgets/repository-errors-widget-steps";
4
+ import ClassViewsSteps from "../../../steps/class-views-steps";
5
+
6
+ describe('Initial state of the Class hierarchy view without a selected repository', () => {
7
+
8
+ it('Should display the correct initial state when navigating via URL', () => {
9
+ // When: I visit the Class hierarchy page via URL without a repository selected
10
+ ClassViewsSteps.visit();
11
+ // Then:
12
+ verifyInitialStateWithoutSelectedRepository();
13
+ });
14
+
15
+ it('Should display the correct initial state when navigating via the navigation bar', () => {
16
+ // When: I visit the Class hierarchy page via the navigation menu without a repository selected
17
+ HomeSteps.visit();
18
+ MainMenuSteps.clickOnClassHierarchy();
19
+ // Then:
20
+ verifyInitialStateWithoutSelectedRepository();
21
+ });
22
+
23
+ const verifyInitialStateWithoutSelectedRepository = () => {
24
+ RepositoryErrorsWidgetSteps.getWidget().should('be.visible');
25
+ ClassViewsSteps.getNoHierarchyErrorElement().should('be.hidden');
26
+ ClassViewsSteps.getToolbarHolder().should('be.hidden');
27
+ ClassViewsSteps.getSlider().should('be.hidden');
28
+ ClassViewsSteps.getRDFClassHierarchy().should('be.hidden');
29
+ };
30
+ });
@@ -1,4 +1,4 @@
1
- import ClassViewsSteps, {ALL_GRAPHS, GRAPH_FILE, NEWS_GRAPH} from "../../steps/class-views-steps";
1
+ import ClassViewsSteps, {ALL_GRAPHS, GRAPH_FILE, NEWS_GRAPH} from "../../../steps/class-views-steps";
2
2
 
3
3
  const INITIAL_CLASS_COUNT = 50;
4
4
  const CLASS_COUNT_OF_NEWS_GRAPH = 35;