graphdb-workbench-tests 3.4.0-TR2 → 3.4.0-TR4

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 (363) hide show
  1. package/Dockerfile +11 -0
  2. package/cypress-flaky.config.js +6 -20
  3. package/cypress.config.js +6 -45
  4. package/fixtures/locale-en.json +3342 -0
  5. package/fixtures/ttyg/agent/get-agent-defaults.json +2 -9
  6. package/fixtures/ttyg/chats/ask-question.json +2 -12
  7. package/fixtures/ttyg/chats/create/create-chat-response.json +14 -10
  8. package/fixtures/ttyg/chats/explain-response-1.json +48 -2
  9. package/fixtures/ttyg/chats/get-chat.json +1 -6
  10. package/{e2e-legacy → integration}/cluster/cluster-states.spec.js +3 -3
  11. package/{e2e-legacy/explore/class-hierarchy → integration/explore}/class.hierarchy.spec.js +1 -1
  12. package/{e2e-legacy/explore/class-relationships/class-relationships.spec.js → integration/explore/class.relationships.spec.js} +50 -20
  13. package/{e2e-legacy/explore/graphs-overview → integration/explore}/graphs.overview.spec.js +4 -4
  14. package/integration/explore/similarity-index/similarity-index-create.spec.js +333 -0
  15. package/integration/explore/similarity-index/similarity-index.spec.js +88 -0
  16. package/integration/explore/similarity-index/similarity.spec.js +628 -0
  17. package/{e2e-legacy → integration}/explore/visual-graph/graphs-config.spec.js +10 -5
  18. package/{e2e-legacy → integration}/explore/visual-graph/visual-graph-node-labels.spec.js +2 -14
  19. package/{e2e-legacy → integration}/explore/visual-graph/visual.graph.spec.js +96 -75
  20. package/{e2e-legacy → integration}/graphql/create-graphql-endpoint.spec.js +2 -0
  21. package/{e2e-legacy → integration}/graphql/edit-graphql-enpoint.spec.js +1 -1
  22. package/{e2e-legacy → integration}/graphql/filter-graphql-endpoints-on-management-view.spec.js +1 -1
  23. package/{e2e-legacy → integration}/graphql/graphql-endpoint-management-view.spec.js +4 -4
  24. package/{e2e-legacy → integration}/graphql/graphql-playground.spec.js +1 -1
  25. package/{e2e-legacy → integration}/graphql/import-graphql-endpoint-definitions.spec.js +6 -0
  26. package/integration/guides/movies-interactive-guide.spec.js +73 -0
  27. package/{e2e-legacy/help/guides/star-wars-interactive-guide.spec.js → integration/guides/star-wars-interactive-guide.js} +2 -3
  28. package/integration/home/cookie-policy.spec.js +90 -0
  29. package/integration/home/documentation-link.spec.js +60 -0
  30. package/{e2e-legacy → integration}/home/google-analytics.spec.js +6 -4
  31. package/{e2e-legacy → integration}/home/language-change.spec.js +2 -2
  32. package/integration/home/language-selector.spec.js +19 -0
  33. package/integration/home/rdf-resource-search.spec.js +177 -0
  34. package/integration/home/view-resource-autocomplete.spec.js +52 -0
  35. package/integration/home/workbench.home.spec.js +30 -0
  36. package/{e2e-legacy → integration}/import/import-server-files.spec.js +3 -5
  37. package/{e2e-legacy → integration}/import/import-user-data-file-upload.spec.js +13 -19
  38. package/{e2e-legacy → integration}/import/import-user-data-text-snippet.spec.js +2 -0
  39. package/{e2e-legacy → integration}/import/import-user-data-url.spec.js +23 -0
  40. package/{e2e-legacy → integration}/import/import-user-data.spec.js +4 -11
  41. package/{e2e-legacy → integration}/license/license.spec.js +4 -4
  42. package/{e2e-legacy → integration}/monitor/global-operation-statuses-component.spec.js +5 -12
  43. package/{e2e-legacy/monitor/backup-and-restore/backup-and-restore.spec.js → integration/monitor/monitor.backup-and-restore.spec.js} +2 -2
  44. package/integration/monitor/monitor.queries.spec.js +31 -0
  45. package/{e2e-legacy/monitor/system → integration/monitor}/monitor.resources.spec.js +2 -3
  46. package/{e2e-legacy → integration}/repository/ontop-repository.spec.js +1 -1
  47. package/{e2e-legacy → integration}/repository/repositories.spec.js +45 -37
  48. package/{e2e-legacy → integration}/resource/resource.spec.js +7 -17
  49. package/{e2e-legacy → integration}/setup/aclmanagement/create-rule.spec.js +0 -4
  50. package/{e2e-legacy/setup/autocomplete → integration/setup}/autocomplete.spec.js +7 -6
  51. package/{e2e-legacy → integration}/setup/connectors-lucene.spec.js +10 -26
  52. package/{e2e-legacy → integration}/setup/jdbc/jdbc-create.spec.js +4 -4
  53. package/integration/setup/my-settings.spec.js +289 -0
  54. package/{e2e-legacy/setup/namespaces → integration/setup}/namespaces.spec.js +5 -6
  55. package/{e2e-legacy/setup/plugins → integration/setup}/plugins.spec.js +3 -3
  56. package/{e2e-legacy/setup/rdf-rank → integration/setup}/rdf-rank.spec.js +5 -3
  57. package/{e2e-legacy/setup/sparql-template/sparql-template-create.spec.js → integration/setup/sparql-template-create.js} +8 -16
  58. package/{e2e-legacy/setup/sparql-template → integration/setup}/sparql-templates.spec.js +4 -4
  59. package/{e2e-legacy/setup/users-and-access → integration/setup}/user-and-access.spec.js +87 -184
  60. package/{e2e-legacy → integration}/sparql-editor/actions/expand-results-over-sameas.spec.js +12 -12
  61. package/{e2e-legacy → integration}/sparql-editor/actions/include-inferred-statements.spec.js +6 -6
  62. package/{e2e-legacy → integration}/sparql-editor/actions/inferred-sameas.spec.js +8 -10
  63. package/{e2e-legacy → integration}/sparql-editor/actions/show-saved-queries.spec.js +6 -1
  64. package/{e2e-legacy → integration}/sparql-editor/saved-query/abort-query.spec.js +1 -1
  65. package/{e2e-legacy → integration}/sparql-editor/saved-query/edit-query.spec.js +3 -3
  66. package/{e2e-legacy → integration}/sparql-editor/saved-query/readonly-query.spec.js +24 -15
  67. package/{e2e-legacy → integration}/sparql-editor/saved-query/share-query.spec.js +1 -32
  68. package/{e2e-legacy → integration}/sparql-editor/yasgui-tabs.spec.js +12 -2
  69. package/{e2e-legacy → integration}/sparql-editor/yasr/pagination.spec.js +18 -5
  70. package/{e2e-legacy → integration}/sparql-editor/yasr/table-plugin.spec.js +6 -1
  71. package/integration/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +57 -0
  72. package/{e2e-legacy → integration}/ttyg/agent-list.spec.js +2 -53
  73. package/{e2e-legacy → integration}/ttyg/agent-select-menu.spec.js +2 -25
  74. package/{e2e-legacy → integration}/ttyg/chat-list.spec.js +14 -3
  75. package/{e2e-legacy → integration}/ttyg/chat-panel.spec.js +6 -74
  76. package/{e2e-legacy → integration}/ttyg/clone-agent.spec.js +2 -24
  77. package/{e2e-legacy → integration}/ttyg/create-agent.spec.js +66 -37
  78. package/{e2e-legacy → integration}/ttyg/create-chat.spec.js +4 -6
  79. package/{e2e-legacy → integration}/ttyg/delete-agent.spec.js +2 -1
  80. package/integration/ttyg/edit-agent.spec.js +99 -0
  81. package/{e2e-legacy → integration}/ttyg/ttyg-view.spec.js +2 -2
  82. package/{e2e-flaky → integration-flaky}/explore/visual.graph.spec.js +1 -4
  83. package/{e2e-flaky → integration-flaky}/import/import-server-files-operations.spec.js +2 -2
  84. package/{e2e-flaky → integration-flaky}/import/import-user-data-batch-operations.spec.js +3 -3
  85. package/{e2e-flaky → integration-flaky}/setup/sparql-template-create.js +18 -10
  86. package/integration-flaky/setup/users-and-access/security-and-free-access.spec.js +54 -0
  87. package/{e2e-flaky → integration-flaky}/sparql-editor/actions/execute-update-query.spec.js +12 -2
  88. package/{e2e-flaky → integration-flaky}/sparql-editor/actions/share-query.spec.js +7 -1
  89. package/{e2e-flaky → integration-flaky}/sparql-editor/yasr/table-plugin.spec.js +7 -3
  90. package/{e2e-legacy → integration-flaky}/ttyg/ttyg-permission.spec.js +17 -23
  91. package/npm-shrinkwrap.json +3815 -11004
  92. package/package.json +42 -58
  93. package/plugins/index.js +5 -10
  94. package/steps/application-steps.js +6 -8
  95. package/steps/class-views-steps.js +7 -35
  96. package/steps/cluster/cluster-page-steps.js +2 -12
  97. package/steps/error-steps.js +3 -15
  98. package/steps/explore/graphs-overview-steps.js +1 -21
  99. package/steps/explore/similarity-index-create-steps.js +3 -5
  100. package/steps/explore/similarity-indexes-steps.js +2 -16
  101. package/steps/graphql/graphql-endpoint-management-steps.js +2 -2
  102. package/steps/guides/guide-dialog-steps.js +2 -81
  103. package/steps/guides/guide-steps.js +2 -54
  104. package/steps/home-steps.js +77 -184
  105. package/steps/import/import-resource-message-dialog.js +1 -1
  106. package/steps/import/import-steps.js +16 -12
  107. package/steps/import/import-user-data-steps.js +1 -5
  108. package/steps/language-selector-steps.js +2 -2
  109. package/steps/license-steps.js +9 -91
  110. package/steps/login-steps.js +6 -31
  111. package/steps/main-menu-steps.js +19 -244
  112. package/steps/modal-dialog-steps.js +1 -32
  113. package/steps/monitoring/backup-and-restore-steps.js +3 -9
  114. package/steps/operations-statuses-component-steps.js +10 -5
  115. package/steps/repository-selector-steps.js +3 -3
  116. package/steps/repository-steps.js +18 -64
  117. package/steps/resource/resource-steps.js +2 -6
  118. package/steps/setup/acl-management-steps.js +2 -6
  119. package/steps/setup/autocomplete-steps.js +8 -23
  120. package/steps/setup/jdbc-steps.js +4 -18
  121. package/steps/setup/namespace-steps.js +7 -10
  122. package/steps/setup/plugins-steps.js +5 -12
  123. package/steps/setup/rdf-rank-steps.js +9 -23
  124. package/steps/setup/settings-steps.js +2 -101
  125. package/steps/setup/sparql-templates-steps.js +1 -19
  126. package/steps/setup/user-and-access-steps.js +16 -50
  127. package/steps/sparql-editor-steps.js +2 -8
  128. package/steps/sparql-steps.js +1 -13
  129. package/steps/toaster-steps.js +6 -18
  130. package/steps/ttyg/chat-panel-steps.js +2 -40
  131. package/steps/ttyg/ttyg-agent-settings-modal.steps.js +31 -136
  132. package/steps/ttyg/ttyg-view-steps.js +10 -80
  133. package/steps/visual-graph-steps.js +10 -106
  134. package/steps/yasgui/yasgui-loader.js +3 -3
  135. package/steps/yasgui/yasgui-steps.js +1 -1
  136. package/steps/yasgui/yasqe-steps.js +4 -35
  137. package/steps/yasgui/yasr-steps.js +3 -73
  138. package/stubs/autocomplete/autocomplete-stubs.js +0 -7
  139. package/stubs/environment-stubs.js +1 -9
  140. package/stubs/license-stubs.js +0 -51
  141. package/stubs/repositories/repositories-stubs.js +75 -180
  142. package/stubs/repositories-stub.js +73 -0
  143. package/stubs/security-stubs.js +0 -12
  144. package/stubs/similarity-index-stubs.js +0 -4
  145. package/stubs/ttyg/ttyg-stubs.js +15 -64
  146. package/stubs/yasgui/query-stubs.js +1 -5
  147. package/support/commands.js +1 -22
  148. package/support/{e2e.js → index.js} +3 -9
  149. package/support/repository-commands.js +4 -29
  150. package/support/settings-commands.js +1 -33
  151. package/support/user-commands.js +4 -9
  152. package/utils/html-util.js +4 -24
  153. package/.editorconfig +0 -17
  154. package/.nycrc +0 -10
  155. package/cypress-legacy.config.js +0 -47
  156. package/cypress-security.config.js +0 -36
  157. package/e2e-flaky/import/import-user-data-url.spec.js +0 -63
  158. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.spec.js +0 -42
  159. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.spec.js +0 -43
  160. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.spec.js +0 -30
  161. package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js +0 -42
  162. package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js +0 -39
  163. package/e2e-legacy/explore/class-relationships/class-relationships-without-selected-repository.spec.js +0 -21
  164. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-with-selected-repository.spec.js +0 -44
  165. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-without-selected-repository.spec.js +0 -32
  166. package/e2e-legacy/explore/similarity-index/similarity-index-with-repository.spec.js +0 -38
  167. package/e2e-legacy/explore/similarity-index/similarity-index-without-repository.spec.js +0 -21
  168. package/e2e-legacy/explore/visual-graph/node-info-panel.spec.js +0 -58
  169. package/e2e-legacy/explore/visual-graph/visual-graph-links-limit.spec.js +0 -140
  170. package/e2e-legacy/explore/visual-graph/visual-graph-with-selected-repository.js +0 -38
  171. package/e2e-legacy/explore/visual-graph/visual-graph-without-selected-repository.js +0 -21
  172. package/e2e-legacy/graphql/graphql-endpoint-management-with-endpoints.spec.js +0 -43
  173. package/e2e-legacy/graphql/graphql-endpoint-management-with-selected-repository.spec.js +0 -39
  174. package/e2e-legacy/graphql/graphql-endpoint-management-without-selected-repository.spec.js +0 -21
  175. package/e2e-legacy/graphql/graphql-playground-with-endpoints.spec.js +0 -40
  176. package/e2e-legacy/graphql/graphql-playground-with-selected-repository.spec.js +0 -38
  177. package/e2e-legacy/graphql/graphql-playground-without-selected-repository.spec.js +0 -22
  178. package/e2e-legacy/graphql/graphql-theme.spec.js +0 -73
  179. package/e2e-legacy/guides/autocomplete/enable-autocomplete-guide.spec.js +0 -49
  180. package/e2e-legacy/guides/class-hierarcy/class-hierarchy-guide.spec.js +0 -89
  181. package/e2e-legacy/guides/class-relations/class-relations-guide.spec.js +0 -76
  182. package/e2e-legacy/guides/connectors/connectors-guide.spec.js +0 -163
  183. package/e2e-legacy/guides/create-similarity-index/create-similarity-index-guide.spec.js +0 -74
  184. package/e2e-legacy/guides/download-guide-resource/download-guide-resource-guide.js +0 -55
  185. package/e2e-legacy/guides/execute-sparql-query/execute-sparql-query-guide.spec.js +0 -92
  186. package/e2e-legacy/guides/import-rdf-file/confirm-duplicate-rdf-file.spec.js +0 -63
  187. package/e2e-legacy/guides/import-rdf-file/import-rdf-file.spec.js +0 -105
  188. package/e2e-legacy/guides/main-menu/main-menu-guide.spec.js +0 -302
  189. package/e2e-legacy/guides/navigation/navigation-guide.spec.js +0 -64
  190. package/e2e-legacy/guides/rdf-rank/rdf-rank-guide.spec.js +0 -42
  191. package/e2e-legacy/guides/repositories/create-repository-guide.spec.js +0 -69
  192. package/e2e-legacy/guides/table-graph-explore/table-graph-explore-guide.spec.js +0 -167
  193. package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +0 -157
  194. package/e2e-legacy/guides/ttyg/conversation/ttyg-conversation-guide.spec.js +0 -92
  195. package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +0 -88
  196. package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +0 -372
  197. package/e2e-legacy/guides/welcome/welcome-guide.spec.js +0 -36
  198. package/e2e-legacy/help/guides/guides-autostart.spec.js +0 -126
  199. package/e2e-legacy/help/guides/guides-confirm-cancel-dialog.js +0 -83
  200. package/e2e-legacy/help/guides/guides-with-repository.spec.js +0 -32
  201. package/e2e-legacy/help/guides/guides-without-repository.spec.js +0 -20
  202. package/e2e-legacy/help/guides/movies-interactive-guide.spec.js +0 -71
  203. package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-with-repository.spec.js +0 -32
  204. package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-without-repository.spec.js +0 -20
  205. package/e2e-legacy/help/system-information/system-information-with-repository.spec.js +0 -32
  206. package/e2e-legacy/help/system-information/system-information-without-repository.spec.js +0 -20
  207. package/e2e-legacy/home/cookie-policy/cookie-policy.spec.js +0 -182
  208. package/e2e-legacy/home/documentation-link.spec.js +0 -41
  209. package/e2e-legacy/home/home-page-with-selected-repository.spec.js +0 -69
  210. package/e2e-legacy/home/home-page-without-repositories.spec.js +0 -87
  211. package/e2e-legacy/home/home-page-without-selected-repository.spec.js +0 -59
  212. package/e2e-legacy/home/rdf-resource-search.spec.js +0 -160
  213. package/e2e-legacy/home/view-resource-autocomplete.spec.js +0 -65
  214. package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +0 -51
  215. package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +0 -45
  216. package/e2e-legacy/import/initial-state/import-page-without-selected-repository.spec.js +0 -28
  217. package/e2e-legacy/license/license-with-repository.spec.js +0 -113
  218. package/e2e-legacy/license/license-without-repository.spec.js +0 -103
  219. package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-with-repository.spec.js +0 -36
  220. package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-without-repository.spec.js +0 -25
  221. package/e2e-legacy/monitor/query-and-updates/queries-and-updates-with-repository.spec.js +0 -39
  222. package/e2e-legacy/monitor/query-and-updates/queries-and-updates-without-repository.spec.js +0 -21
  223. package/e2e-legacy/monitor/system/system-monitoring-with-repository.spec.js +0 -32
  224. package/e2e-legacy/monitor/system/system-monitoring-without-repository.spec.js +0 -20
  225. package/e2e-legacy/not-found/not-found.spec.js +0 -23
  226. package/e2e-legacy/repository/url-with-repository-id-parameter.spec.js +0 -181
  227. package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +0 -40
  228. package/e2e-legacy/setup/aclmanagement/acl-management-without-repositories.spec.js +0 -21
  229. package/e2e-legacy/setup/autocomplete/autocomplete-with-repository.spec.js +0 -40
  230. package/e2e-legacy/setup/autocomplete/autocomplete-without-repository.spec.js +0 -27
  231. package/e2e-legacy/setup/cluster/cluster-initial-state-with-cluster.spec.js +0 -34
  232. package/e2e-legacy/setup/cluster/cluster-initial-state-without-cluster.spec.js +0 -25
  233. package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +0 -41
  234. package/e2e-legacy/setup/connectors/connectors-initial-state-without-repositories.spec.js +0 -21
  235. package/e2e-legacy/setup/jdbc/jdbc-with-repository.spec.js +0 -39
  236. package/e2e-legacy/setup/jdbc/jdbc-without-repository.spec.js +0 -27
  237. package/e2e-legacy/setup/namespaces/namespaces-with-repository.spec.js +0 -44
  238. package/e2e-legacy/setup/namespaces/namespaces-without-repository.spec.js +0 -27
  239. package/e2e-legacy/setup/plugins/plugins-with-repository.spec.js +0 -38
  240. package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +0 -28
  241. package/e2e-legacy/setup/rdf-rank/rdf-rank-with-repository.spec.js +0 -40
  242. package/e2e-legacy/setup/rdf-rank/rdf-rank-without-repository.spec.js +0 -30
  243. package/e2e-legacy/setup/repositories/repositories-view-with-repositories.spec.js +0 -40
  244. package/e2e-legacy/setup/repositories/repositories-view-without-repositories.spec.js +0 -28
  245. package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +0 -86
  246. package/e2e-legacy/setup/settings/my-settings.spec.js +0 -207
  247. package/e2e-legacy/setup/sparql-template/sparql-template-with-repository.spec.js +0 -39
  248. package/e2e-legacy/setup/sparql-template/sparql-template-without-repository.spec.js +0 -29
  249. package/e2e-legacy/setup/users-and-access/users-and-access-initial-state.spec.js +0 -25
  250. package/e2e-legacy/sparql-editor/sparql-page-with-selected-repository.spec.js +0 -33
  251. package/e2e-legacy/sparql-editor/sparql-page-without-selected-repository.spec.js +0 -26
  252. package/e2e-legacy/sparql-editor/yasqe-themes.spec.js +0 -54
  253. package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +0 -106
  254. package/e2e-legacy/sparql-editor/yasr/yasr.spec.js +0 -80
  255. package/e2e-legacy/ttyg/edit-agent.spec.js +0 -178
  256. package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +0 -46
  257. package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +0 -45
  258. package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +0 -21
  259. package/e2e-security/repository/url-with-repository-id-parameter.spec.js +0 -57
  260. package/e2e-security/setup/home/cookie-policy.spec.js +0 -290
  261. package/e2e-security/setup/users-and-access/create-user-permissions.spec.js +0 -193
  262. package/e2e-security/setup/users-and-access/graphql-user.spec.js +0 -126
  263. package/e2e-security/setup/users-and-access/repo-admin-role.spec.js +0 -70
  264. package/e2e-security/setup/users-and-access/turn-on-security-and-password-change.spec.js +0 -99
  265. package/e2e-security/setup/users-and-access/user-and-access.spec.js +0 -87
  266. package/e2e-security/setup/users-and-access/users-and-access-initial-state.spec.js +0 -38
  267. package/eslint.config.js +0 -39
  268. package/fixtures/graph/graph-configurations.json +0 -59
  269. package/fixtures/guides/autocomplete/enable-autocomplete-guide.json +0 -12
  270. package/fixtures/guides/class-hierarchy/class-hierarchy-guide.json +0 -35
  271. package/fixtures/guides/class-relations/class-relations-guide.json +0 -33
  272. package/fixtures/guides/confirm-cancel-dialog/confirm-cancel-dialog-guide.json +0 -15
  273. package/fixtures/guides/connectors/connectors-guide.json +0 -66
  274. package/fixtures/guides/connectors/lucene-connector-guide.json +0 -120
  275. package/fixtures/guides/create-repository/create-repository-guide.json +0 -25
  276. package/fixtures/guides/create-similarity-index/create-similarity-index-guide.json +0 -36
  277. package/fixtures/guides/download-guide-resource/download-guide-resource-guide.json +0 -25
  278. package/fixtures/guides/download-resource.ttl +0 -629
  279. package/fixtures/guides/execute-sparql-query/execute-sparql-query-guide.json +0 -54
  280. package/fixtures/guides/import-rdf-file/confirm-duplicate-rdf-file-guide.json +0 -30
  281. package/fixtures/guides/import-rdf-file/import-rdf-file-guide.json +0 -21
  282. package/fixtures/guides/main-menu/main-menu-guide.json +0 -98
  283. package/fixtures/guides/navigation/navigation-guide.json +0 -60
  284. package/fixtures/guides/rdf-rank/rdf-rank-guide.json +0 -18
  285. package/fixtures/guides/table-graph-explore/table-graph-explore-guide.json +0 -51
  286. package/fixtures/guides/table-graph-explore/table-graph-explore-without-substeps-guide.json +0 -25
  287. package/fixtures/guides/ttyg/configure-agent/configure-ttyg-agent-guide.json +0 -74
  288. package/fixtures/guides/ttyg/conversation/ttyg-conversation-guide.json +0 -26
  289. package/fixtures/guides/ttyg/edit-ttyg-agent/edit-ttyg-agent-guide.json +0 -22
  290. package/fixtures/guides/visual-graph/visual-graph-config-guide.json +0 -39
  291. package/fixtures/guides/visual-graph/visual-graph-guide.json +0 -85
  292. package/fixtures/guides/welcome/welcome-guide.json +0 -18
  293. package/fixtures/repositories/free-access.json +0 -13
  294. package/fixtures/similarity/get-ttyg-similarity-instances.json +0 -10
  295. package/fixtures/ttyg/agent/get-agent-defaults-assistant-api.json +0 -44
  296. package/fixtures/ttyg/agent/get-agent-list-with-incompatible-agents.json +0 -79
  297. package/fixtures/ttyg/agent/get-similarity-indexes-for-another-repo.json +0 -8
  298. package/fixtures/ttyg/agent/get-similarity-indexes.json +0 -22
  299. package/fixtures/ttyg/chats/ask-question-cancel.json +0 -12
  300. package/fixtures/ttyg/chats/cancel-question-response.json +0 -1
  301. package/fixtures/ttyg/chats/create/question-response-after-chat-creation.json +0 -29
  302. package/fixtures/ttyg/chats/explain-response-3.json +0 -12
  303. package/steps/base-steps.js +0 -29
  304. package/steps/cookie-policy/cookie-consent-banner-steps.js +0 -21
  305. package/steps/cookie-policy/cookie-policy-modal.steps.js +0 -56
  306. package/steps/error-page-steps.js +0 -9
  307. package/steps/explore/class-relationships-steps.js +0 -64
  308. package/steps/graphql/playground-editor-steps.js +0 -46
  309. package/steps/header-steps.js +0 -22
  310. package/steps/monitoring/queries-and-updates-steps.js +0 -20
  311. package/steps/monitoring/system-monitoring-steps.js +0 -40
  312. package/steps/not-found/not-found-steps.js +0 -23
  313. package/steps/rdf-resource-search-steps.js +0 -55
  314. package/steps/rest-api-documentation-steps.js +0 -15
  315. package/steps/setup/connectors-steps.js +0 -32
  316. package/steps/shared-modal-dialog-steps.js +0 -45
  317. package/steps/system-information-steps.js +0 -70
  318. package/steps/widgets/active-repository-widget-steps.js +0 -29
  319. package/steps/widgets/license-widget-steps.js +0 -9
  320. package/steps/widgets/repository-errors-widget-steps.js +0 -21
  321. package/steps/widgets/saved-sparql-queries-widget-steps.js +0 -9
  322. package/stubs/browser-stubs.js +0 -21
  323. package/stubs/graph-config-stubs.js +0 -17
  324. package/stubs/guides/guides-stubs.js +0 -103
  325. package/stubs/saved-queries-stubs.js +0 -5
  326. package/stubs/sparql-stubs.js +0 -10
  327. package/support/connector-commands.js +0 -13
  328. package/support/e2e-security.js +0 -9
  329. package/support/url-commands.js +0 -13
  330. package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +0 -0
  331. package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +0 -0
  332. package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
  333. package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration.spec.js +0 -0
  334. package/{e2e-legacy → integration}/cluster/cluster-legend.spec.js +0 -0
  335. package/{e2e-legacy → integration}/cluster/edit-cluster-nodes-modal.spec.js +0 -0
  336. package/{e2e-legacy → integration}/graphql/activate-deactivate-graphql-endpoint.spec.js +0 -0
  337. package/{e2e-legacy → integration}/graphql/delete-graphql-endpoint.spec.js +0 -0
  338. package/{e2e-legacy → integration}/graphql/export-graphql-endpoint-definition.spec.js +0 -0
  339. package/{e2e-legacy → integration}/graphql/set-default-graphql-endpoint.spec.js +0 -0
  340. package/{e2e-legacy/help/system-information → integration/help}/system-information.spec.js +0 -0
  341. package/{e2e-legacy → integration}/home/create-repository.spec.js +0 -0
  342. package/{e2e-legacy → integration}/import/import-server-files-batch-operations.spec.js +0 -0
  343. package/{e2e-legacy → integration}/import/import-user-data-settings-dialog.spec.js +0 -0
  344. package/{e2e-legacy → integration}/import/import-view.spec.js +0 -0
  345. package/{e2e-legacy → integration}/repository/attach-remote-location.spec.js +1 -1
  346. /package/{e2e-legacy → integration}/repository/repository-commands.spec.js +0 -0
  347. /package/{e2e-legacy → integration}/setup/aclmanagement/delete-rule.spec.js +0 -0
  348. /package/{e2e-legacy → integration}/setup/aclmanagement/edit-rule.spec.js +0 -0
  349. /package/{e2e-legacy → integration}/setup/aclmanagement/render-rules.spec.js +0 -0
  350. /package/{e2e-legacy → integration}/setup/aclmanagement/reorder-rules.spec.js +0 -0
  351. /package/{e2e-legacy → integration}/setup/aclmanagement/revert-rules.spec.js +0 -0
  352. /package/{e2e-legacy → integration}/setup/aclmanagement/scopes.spec.js +0 -0
  353. /package/{e2e-legacy → integration}/setup/aclmanagement/update-rules.spec.js +0 -0
  354. /package/{e2e-legacy → integration}/setup/jdbc/jdbc.spec.js +0 -0
  355. /package/{e2e-legacy → integration}/sparql-editor/actions/execute-query.spec.js +0 -0
  356. /package/{e2e-legacy → integration}/sparql-editor/actions/save-query.spec.js +0 -0
  357. /package/{e2e-legacy → integration}/sparql-editor/internationalization.spec.js +0 -0
  358. /package/{e2e-legacy → integration}/sparql-editor/saved-query/delete-query.spec.js +0 -0
  359. /package/{e2e-legacy → integration}/sparql-editor/sparql-editor.spec.js +0 -0
  360. /package/{e2e-legacy → integration}/sparql-editor/yasr/download-as.spec.js +0 -0
  361. /package/{e2e-flaky → integration-flaky}/import/import.server.files.spec.js +0 -0
  362. /package/{e2e-flaky → integration-flaky}/sparql-editor/lucene-connector.spec.js +0 -0
  363. /package/{e2e-flaky → integration-flaky}/sparql-editor/plugins/error-plugin.spec.js +0 -0
@@ -1,6 +1,4 @@
1
- import {BaseSteps} from "../base-steps.js";
2
-
3
- export class ChatPanelSteps extends BaseSteps {
1
+ export class ChatPanelSteps {
4
2
 
5
3
  static getChatPanel() {
6
4
  return cy.get('.chat-panel');
@@ -18,38 +16,14 @@ export class ChatPanelSteps extends BaseSteps {
18
16
  return ChatPanelSteps.getChatDetailElement(chatDetailIndex).find('.actions').eq(answerIndex);
19
17
  }
20
18
 
21
- static getAssistantAnswer(index) {
22
- return ChatPanelSteps.getChatPanel().find('.assistant-message markdown-content').eq(index);
23
- }
24
-
25
19
  static getQuestionInputElement() {
26
- return ChatPanelSteps.getChatPanel().find('.question-input .contenteditable');
27
- }
28
-
29
- static typeQuestion(question) {
30
- ChatPanelSteps.getQuestionInputElement().type(question, {force: true});
31
- }
32
-
33
- static getQuestionLoader() {
34
- return ChatPanelSteps.getByTestId('question-loader');
35
- }
36
-
37
- static waitForLoaderToDisappear() {
38
- ChatPanelSteps.getQuestionLoader().should('not.exist');
20
+ return ChatPanelSteps.getChatPanel().find('.question-input');
39
21
  }
40
22
 
41
23
  static getAskButtonElement() {
42
24
  return ChatPanelSteps.getChatPanel().find('.ask-button');
43
25
  }
44
26
 
45
- static askQuestion() {
46
- ChatPanelSteps.getAskButtonElement().scrollIntoView().click();
47
- }
48
-
49
- static askQuestionWithEnter() {
50
- ChatPanelSteps.getQuestionInputElement().type('{enter}');
51
- }
52
-
53
27
  static getChatDetailQuestionElement(index = 0) {
54
28
  return ChatPanelSteps.getChatDetailElement(index).find('.question');
55
29
  }
@@ -85,16 +59,4 @@ export class ChatPanelSteps extends BaseSteps {
85
59
  static getCopyToClipboardElement(index = 0) {
86
60
  return ChatPanelSteps.getCopyToClipboardElements().eq(index);
87
61
  }
88
-
89
- static getCancelButton() {
90
- return ChatPanelSteps.getChatPanel().find('.cancel-ask-button');
91
- }
92
-
93
- static cancelQuestion() {
94
- ChatPanelSteps.getCancelButton().click();
95
- }
96
-
97
- static getAssistantIcon(index) {
98
- return ChatPanelSteps.getChatDetailElement(index).find('.assistant-icon');
99
- }
100
62
  }
@@ -25,13 +25,7 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
25
25
  }
26
26
 
27
27
  static typeAgentName(name) {
28
- this.getAgentNameField()
29
- // https://github.com/cypress-io/cypress/issues/18747
30
- .type(name, {force: true});
31
- }
32
-
33
- static getCodeToCopy() {
34
- return cy.getByTestId('code-to-copy-element').invoke('text');
28
+ this.getAgentNameField().type(name);
35
29
  }
36
30
 
37
31
  static clearAgentName() {
@@ -43,30 +37,6 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
43
37
  return this.getAgentNameFormGroup().find('.alert-danger');
44
38
  }
45
39
 
46
- static getExtIntegrationConfigBtn() {
47
- return cy.get('.external-config-btn');
48
- }
49
-
50
- static openExtIntegrationConfig() {
51
- this.getExtIntegrationConfigBtn().click();
52
- }
53
-
54
- static getExternalIntegrationModal() {
55
- return cy.get('.external-integration-configuration-modal .modal-content');
56
- }
57
-
58
- static getAgentUrlField() {
59
- return this.getExternalIntegrationModal().find('#agentId');
60
- }
61
-
62
- static getMethodUrlField() {
63
- return this.getExternalIntegrationModal().find('#queryMethods');
64
- }
65
-
66
- static getDifyUrlField() {
67
- return this.getExternalIntegrationModal().find('#difyExtension');
68
- }
69
-
70
40
  // Repository ID
71
41
 
72
42
  static getRepositoryIdFromGroup() {
@@ -148,15 +118,11 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
148
118
  }
149
119
 
150
120
  static clearSparqlMethodOntologyGraphField() {
151
- return this.getSparqlMethodOntologyGraphField()
152
- // https://github.com/cypress-io/cypress/issues/18747
153
- .clear({force: true});
121
+ return this.getSparqlMethodOntologyGraphField().clear();
154
122
  }
155
123
 
156
124
  static typeSparqlMethodOntologyGraphField(value) {
157
- return this.getSparqlMethodOntologyGraphField()
158
- // https://github.com/cypress-io/cypress/issues/18747
159
- .type(value, {force: true});
125
+ return this.getSparqlMethodOntologyGraphField().type(value);
160
126
  }
161
127
 
162
128
  static selectSparqlMethodSparqlQuery() {
@@ -176,14 +142,6 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
176
142
  return this.getSparqlMethodSparqlQueryField().type(value, {parseSpecialCharSequences: false});
177
143
  }
178
144
 
179
- static clickOpenQueryInSparqlEditor(index = 0) {
180
- return this.getOpenQueryInSparqlEditorButton(index).click();
181
- }
182
-
183
- static getOpenQueryInSparqlEditorButton(index = 0) {
184
- return this.getByTestId('open-in-sparql-editor-btn').eq(index);
185
- }
186
-
187
145
  static getAddMissingNamespacesCheckbox() {
188
146
  return cy.get('#addMissingNamespaces');
189
147
  }
@@ -218,14 +176,6 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
218
176
  return this.getExtractionMethodPanel('fts_search').find('.max-triples');
219
177
  }
220
178
 
221
- static getFtsSearchMaxTriplesField() {
222
- return this.getFtsSearchMaxTriplesFormGroup().find('input');
223
- }
224
-
225
- static setFtsSearchMaxTriples(value) {
226
- this.getFtsSearchMaxTriplesField().invoke('val', value).trigger('input');
227
- }
228
-
229
179
  // Similarity search method
230
180
 
231
181
  static enableSimilaritySearchMethodPanel() {
@@ -253,7 +203,7 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
253
203
  }
254
204
 
255
205
  static clickOnSimilaritySearchIndexMissingHelp() {
256
- this.getSimilaritySearchIndexMissingHelp().find('a').eq(0).click();
206
+ this.getSimilaritySearchIndexMissingHelp().find('a').click();
257
207
  }
258
208
 
259
209
  static getSimilarityIndexFormGroup() {
@@ -261,11 +211,7 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
261
211
  }
262
212
 
263
213
  static getSimilarityIndexField() {
264
- return this.getSimilarityIndexFormGroup().find('#connectorInstances');
265
- }
266
-
267
- static getSimilarityIndexSelectedOption() {
268
- return this.getSimilarityIndexField().find('option:selected');
214
+ return this.getSimilarityIndexFormGroup().find('select');
269
215
  }
270
216
 
271
217
  static selectSimilarityIndex(index) {
@@ -276,14 +222,6 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
276
222
  this.getSimilarityIndexField().find('option:selected').should('have.text', similarityIndex);
277
223
  }
278
224
 
279
- static getSimilarityIndexVectorFieldsField() {
280
- return this.getSimilarityIndexFormGroup().find('select#vectorFieldsSelect');
281
- }
282
-
283
- static getSimilarityIndexSelectedVectorFieldsValue() {
284
- return this.getSimilarityIndexVectorFieldsField().find('option:selected');
285
- }
286
-
287
225
  static getSimilarityIndexThresholdFormGroup() {
288
226
  return this.getExtractionMethodPanel('similarity_search').find('.similarity-index-threshold');
289
227
  }
@@ -383,66 +321,27 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
383
321
  this.getRetrievalConnectorField().find('option:selected').should('have.text', connectorName);
384
322
  }
385
323
 
386
- // LLM model
324
+ // GPT model
387
325
 
388
- static getLLMModelFormGroup() {
389
- return this.getDialog().find('.llm-model');
326
+ static getGptModelFormGroup() {
327
+ return this.getDialog().find('.gpt-model');
390
328
  }
391
329
 
392
- static getLLMModelField() {
393
- return this.getLLMModelFormGroup().find('input');
330
+ static getGptModelField() {
331
+ return this.getGptModelFormGroup().find('input');
394
332
  }
395
333
 
396
- static clearLLMModel() {
397
- this.getLLMModelField()
398
- // https://github.com/cypress-io/cypress/issues/18747
399
- .clear({force: true});
334
+ static clearGptModel() {
335
+ this.getGptModelField().clear();
400
336
  cy.realPress('Tab');
401
337
  }
402
338
 
403
- static getLLMModelError() {
404
- return this.getLLMModelFormGroup().find('.alert-danger');
339
+ static getGptModelError() {
340
+ return this.getGptModelFormGroup().find('.alert-danger');
405
341
  }
406
342
 
407
- static typeLLMModel(value) {
408
- return this.getLLMModelField()
409
- // https://github.com/cypress-io/cypress/issues/18747
410
- .type(value, {force: true});
411
- }
412
-
413
- static clickLLMModelField() {
414
- this.getLLMModelField().click();
415
- }
416
-
417
- // Context size
418
-
419
- static getContextSizeFormGroup() {
420
- return this.getDialog().find('.context-size');
421
- }
422
-
423
- static getContextSizeField() {
424
- return this.getDialog().find('.context-size input');
425
- }
426
-
427
- static clearContextSize() {
428
- return this.getContextSizeField().clear();
429
- }
430
-
431
- static enterContextSize(input) {
432
- this.getContextSizeField().type(input);
433
- }
434
-
435
- static getContextSizeError() {
436
- return this.getContextSizeFormGroup().find('.alert-danger');
437
- }
438
-
439
- static resetContextSizeValue() {
440
- this.getContextSizeField()
441
- .realHover()
442
- .then(() => this.getContextSizeFormGroup().find('.reset-context-size-btn'))
443
- .scrollIntoView()
444
- .should('be.visible')
445
- .click();
343
+ static typeGptModel(value) {
344
+ return this.getGptModelField().type(value);
446
345
  }
447
346
 
448
347
  // temperature
@@ -467,10 +366,6 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
467
366
  return this.getTemperatureFormGroup().find('.high-temperature-warning');
468
367
  }
469
368
 
470
- static scrollToTemperatureWarning() {
471
- return this.getTemperatureWarning().scrollIntoView();
472
- }
473
-
474
369
  // Top P
475
370
 
476
371
  static getTopPFormGroup() {
@@ -534,9 +429,19 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
534
429
  }
535
430
 
536
431
  static setAutocompleteMaxResults(number) {
537
- this.getAutocompleteMaxResults()
538
- // https://github.com/cypress-io/cypress/issues/18747
539
- .type(number, {force: true});
432
+ this.getAutocompleteMaxResults().type(number);
433
+ }
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');
540
445
  }
541
446
 
542
447
  static toggleAutocompleteSearchPanel() {
@@ -551,14 +456,6 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
551
456
  this.getSuggestionsList().eq(index).click();
552
457
  }
553
458
 
554
- static getAutocompleteDisabledMessage() {
555
- return cy.get('.autocomplete-disabled-message');
556
- }
557
-
558
- static clickOnEnableFTSSearch() {
559
- this.getAutocompleteDisabledMessage().find('a').click();
560
- }
561
-
562
459
  // System instructions
563
460
 
564
461
  static getSystemInstructionsFormGroup() {
@@ -592,13 +489,11 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
592
489
  }
593
490
 
594
491
  static clearUserInstructions() {
595
- this.getUserInstructionsField().clear({force: true});
492
+ this.getUserInstructionsField().clear();
596
493
  }
597
494
 
598
495
  static typeUserInstructions(value) {
599
- return this.getUserInstructionsField()
600
- // https://github.com/cypress-io/cypress/issues/18747
601
- .type(value, {force: true});
496
+ return this.getUserInstructionsField().type(value);
602
497
  }
603
498
 
604
499
  static toggleAdvancedSettings() {
@@ -1,6 +1,4 @@
1
- import {BaseSteps} from "../base-steps";
2
-
3
- export class TTYGViewSteps extends BaseSteps {
1
+ export class TTYGViewSteps {
4
2
  static visit() {
5
3
  cy.visit('/ttyg');
6
4
  }
@@ -14,23 +12,7 @@ export class TTYGViewSteps extends BaseSteps {
14
12
  }
15
13
 
16
14
  static getNoAgentsView() {
17
- return this.getTtygView().getByTestId('no-agents-view-component');
18
- }
19
-
20
- static getTtygInfoMessage() {
21
- return this.getNoAgentsView().getByTestId('ttyg-info-message');
22
- }
23
-
24
- static getTtygagentMessage() {
25
- return this.getNoAgentsView().getByTestId('ttyg-agent-message');
26
- }
27
-
28
- static getApiKeyMessage() {
29
- return this.getNoAgentsView().getByTestId('ttyg-api-key-message');
30
- }
31
-
32
- static getMissingApiKeyToastMessage() {
33
- return cy.get('.toast.toast-error');
15
+ return this.getTtygView().find('.no-agents-view-component');
34
16
  }
35
17
 
36
18
  static getTtygViewContent() {
@@ -42,7 +24,7 @@ export class TTYGViewSteps extends BaseSteps {
42
24
  }
43
25
 
44
26
  static getChatListLoadingIndicator() {
45
- return this.getChatsSidebar().find('[onto-loader]');
27
+ return this.getChatsSidebar().find('[onto-loader-fancy]');
46
28
  }
47
29
 
48
30
  static getChatsPanel() {
@@ -124,13 +106,6 @@ export class TTYGViewSteps extends BaseSteps {
124
106
  return this.getToggleChatsSidebarButton().click();
125
107
  }
126
108
 
127
- static openAgentSettingsModalForAgent(index) {
128
- TTYGViewSteps.expandAgentsSidebar();
129
- TTYGViewSteps.openAgentsMenu();
130
- TTYGViewSteps.selectAgent(index);
131
- TTYGViewSteps.editCurrentAgent();
132
- }
133
-
134
109
  static getCreateChatButton() {
135
110
  return this.getChatsSidebar().find('.create-chat-btn');
136
111
  }
@@ -198,10 +173,6 @@ export class TTYGViewSteps extends BaseSteps {
198
173
  return this.getAgentsSidebar().find('.create-agent-btn');
199
174
  }
200
175
 
201
- static clickCreateAgentButton() {
202
- this.getCreateAgentButton().click();
203
- }
204
-
205
176
  static createFirstAgent() {
206
177
  this.getCreateFirstAgentButton().click();
207
178
  }
@@ -246,43 +217,18 @@ export class TTYGViewSteps extends BaseSteps {
246
217
  return this.getAgent(index).realHover().find('.open-agent-actions-btn');
247
218
  }
248
219
 
249
- static toggleAgentActionMenu(index) {
220
+ static openAgentActionMenu(index) {
250
221
  this.getOpenAgentActionsButton(index).click();
251
222
  }
252
223
 
253
- static triggerEditAgentActionMenu(index) {
254
- this.toggleAgentActionMenu(index);
255
- this.getEditAgentButton(index).click();
256
- }
257
-
258
- static getEditAgentButton(index) {
259
- return this.getAgent(index).find('.agent-actions-menu .edit-agent-btn');
260
- }
261
-
262
- static getExternalIntegrationConfigButton(index) {
263
- return this.getAgent(index).find('.agent-actions-menu .ext-integration-agent-btn');
264
- }
265
-
266
- static openExternalIntegrationConfigButton(index) {
267
- return this.getExternalIntegrationConfigButton(index).click();
268
- }
269
-
270
224
  static triggerCloneAgentActionMenu(index) {
271
- this.toggleAgentActionMenu(index);
272
- this.getCloneAgentButton(index).click();
273
- }
274
-
275
- static getCloneAgentButton(index) {
276
- return this.getAgent(index).find('.agent-actions-menu .clone-agent-btn');
225
+ this.openAgentActionMenu(index);
226
+ this.getAgent(index).find('.agent-actions-menu .clone-agent-btn').click();
277
227
  }
278
228
 
279
229
  static triggerDeleteAgentActionMenu(index) {
280
- this.toggleAgentActionMenu(index);
281
- this.getDeleteAgentButton(index).click();
282
- }
283
-
284
- static getDeleteAgentButton(index) {
285
- return this.getAgent(index).find('.agent-actions-menu .delete-agent-btn');
230
+ this.openAgentActionMenu(index);
231
+ this.getAgent(index).find('.agent-actions-menu .delete-agent-btn').click();
286
232
  }
287
233
 
288
234
  static getAgentDeletingLoader() {
@@ -308,10 +254,6 @@ export class TTYGViewSteps extends BaseSteps {
308
254
  return this.getTtygView().find('.agent-select-menu');
309
255
  }
310
256
 
311
- static getAgentsDropdownMenu() {
312
- return this.getAgentsMenu().find('.dropdown-menu');
313
- }
314
-
315
257
  static getAgentsMenuToggleButton() {
316
258
  return this.getAgentsMenu().find('.dropdown-toggle-btn');
317
259
  }
@@ -321,7 +263,7 @@ export class TTYGViewSteps extends BaseSteps {
321
263
  }
322
264
 
323
265
  static getAgentsFromMenu() {
324
- return this.getAgentsMenu().find('.agent-menu-item a');
266
+ return this.getAgentsMenu().find('.agent-menu-item');
325
267
  }
326
268
 
327
269
  static getAgentFromMenu(index) {
@@ -353,23 +295,11 @@ export class TTYGViewSteps extends BaseSteps {
353
295
  this.getExplainResponseButton(index).click();
354
296
  }
355
297
 
356
- static getTokenUsageInfoButton(index) {
357
- return this.getTtygView().find('.token-usage-info-btn').eq(index);
358
- }
359
-
360
- static hoverTokenUsageInfoButton(index) {
361
- return this.getTokenUsageInfoButton(index).realHover();
362
- }
363
-
364
- static getTokenUsageInfoPopover() {
365
- return cy.get('.token-usage-info');
366
- }
367
-
368
298
  static getHowDeliverAnswerButton() {
369
299
  return this.getTtygView().find('.deliver-answer-btn');
370
300
  }
371
301
 
372
- static clickOnHowDeliverAnswerButton() {
302
+ static clickOnHowDeliverAnswerButton(index) {
373
303
  this.getHowDeliverAnswerButton().click();
374
304
  }
375
305
 
@@ -1,9 +1,7 @@
1
- import {BaseSteps} from "./base-steps.js";
2
-
3
1
  const VIEW_URL = '/graphs-visualizations';
4
2
  const VALID_RESOURCE = 'USRegion';
5
3
 
6
- export class VisualGraphSteps extends BaseSteps {
4
+ export class VisualGraphSteps {
7
5
 
8
6
  static visit() {
9
7
  cy.visit(VIEW_URL);
@@ -21,10 +19,6 @@ export class VisualGraphSteps extends BaseSteps {
21
19
  cy.visit('/graphs-visualizations?uri=http:%2F%2Fwww.w3.org%2FTR%2F2003%2FPR-owl-guide-20031209%2Fwine%23Dry');
22
20
  }
23
21
 
24
- static getSavedGraphsArea() {
25
- return this.getGraphConfigSearchPanel().getByTestId('saved-graphs-area');
26
- }
27
-
28
22
  static openNodeLabelGraph() {
29
23
  cy.visit('/graphs-visualizations?uri=http:%2F%2Fexample.com%2Fnode1');
30
24
  // Wait for at least one predicate to be displayed, to ensure that the visual graph is open and ready for testing.
@@ -40,9 +34,9 @@ export class VisualGraphSteps extends BaseSteps {
40
34
  }
41
35
 
42
36
  static updateGraphConfiguration(namedGraph) {
43
- cy.get('[data-cy="save-or-update-graph"]').click();
44
- cy.get('[id="wb-graphviz-savegraph-name"]').type(namedGraph);
45
- cy.get('[id="wb-graphviz-savegraph-submit"]').should('be.visible').click();
37
+ cy.get('[data-cy="save-or-update-graph"]').click()
38
+ .get('[id="wb-graphviz-savegraph-name"]').type(namedGraph)
39
+ .get('[id="wb-graphviz-savegraph-submit"]').should('be.visible').click();
46
40
  cy.get('.toast').contains('Saved graph ' + namedGraph + ' was saved');
47
41
  }
48
42
 
@@ -87,30 +81,6 @@ export class VisualGraphSteps extends BaseSteps {
87
81
  return cy.get('.autocomplete-toast a');
88
82
  }
89
83
 
90
- static getRdfResourceSearchInput() {
91
- return cy.getByTestId('rdf-resource-input');
92
- }
93
-
94
- static searchForRdfResource(resource) {
95
- this.getRdfResourceSearchInput().type(resource, {force: true});
96
- }
97
-
98
- static shareVisualGraphWithOtherUsers() {
99
- this.getShareGraphButton().click();
100
- }
101
-
102
- static getShareGraphButton() {
103
- return cy.getByTestId('share-graph-config');
104
- }
105
-
106
- static selectConfig(configName) {
107
- this.getConfigByName(configName).click();
108
- }
109
-
110
- static getConfigByName(name) {
111
- return cy.getByTestId(`graph-config-${name}`);
112
- }
113
-
114
84
  static getGraphVisualizationNodes() {
115
85
  return this.getGraphVisualizationPane().find('.node-wrapper');
116
86
  }
@@ -172,14 +142,6 @@ export class VisualGraphSteps extends BaseSteps {
172
142
  return cy.get(`[id="${nodeId}"] circle`);
173
143
  }
174
144
 
175
- static clickOnNode(nodeId) {
176
- this.getCircleOfNodeByNodeId(nodeId).click();
177
- }
178
-
179
- static dblclickOnNode(nodeId) {
180
- this.getCircleOfNodeByNodeId(nodeId).trigger('dblclick');
181
- }
182
-
183
145
  static getLineBetweenNodesById(narrowId) {
184
146
  return cy.get(`[id="${narrowId}"] line`);
185
147
  }
@@ -189,31 +151,13 @@ export class VisualGraphSteps extends BaseSteps {
189
151
  }
190
152
 
191
153
  static getSidePanelCloseButton() {
192
- return this.getSidePanelContent().find('.close');
154
+ return cy.get('');
193
155
  }
194
156
 
195
157
  static getSidePanelContent() {
196
158
  return cy.get('.rdf-side-panel-content');
197
159
  }
198
160
 
199
- static getPropertyByIndex(index) {
200
- return this.getSidePanelContent().find('.rdf-list .datasource').eq(index);
201
- }
202
-
203
- static closeSidePanel() {
204
- this.getSidePanelCloseButton().click();
205
- }
206
-
207
- // Note the index is 1-based
208
- static openConfigTab(tabIndex) {
209
- return this.getConfigTab(tabIndex).click();
210
- }
211
-
212
- // Note the index is 1-based
213
- static getConfigTab(tabIndex) {
214
- return cy.getByTestId(`graph-config-tab-${tabIndex}`);
215
- }
216
-
217
161
  // Visual graph settings form field access
218
162
 
219
163
  static openPredicatesTab() {
@@ -240,8 +184,7 @@ export class VisualGraphSteps extends BaseSteps {
240
184
  }
241
185
 
242
186
  static getSaveSettingsButton() {
243
- cy.get('.save-settings-btn').scrollIntoView();
244
- return cy.get('.save-settings-btn').should('be.visible');
187
+ return cy.get('.save-settings-btn').scrollIntoView().should('be.visible');
245
188
  }
246
189
 
247
190
  static saveSettings() {
@@ -249,8 +192,7 @@ export class VisualGraphSteps extends BaseSteps {
249
192
  }
250
193
 
251
194
  static getResetSettingsButton() {
252
- cy.get('.reset-settings').scrollIntoView();
253
- return cy.get('.reset-settings').should('be.visible');
195
+ return cy.get('.reset-settings').scrollIntoView().should('be.visible');
254
196
  }
255
197
 
256
198
  static resetSettings() {
@@ -270,8 +212,7 @@ export class VisualGraphSteps extends BaseSteps {
270
212
  }
271
213
 
272
214
  static getPreferredTypesField() {
273
- cy.get('.preferred-types input').scrollIntoView();
274
- return cy.get('.preferred-types input').should('be.visible');
215
+ return cy.get('.preferred-types input').scrollIntoView().should('be.visible');
275
216
  }
276
217
  static getShowPreferredTypesOnlyCheckbox() {
277
218
  return cy.get('.show-preferred-types-only').should('be.visible');
@@ -301,32 +242,12 @@ export class VisualGraphSteps extends BaseSteps {
301
242
  return cy.get('.create-graph-config').should('be.visible');
302
243
  }
303
244
 
304
- static createCustomGraph() {
305
- this.getCreateCustomGraphLink().click();
306
- }
307
-
308
245
  static getGraphConfigName() {
309
246
  return cy.get('.graph-config-name').should('be.visible');
310
247
  }
311
248
 
312
249
  static typeGraphConfigName(name) {
313
- this.getGraphConfigName().type(name, {force: true});
314
- }
315
-
316
- static typeGraphConfigDescription(description) {
317
- return this.getGraphConfigDescription().type(description, {force: true});
318
- }
319
-
320
- static getGraphConfigDescription() {
321
- return cy.get('.graph-config-description').should('be.visible');
322
- }
323
-
324
- static typeGraphConfigHint(hint) {
325
- return this.getGraphConfigHint().type(hint, {force: true});
326
- }
327
-
328
- static getGraphConfigHint() {
329
- return cy.get('.graph-config-example').should('be.visible');
250
+ this.getGraphConfigName().type(name);
330
251
  }
331
252
 
332
253
  static getSaveConfigButton() {
@@ -399,18 +320,6 @@ export class VisualGraphSteps extends BaseSteps {
399
320
  .should('be.visible').click();
400
321
  }
401
322
 
402
- static getTruncateLabelsCheckbox() {
403
- return this.getByTestId('truncate-node-labels-checkbox');
404
- }
405
-
406
- static toggleTruncateLabelsCheckbox() {
407
- return this.getTruncateLabelsCheckbox().click();
408
- }
409
-
410
- static getInvalidLinksMessage() {
411
- return this.getByTestId('invalid-links-limit');
412
- }
413
-
414
323
  static openVisualGraphHome() {
415
324
  cy.get('.toolbar-holder').should('be.visible')
416
325
  .find('.return-home-btn').should('be.visible').click();
@@ -497,16 +406,11 @@ export class VisualGraphSteps extends BaseSteps {
497
406
  }
498
407
 
499
408
  static selectStartNode(uri, index) {
500
- cy.get('.graph-config-wizard-body .view-res-input').type(uri);
501
- cy.get('.graph-config-wizard-body .view-res-input')
409
+ cy.get('.graph-config-wizard-body .view-res-input').type(uri)
502
410
  .closest('.start-node-selector')
503
411
  .find('#auto-complete-results-wrapper .result-item').eq(index).click();
504
412
  }
505
413
 
506
- static clickOnAutocompleteElement(elementText) {
507
- cy.get('.result-item').contains(elementText).click();
508
- }
509
-
510
414
  static getSelectedStartNodeUri() {
511
415
  return this.getStartNodeSelectorComponent().find('.selected-node code');
512
416
  }