graphdb-workbench-tests 3.0.2 → 3.1.0-TR2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/.editorconfig +17 -0
  2. package/cypress-flaky.config.js +15 -4
  3. package/cypress-legacy.config.js +32 -0
  4. package/cypress.config.js +8 -4
  5. package/{integration-flaky → e2e-flaky}/explore/visual.graph.spec.js +4 -1
  6. package/{integration-flaky → e2e-flaky}/import/import-server-files-operations.spec.js +1 -1
  7. package/{integration-flaky → e2e-flaky}/setup/sparql-template-create.js +9 -2
  8. package/{integration-flaky → e2e-flaky}/sparql-editor/yasr/table-plugin.spec.js +2 -1
  9. package/{integration → e2e-legacy}/cluster/edit-cluster-nodes-modal.spec.js +44 -0
  10. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.spec.js +42 -0
  11. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.spec.js +43 -0
  12. package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.spec.js +30 -0
  13. package/{integration/explore → e2e-legacy/explore/class-hierarchy}/class.hierarchy.spec.js +1 -1
  14. package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js +42 -0
  15. package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js +39 -0
  16. package/e2e-legacy/explore/class-relationships/class-relationships-without-selected-repository.spec.js +21 -0
  17. package/{integration/explore/class.relationships.spec.js → e2e-legacy/explore/class-relationships/class-relationships.spec.js} +18 -50
  18. package/{integration/explore → e2e-legacy/explore/graphs-overview}/graphs.overview.spec.js +3 -3
  19. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-with-selected-repository.spec.js +44 -0
  20. package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-without-selected-repository.spec.js +32 -0
  21. package/e2e-legacy/explore/similarity-index/similarity-index-with-repository.spec.js +38 -0
  22. package/e2e-legacy/explore/similarity-index/similarity-index-without-repository.spec.js +21 -0
  23. package/{integration → e2e-legacy}/explore/visual-graph/graphs-config.spec.js +1 -6
  24. package/e2e-legacy/explore/visual-graph/visual-graph-with-selected-repository.js +38 -0
  25. package/e2e-legacy/explore/visual-graph/visual-graph-without-selected-repository.js +21 -0
  26. package/{integration → e2e-legacy}/explore/visual-graph/visual.graph.spec.js +2 -7
  27. package/{integration → e2e-legacy}/graphql/create-graphql-endpoint.spec.js +0 -2
  28. package/{integration → e2e-legacy}/graphql/edit-graphql-enpoint.spec.js +1 -1
  29. package/{integration → e2e-legacy}/graphql/filter-graphql-endpoints-on-management-view.spec.js +1 -1
  30. package/e2e-legacy/graphql/graphql-endpoint management-without-selected-repository.spec.js +21 -0
  31. package/{integration → e2e-legacy}/graphql/graphql-endpoint-management-view.spec.js +4 -4
  32. package/e2e-legacy/graphql/graphql-endpoint-management-with-endpoints.spec.js +43 -0
  33. package/e2e-legacy/graphql/graphql-endpoint-management-with-selected-repository.spec.jsx +39 -0
  34. package/e2e-legacy/graphql/graphql-playground-with-endpoints.spec.js +40 -0
  35. package/e2e-legacy/graphql/graphql-playground-with-selected-repository.spec.js +38 -0
  36. package/e2e-legacy/graphql/graphql-playground-without-selected-repository.spec.js +22 -0
  37. package/{integration → e2e-legacy}/graphql/graphql-playground.spec.js +1 -1
  38. package/{integration → e2e-legacy}/graphql/import-graphql-endpoint-definitions.spec.js +4 -7
  39. package/e2e-legacy/help/guides/guides-with-repository.spec.js +32 -0
  40. package/e2e-legacy/help/guides/guides-without-repository.spec.js +20 -0
  41. package/{integration → e2e-legacy/help}/guides/movies-interactive-guide.spec.js +3 -3
  42. package/{integration → e2e-legacy/help}/guides/star-wars-interactive-guide.js +3 -2
  43. package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-with-repository.spec.js +32 -0
  44. package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-without-repository.spec.js +20 -0
  45. package/e2e-legacy/help/system-information/system-information-with-repository.spec.js +32 -0
  46. package/e2e-legacy/help/system-information/system-information-without-repository.spec.js +20 -0
  47. package/{integration → e2e-legacy}/home/cookie-policy.spec.js +6 -7
  48. package/{integration → e2e-legacy}/home/documentation-link.spec.js +27 -23
  49. package/e2e-legacy/home/home-page-with-selected-repository.spec.js +69 -0
  50. package/e2e-legacy/home/home-page-without-repositories.spec.js +87 -0
  51. package/e2e-legacy/home/home-page-without-selected-repository.spec.js +59 -0
  52. package/{integration → e2e-legacy}/home/language-change.spec.js +2 -2
  53. package/e2e-legacy/home/rdf-resource-search.spec.js +149 -0
  54. package/e2e-legacy/home/view-resource-autocomplete.spec.js +65 -0
  55. package/{integration → e2e-legacy}/import/import-user-data-file-upload.spec.js +16 -10
  56. package/{integration → e2e-legacy}/import/import-user-data-text-snippet.spec.js +0 -2
  57. package/{integration → e2e-legacy}/import/import-user-data.spec.js +9 -2
  58. package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +51 -0
  59. package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +45 -0
  60. package/e2e-legacy/import/initial-state/import-page-without-selected-repository.spec.js +28 -0
  61. package/e2e-legacy/license/license-with-repository.spec.js +113 -0
  62. package/e2e-legacy/license/license-without-repository.spec.js +103 -0
  63. package/{integration → e2e-legacy}/license/license.spec.js +4 -4
  64. package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-with-repository.spec.js +36 -0
  65. package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-without-repository.spec.js +25 -0
  66. package/{integration/monitor/monitor.backup-and-restore.spec.js → e2e-legacy/monitor/backup-and-restore/backup-and-restore.spec.js} +2 -2
  67. package/{integration → e2e-legacy}/monitor/global-operation-statuses-component.spec.js +12 -5
  68. package/e2e-legacy/monitor/query-and-updates/queries-and-updates-with-repository.spec.js +39 -0
  69. package/e2e-legacy/monitor/query-and-updates/queries-and-updates-without-repository.spec.js +21 -0
  70. package/{integration/monitor → e2e-legacy/monitor/system}/monitor.resources.spec.js +3 -2
  71. package/e2e-legacy/monitor/system/system-monitoring-with-repository.spec.js +32 -0
  72. package/e2e-legacy/monitor/system/system-monitoring-without-repository.spec.js +20 -0
  73. package/{integration → e2e-legacy}/repository/repositories.spec.js +34 -45
  74. package/{integration → e2e-legacy}/resource/resource.spec.js +16 -1
  75. package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +40 -0
  76. package/e2e-legacy/setup/aclmanagement/acl-management-without-repositories.spec.js +21 -0
  77. package/{integration → e2e-legacy}/setup/aclmanagement/create-rule.spec.js +1 -0
  78. package/e2e-legacy/setup/autocomplete/autocomplete-with-repository.spec.js +40 -0
  79. package/e2e-legacy/setup/autocomplete/autocomplete-without-repository.spec.js +27 -0
  80. package/{integration/setup → e2e-legacy/setup/autocomplete}/autocomplete.spec.js +2 -2
  81. package/e2e-legacy/setup/cluster/cluster-initial-state-with-cluster.spec.js +34 -0
  82. package/e2e-legacy/setup/cluster/cluster-initial-state-without-cluster.spec.js +25 -0
  83. package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +41 -0
  84. package/e2e-legacy/setup/connectors/connectors-initial-state-without-repositories.spec.js +21 -0
  85. package/e2e-legacy/setup/jdbc/jdbc-with-repository.spec.js +39 -0
  86. package/e2e-legacy/setup/jdbc/jdbc-without-repository.spec.js +27 -0
  87. package/e2e-legacy/setup/namespaces/namespaces-with-repository.spec.js +44 -0
  88. package/e2e-legacy/setup/namespaces/namespaces-without-repository.spec.js +27 -0
  89. package/{integration/setup → e2e-legacy/setup/namespaces}/namespaces.spec.js +6 -5
  90. package/e2e-legacy/setup/plugins/plugins-with-repository.spec.js +38 -0
  91. package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +28 -0
  92. package/{integration/setup → e2e-legacy/setup/plugins}/plugins.spec.js +3 -3
  93. package/e2e-legacy/setup/rdf-rank/rdf-rank-with-repository.spec.js +40 -0
  94. package/e2e-legacy/setup/rdf-rank/rdf-rank-without-repository.spec.js +30 -0
  95. package/{integration/setup → e2e-legacy/setup/rdf-rank}/rdf-rank.spec.js +1 -1
  96. package/e2e-legacy/setup/repositories/repositories-view-with-repositories.spec.js +40 -0
  97. package/e2e-legacy/setup/repositories/repositories-view-without-repositories.spec.js +28 -0
  98. package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +86 -0
  99. package/{integration/setup → e2e-legacy/setup/settings}/my-settings.spec.js +5 -75
  100. package/{integration/setup → e2e-legacy/setup/sparql-template}/sparql-template-create.js +16 -8
  101. package/e2e-legacy/setup/sparql-template/sparql-template-with-repository.spec.js +39 -0
  102. package/e2e-legacy/setup/sparql-template/sparql-template-without-repository.spec.js +29 -0
  103. package/{integration/setup → e2e-legacy/setup/sparql-template}/sparql-templates.spec.js +4 -4
  104. package/{integration/setup → e2e-legacy/setup/users-and-access}/user-and-access.spec.js +50 -15
  105. package/e2e-legacy/setup/users-and-access/users-and-access-initial-state.spec.js +25 -0
  106. package/{integration → e2e-legacy}/sparql-editor/actions/inferred-sameas.spec.js +3 -1
  107. package/{integration → e2e-legacy}/sparql-editor/saved-query/edit-query.spec.js +3 -3
  108. package/{integration → e2e-legacy}/sparql-editor/saved-query/readonly-query.spec.js +7 -13
  109. package/{integration → e2e-legacy}/sparql-editor/saved-query/share-query.spec.js +3 -1
  110. package/e2e-legacy/sparql-editor/sparql-page-with-selected-repository.spec.js +33 -0
  111. package/e2e-legacy/sparql-editor/sparql-page-without-selected-repository.spec.js +26 -0
  112. package/{integration → e2e-legacy}/ttyg/agent-list.spec.js +20 -0
  113. package/{integration → e2e-legacy}/ttyg/agent-select-menu.spec.js +24 -0
  114. package/{integration → e2e-legacy}/ttyg/chat-panel.spec.js +29 -3
  115. package/{integration → e2e-legacy}/ttyg/create-chat.spec.js +3 -1
  116. package/{integration → e2e-legacy}/ttyg/edit-agent.spec.js +19 -9
  117. package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +46 -0
  118. package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +43 -0
  119. package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +21 -0
  120. package/e2e-legacy/ttyg/ttyg-permission.spec.js +66 -0
  121. package/{integration → e2e-legacy}/ttyg/ttyg-view.spec.js +1 -0
  122. package/fixtures/locale-en.json +22 -4
  123. package/fixtures/repositories/free-access.json +13 -0
  124. package/fixtures/ttyg/agent/get-agent-list-with-incompatible-agents.json +79 -0
  125. package/fixtures/ttyg/chats/ask-question.json +12 -2
  126. package/fixtures/ttyg/chats/get-chat.json +6 -1
  127. package/npm-shrinkwrap.json +3557 -3815
  128. package/package.json +42 -42
  129. package/plugins/index.js +2 -2
  130. package/steps/application-steps.js +1 -1
  131. package/steps/base-steps.js +21 -0
  132. package/steps/class-views-steps.js +16 -0
  133. package/steps/cluster/cluster-page-steps.js +12 -2
  134. package/steps/error-steps.js +15 -0
  135. package/steps/explore/class-relationships-steps.js +64 -0
  136. package/steps/explore/graphs-overview-steps.js +21 -1
  137. package/steps/explore/similarity-indexes-steps.js +12 -2
  138. package/steps/graphql/graphql-endpoint-management-steps.js +2 -2
  139. package/steps/guides/guide-steps.js +20 -1
  140. package/steps/home-steps.js +137 -48
  141. package/steps/import/import-steps.js +11 -15
  142. package/steps/import/import-user-data-steps.js +4 -0
  143. package/steps/language-selector-steps.js +2 -2
  144. package/steps/license-steps.js +91 -9
  145. package/steps/login-steps.js +3 -3
  146. package/steps/main-menu-steps.js +198 -13
  147. package/steps/modal-dialog-steps.js +20 -0
  148. package/steps/monitoring/backup-and-restore-steps.js +9 -3
  149. package/steps/monitoring/queries-and-updates-steps.js +20 -0
  150. package/steps/monitoring/system-monitoring-steps.js +40 -0
  151. package/steps/operations-statuses-component-steps.js +5 -10
  152. package/steps/rdf-resource-search-steps.js +55 -0
  153. package/steps/repository-selector-steps.js +3 -3
  154. package/steps/repository-steps.js +17 -12
  155. package/steps/resource/resource-steps.js +4 -0
  156. package/steps/rest-api-documentation-steps.js +15 -0
  157. package/steps/setup/autocomplete-steps.js +13 -6
  158. package/steps/setup/connectors-steps.js +19 -0
  159. package/steps/setup/jdbc-steps.js +18 -4
  160. package/steps/setup/namespace-steps.js +9 -6
  161. package/steps/setup/plugins-steps.js +11 -4
  162. package/steps/setup/rdf-rank-steps.js +22 -4
  163. package/steps/setup/settings-steps.js +82 -1
  164. package/steps/setup/sparql-templates-steps.js +19 -1
  165. package/steps/setup/user-and-access-steps.js +9 -1
  166. package/steps/system-information-steps.js +70 -0
  167. package/steps/ttyg/chat-panel-steps.js +1 -1
  168. package/steps/ttyg/ttyg-agent-settings-modal.steps.js +8 -12
  169. package/steps/ttyg/ttyg-view-steps.js +59 -8
  170. package/steps/visual-graph-steps.js +4 -0
  171. package/steps/widgets/active-repository-widget-steps.js +25 -0
  172. package/steps/widgets/license-widget-steps.js +9 -0
  173. package/steps/widgets/repository-errors-widget-steps.js +21 -0
  174. package/steps/widgets/saved-sparql-queries-widget-steps.js +9 -0
  175. package/stubs/autocomplete/autocomplete-stubs.js +7 -0
  176. package/stubs/browser-stubs.js +31 -0
  177. package/stubs/environment-stubs.js +9 -1
  178. package/stubs/license-stubs.js +51 -0
  179. package/stubs/repositories/repositories-stubs.js +8 -0
  180. package/stubs/repositories-stub.js +6 -6
  181. package/stubs/saved-queries-stubs.js +5 -0
  182. package/stubs/ttyg/ttyg-stubs.js +4 -7
  183. package/support/commands.js +19 -0
  184. package/support/repository-commands.js +20 -4
  185. package/Dockerfile +0 -11
  186. package/integration/explore/similarity-index/similarity-index-create.spec.js +0 -333
  187. package/integration/explore/similarity-index/similarity-index.spec.js +0 -88
  188. package/integration/explore/similarity-index/similarity.spec.js +0 -628
  189. package/integration/home/language-selector.spec.js +0 -19
  190. package/integration/home/rdf-resource-search.spec.js +0 -177
  191. package/integration/home/view-resource-autocomplete.spec.js +0 -52
  192. package/integration/home/workbench.home.spec.js +0 -30
  193. package/integration/monitor/monitor.queries.spec.js +0 -31
  194. package/integration-flaky/setup/users-and-access/security-and-free-access.spec.js +0 -54
  195. package/{integration-flaky → e2e-flaky}/import/import-user-data-batch-operations.spec.js +0 -0
  196. package/{integration-flaky → e2e-flaky}/import/import.server.files.spec.js +0 -0
  197. package/{integration-flaky → e2e-flaky}/sparql-editor/actions/execute-update-query.spec.js +0 -0
  198. package/{integration-flaky → e2e-flaky}/sparql-editor/actions/share-query.spec.js +0 -0
  199. package/{integration-flaky → e2e-flaky}/sparql-editor/lucene-connector.spec.js +0 -0
  200. package/{integration-flaky → e2e-flaky}/sparql-editor/plugins/error-plugin.spec.js +0 -0
  201. package/{integration-flaky → e2e-flaky}/ttyg/ttyg-permission.spec.js +0 -0
  202. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +0 -0
  203. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +0 -0
  204. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
  205. package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration.spec.js +0 -0
  206. package/{integration → e2e-legacy}/cluster/cluster-legend.spec.js +0 -0
  207. package/{integration → e2e-legacy}/cluster/cluster-states.spec.js +0 -0
  208. package/{integration → e2e-legacy}/explore/visual-graph/visual-graph-node-labels.spec.js +0 -0
  209. package/{integration → e2e-legacy}/graphql/activate-deactivate-graphql-endpoint.spec.js +0 -0
  210. package/{integration → e2e-legacy}/graphql/delete-graphql-endpoint.spec.js +0 -0
  211. package/{integration → e2e-legacy}/graphql/export-graphql-endpoint-definition.spec.js +0 -0
  212. package/{integration → e2e-legacy}/graphql/set-default-graphql-endpoint.spec.js +0 -0
  213. package/{integration/help → e2e-legacy/help/system-information}/system-information.spec.js +0 -0
  214. package/{integration → e2e-legacy}/home/create-repository.spec.js +0 -0
  215. package/{integration → e2e-legacy}/home/google-analytics.spec.js +0 -0
  216. package/{integration → e2e-legacy}/import/import-server-files-batch-operations.spec.js +0 -0
  217. package/{integration → e2e-legacy}/import/import-server-files.spec.js +0 -0
  218. package/{integration → e2e-legacy}/import/import-user-data-settings-dialog.spec.js +0 -0
  219. package/{integration → e2e-legacy}/import/import-user-data-url.spec.js +0 -0
  220. package/{integration → e2e-legacy}/import/import-view.spec.js +0 -0
  221. package/{integration → e2e-legacy}/repository/attach-remote-location.spec.js +1 -1
  222. /package/{integration → e2e-legacy}/repository/ontop-repository.spec.js +0 -0
  223. /package/{integration → e2e-legacy}/repository/repository-commands.spec.js +0 -0
  224. /package/{integration → e2e-legacy}/setup/aclmanagement/delete-rule.spec.js +0 -0
  225. /package/{integration → e2e-legacy}/setup/aclmanagement/edit-rule.spec.js +0 -0
  226. /package/{integration → e2e-legacy}/setup/aclmanagement/render-rules.spec.js +0 -0
  227. /package/{integration → e2e-legacy}/setup/aclmanagement/reorder-rules.spec.js +0 -0
  228. /package/{integration → e2e-legacy}/setup/aclmanagement/revert-rules.spec.js +0 -0
  229. /package/{integration → e2e-legacy}/setup/aclmanagement/scopes.spec.js +0 -0
  230. /package/{integration → e2e-legacy}/setup/aclmanagement/update-rules.spec.js +0 -0
  231. /package/{integration → e2e-legacy}/setup/connectors-lucene.spec.js +0 -0
  232. /package/{integration → e2e-legacy}/setup/jdbc/jdbc-create.spec.js +0 -0
  233. /package/{integration → e2e-legacy}/setup/jdbc/jdbc.spec.js +0 -0
  234. /package/{integration → e2e-legacy}/sparql-editor/actions/execute-query.spec.js +0 -0
  235. /package/{integration → e2e-legacy}/sparql-editor/actions/expand-results-over-sameas.spec.js +0 -0
  236. /package/{integration → e2e-legacy}/sparql-editor/actions/include-inferred-statements.spec.js +0 -0
  237. /package/{integration → e2e-legacy}/sparql-editor/actions/save-query.spec.js +0 -0
  238. /package/{integration → e2e-legacy}/sparql-editor/actions/show-saved-queries.spec.js +0 -0
  239. /package/{integration → e2e-legacy}/sparql-editor/internationalization.spec.js +0 -0
  240. /package/{integration → e2e-legacy}/sparql-editor/saved-query/abort-query.spec.js +0 -0
  241. /package/{integration → e2e-legacy}/sparql-editor/saved-query/delete-query.spec.js +0 -0
  242. /package/{integration → e2e-legacy}/sparql-editor/sparql-editor.spec.js +0 -0
  243. /package/{integration → e2e-legacy}/sparql-editor/yasgui-tabs.spec.js +0 -0
  244. /package/{integration → e2e-legacy}/sparql-editor/yasr/download-as.spec.js +0 -0
  245. /package/{integration → e2e-legacy}/sparql-editor/yasr/pagination.spec.js +0 -0
  246. /package/{integration → e2e-legacy}/sparql-editor/yasr/table-plugin.spec.js +0 -0
  247. /package/{integration → e2e-legacy}/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +0 -0
  248. /package/{integration → e2e-legacy}/ttyg/chat-list.spec.js +0 -0
  249. /package/{integration → e2e-legacy}/ttyg/clone-agent.spec.js +0 -0
  250. /package/{integration → e2e-legacy}/ttyg/create-agent.spec.js +0 -0
  251. /package/{integration → e2e-legacy}/ttyg/delete-agent.spec.js +0 -0
  252. /package/support/{index.js → e2e.js} +0 -0
@@ -0,0 +1,32 @@
1
+ import {MainMenuSteps} from "../../../../steps/main-menu-steps";
2
+ import {GraphsOverviewSteps} from "../../../../steps/explore/graphs-overview-steps";
3
+ import HomeSteps from "../../../../steps/home-steps";
4
+ import {RepositoryErrorsWidgetSteps} from "../../../../steps/widgets/repository-errors-widget-steps";
5
+
6
+ describe('Initial state of the Graphs Overview view without a selected repository', () => {
7
+
8
+ it('Should display the correct initial state when navigating via URL', () => {
9
+ // When: I visit the Graphs Overview page via URL without a selected repository
10
+ GraphsOverviewSteps.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 Graphs Overview page via the navigation menu without a selected repository
17
+ HomeSteps.visit();
18
+ MainMenuSteps.clickOnGraphsOverview();
19
+ // Then:
20
+ verifyInitialStateWithoutSelectedRepository();
21
+ });
22
+
23
+ const verifyInitialStateWithoutSelectedRepository = () => {
24
+ RepositoryErrorsWidgetSteps.getWidget().should('be.visible');
25
+ GraphsOverviewSteps.getGraphsSearchInput().should('be.hidden');
26
+ GraphsOverviewSteps.getGraphsPaginator().should('be.hidden');
27
+ GraphsOverviewSteps.getClearRepositoryButton().should('be.hidden');
28
+ GraphsOverviewSteps.getExportRepositoryButton().should('be.hidden');
29
+ GraphsOverviewSteps.getDownloadAllButtons().should('be.hidden');
30
+ GraphsOverviewSteps.getResultsElement().should('be.hidden');
31
+ };
32
+ });
@@ -0,0 +1,38 @@
1
+ import HomeSteps from "../../../steps/home-steps";
2
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
3
+ import {SimilarityIndexesSteps} from "../../../steps/explore/similarity-indexes-steps";
4
+
5
+ describe('Similarity indexes with selected repository', () => {
6
+ let repositoryId;
7
+
8
+ beforeEach(() => {
9
+ repositoryId = 'similarity-index-init-' + Date.now();
10
+ cy.createRepository({id: repositoryId});
11
+ cy.presetRepository(repositoryId);
12
+ });
13
+
14
+ afterEach(() => {
15
+ cy.deleteRepository(repositoryId);
16
+ });
17
+
18
+ it('Should display the correct initial state when navigating via URL', () => {
19
+ // Given, I visit the Similarity indexes page via URL with a repository selected
20
+ SimilarityIndexesSteps.visit();
21
+ // Then,
22
+ verifyInitialStateWithSelectedRepository();
23
+ });
24
+
25
+ it('Should display the correct initial state when navigating via the navigation bar', () => {
26
+ // Given, I visit the Similarity indexes page via the navigation menu with a repository selected
27
+ HomeSteps.visit();
28
+ MainMenuSteps.clickOnSimilarity();
29
+ // Then,
30
+ verifyInitialStateWithSelectedRepository();
31
+ });
32
+
33
+ const verifyInitialStateWithSelectedRepository = () => {
34
+
35
+ SimilarityIndexesSteps.getExistingSimilarityIndexes().contains('Select one of your existing indexes to search in it');
36
+ SimilarityIndexesSteps.getCreateButton().should('be.visible');
37
+ };
38
+ })
@@ -0,0 +1,21 @@
1
+ import {ErrorSteps} from "../../../steps/error-steps";
2
+ import HomeSteps from "../../../steps/home-steps";
3
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
4
+ import {SimilarityIndexesSteps} from "../../../steps/explore/similarity-indexes-steps";
5
+
6
+ describe('Similarity indexes without selected repository', () => {
7
+ it('Should display the correct initial state when navigating via URL', () => {
8
+ // Given, I visit the Similarity indexes page via URL without a repository selected
9
+ SimilarityIndexesSteps.visit();
10
+ // Then,
11
+ ErrorSteps.verifyNoConnectedRepoMessage();
12
+ });
13
+
14
+ it('Should display the correct initial state when navigating via the navigation menu', () => {
15
+ // Given, I visit the Similarity indexes page via the navigation menu without a repository selected
16
+ HomeSteps.visit();
17
+ MainMenuSteps.clickOnSimilarity();
18
+ // Then,
19
+ ErrorSteps.verifyNoConnectedRepoMessage();
20
+ });
21
+ })
@@ -217,12 +217,7 @@ describe('Graphs config', () => {
217
217
  VisualGraphSteps.getGraphConfigSearchPanelName().should('contain', graphConfigName);
218
218
  });
219
219
 
220
- it('Should create graph config with fixed node', {
221
- retries: {
222
- runMode: 1,
223
- openMode: 0
224
- }
225
- }, () => {
220
+ it('Should create graph config with fixed node', () => {
226
221
  cy.enableAutocomplete(repositoryId);
227
222
  // Given I have started a create config wizard
228
223
  startCreateConfigWizard();
@@ -0,0 +1,38 @@
1
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
2
+ import HomeSteps from "../../../steps/home-steps";
3
+ import {VisualGraphSteps} from "../../../steps/visual-graph-steps";
4
+
5
+ describe('Visual Graph with selected repository', () => {
6
+ let repositoryId;
7
+
8
+ beforeEach(() => {
9
+ repositoryId = 'visual-graph-' + Date.now();
10
+ cy.createRepository({id: repositoryId});
11
+ cy.presetRepository(repositoryId);
12
+ });
13
+
14
+ afterEach(() => {
15
+ cy.deleteRepository(repositoryId);
16
+ });
17
+
18
+ it('Should render Visual Graph with selected repository via URL', () => {
19
+ // Given, I visit the Visual Graph page via URL and I have a selected repository
20
+ VisualGraphSteps.visit();
21
+ // Then, I expect to see the Visual Graph with the classes and relationships
22
+ verifyVisualGraphWithSelectedRepository();
23
+ });
24
+
25
+ it('Should render Visual Graph with selected repository via navigation menu', () => {
26
+ // Given, I visit the Visual Graph page via navigation menu and I have a selected repository
27
+ HomeSteps.visit();
28
+ MainMenuSteps.clickOnVisualGraph();
29
+ // Then, I expect to see the Visual Graph with the classes and relationships
30
+ verifyVisualGraphWithSelectedRepository();
31
+ });
32
+ });
33
+
34
+ function verifyVisualGraphWithSelectedRepository() {
35
+ VisualGraphSteps.getSearchField().should('be.visible');
36
+ VisualGraphSteps.getGraphConfigurationsArea().should('be.visible');
37
+ VisualGraphSteps.getSavedGraphsArea().should('be.visible');
38
+ }
@@ -0,0 +1,21 @@
1
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
2
+ import HomeSteps from "../../../steps/home-steps";
3
+ import {ErrorSteps} from "../../../steps/error-steps";
4
+ import {VisualGraphSteps} from "../../../steps/visual-graph-steps";
5
+
6
+ describe('Visual Graph without selected repository', () => {
7
+ it('Should render Visual Graph without selected repository via URL', () => {
8
+ // Given, I visit the Visual Graph page via URL and I don't have any repositories
9
+ VisualGraphSteps.visit();
10
+ // Then
11
+ ErrorSteps.verifyNoConnectedRepoMessage();
12
+ });
13
+
14
+ it('Should render Visual Graph without selected repository via navigation menu', () => {
15
+ // Given, I visit the Visual Graph page via navigation menu and I don't have any repositories
16
+ HomeSteps.visit();
17
+ MainMenuSteps.clickOnVisualGraph();
18
+ // Then
19
+ ErrorSteps.verifyNoConnectedRepoMessage();
20
+ });
21
+ })
@@ -147,12 +147,7 @@ describe('Visual graph screen validation', () => {
147
147
  });
148
148
  });
149
149
 
150
- it('Test search for a valid resource with links', {
151
- retries: {
152
- runMode: 1,
153
- openMode: 0
154
- }
155
- }, () => {
150
+ it('Test search for a valid resource with links', () => {
156
151
  VisualGraphSteps.openUSRegionUri();
157
152
  // Check include inferred
158
153
  VisualGraphSteps.toggleInferredStatements(true);
@@ -238,7 +233,7 @@ describe('Visual graph screen validation', () => {
238
233
  cy.get('.incontext-search-rdf-resource input').should('be.visible');
239
234
  });
240
235
 
241
- it('Test expand collapsed node which has connections with double click', () => {
236
+ it('Test expand collapsed node which has connections with double click', () => {
242
237
  VisualGraphSteps.openUSRegionUri();
243
238
  VisualGraphSteps.toggleInferredStatements(false);
244
239
 
@@ -245,7 +245,6 @@ describe('Graphql: create endpoint', () => {
245
245
  // Then I should be on the generate endpoint step
246
246
  CreateGraphqlEndpointSteps.getActiveStep().should('contain', 'Create');
247
247
  CreateGraphqlEndpointSteps.getGenerateEndpointView().should('be.visible');
248
-
249
248
  });
250
249
 
251
250
  it('should be able to cancel the endpoint creation wizard', () => {
@@ -277,5 +276,4 @@ describe('Graphql: create endpoint', () => {
277
276
  ModalDialogSteps.getDialog().should('not.exist');
278
277
  cy.url().should('include', '/graphql/endpoints');
279
278
  });
280
-
281
279
  });
@@ -113,7 +113,7 @@ describe('Graphql: edit endpoint settings', () => {
113
113
  "queryPrefix": null,
114
114
  "mutationPrefix": null,
115
115
  "sparqlFederatedServices": "{}",
116
- "sparqlFederatedServicesPriority": 'Deployment configurations',
116
+ "sparqlFederatedServicesPriority": "Deployment configurations",
117
117
  }
118
118
  });
119
119
  });
@@ -45,7 +45,7 @@ describe('GraphQL endpoints filtering', () => {
45
45
  GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 3);
46
46
  });
47
47
 
48
- it.only('should render no results banner when all endpoints are filtered', () => {
48
+ it('should render no results banner when all endpoints are filtered', () => {
49
49
  // Given I have a repository with active GraphQL endpoints
50
50
  // When I visit the endpoint management view
51
51
  GraphqlEndpointManagementSteps.visit();
@@ -0,0 +1,21 @@
1
+ import {ErrorSteps} from "../../steps/error-steps";
2
+ import {GraphqlEndpointManagementSteps} from "../../steps/graphql/graphql-endpoint-management-steps";
3
+ import HomeSteps from "../../steps/home-steps";
4
+ import {MainMenuSteps} from "../../steps/main-menu-steps";
5
+
6
+ describe('GraphQl endpoint management without selected repository', () => {
7
+ it('Should render GraphQL endpoint management page without selected repository via URL', () => {
8
+ // Given, I visit the GraphQL endpoint management page via URL and I haven't selected a repository
9
+ GraphqlEndpointManagementSteps.visit();
10
+ // Then
11
+ ErrorSteps.verifyNoConnectedRepoMessage();
12
+ });
13
+
14
+ it('Should render GraphQL endpoint management without selected repository via navigation menu', () => {
15
+ // Given, I visit the GraphQL endpoint management page via navigation menu and I haven't selected a repository'
16
+ HomeSteps.visit();
17
+ MainMenuSteps.clickOnEndpointManagement();
18
+ // Then
19
+ ErrorSteps.verifyNoConnectedRepoMessage();
20
+ });
21
+ })
@@ -69,6 +69,8 @@ describe('GraphQL endpoints management', () => {
69
69
  // Given I have a repository with active GraphQL endpoints
70
70
  // When I visit the endpoint management view
71
71
  GraphqlEndpointManagementSteps.visit();
72
+ // And I toggle the 3rd endpoint's active state to inactive
73
+ GraphqlEndpointManagementSteps.toggleEndpointActiveState(2);
72
74
  // Then I should see the endpoints info
73
75
  GraphqlEndpointManagementSteps.getEndpointTable().within(() => {
74
76
  cy.get('thead th').should('have.length', 10);
@@ -85,7 +87,6 @@ describe('GraphQL endpoints management', () => {
85
87
  GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 3);
86
88
  GraphqlEndpointManagementSteps.verifyEndpointInfo([
87
89
  {
88
- status: 'deleted',
89
90
  id: 'swapi',
90
91
  label: 'Ontotext Star Wars Ontology',
91
92
  description: '',
@@ -96,7 +97,6 @@ describe('GraphQL endpoints management', () => {
96
97
  properties: 68
97
98
  },
98
99
  {
99
- status: 'deleted',
100
100
  id: 'swapi-planets',
101
101
  label: 'Star Wars planets API',
102
102
  description: '',
@@ -107,12 +107,12 @@ describe('GraphQL endpoints management', () => {
107
107
  properties: 10
108
108
  },
109
109
  {
110
- status: 'deleted',
110
+ status: "deleted",
111
111
  id: 'swapi-species',
112
112
  label: 'Star Wars species API',
113
113
  description: '',
114
114
  default: false,
115
- active: true,
115
+ active: false,
116
116
  modified: ApplicationSteps.getCurrentDate(),
117
117
  types: 2,
118
118
  properties: 17
@@ -0,0 +1,43 @@
1
+ import {GraphqlEndpointManagementSteps} from "../../steps/graphql/graphql-endpoint-management-steps";
2
+ import {MainMenuSteps} from "../../steps/main-menu-steps";
3
+ import HomeSteps from "../../steps/home-steps";
4
+
5
+ describe('GraphQL endpoint management with endpoints', () => {
6
+ let repositoryId;
7
+
8
+ beforeEach(() => {
9
+ repositoryId = 'graphql-endpoint-management-' + Date.now();
10
+ cy.createRepository({id: repositoryId});
11
+ cy.presetRepository(repositoryId);
12
+ cy.importServerFile(repositoryId, 'swapi-dataset.ttl');
13
+ cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema.yaml', 'swapi');
14
+ cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema-film-restricted.yaml', 'swapi');
15
+ });
16
+
17
+ afterEach(() => {
18
+ cy.deleteRepository(repositoryId);
19
+ });
20
+
21
+ it('Should render GraphQL endpoint management with endpoints via URL', () => {
22
+ // Given, I visit the GraphQL endpoint management page via URL and I have endpoints
23
+ GraphqlEndpointManagementSteps.visit();
24
+ // Then, I expect to see the GraphQL endpoint management page
25
+ validateGraphQlEndpointManagementPageWithEndpoints();
26
+ });
27
+
28
+ it('Should render GraphQL endpoint management with endpoints via navigation menu', () => {
29
+ // Given, I visit the GraphQL endpoint management page via navigation menu and I have endpoints
30
+ HomeSteps.visit();
31
+ MainMenuSteps.clickOnEndpointManagement();
32
+ // Then, I expect to see the GraphQL endpoint management page
33
+ validateGraphQlEndpointManagementPageWithEndpoints();
34
+ });
35
+ });
36
+
37
+ function validateGraphQlEndpointManagementPageWithEndpoints() {
38
+ GraphqlEndpointManagementSteps.getCreateEndpointButton().should('be.visible');
39
+ GraphqlEndpointManagementSteps.getImportEndpointSchemaDefinitionButton().should('be.visible');
40
+ GraphqlEndpointManagementSteps.getEndpointFilterField().should('be.visible');
41
+ GraphqlEndpointManagementSteps.getEndpointTable().should('be.visible');
42
+ GraphqlEndpointManagementSteps.getNoEndpointsInRepositoryBanner().should('not.exist');
43
+ }
@@ -0,0 +1,39 @@
1
+ import HomeSteps from "../../steps/home-steps";
2
+ import {MainMenuSteps} from "../../steps/main-menu-steps";
3
+ import {GraphqlEndpointManagementSteps} from "../../steps/graphql/graphql-endpoint-management-steps";
4
+
5
+ describe('GraphQL endpoint management with selected repository', () => {
6
+ let repositoryId;
7
+
8
+ beforeEach(() => {
9
+ repositoryId = 'graphql-endpoint-management-' + Date.now();
10
+ cy.createRepository({id: repositoryId});
11
+ cy.presetRepository(repositoryId);
12
+ });
13
+
14
+ afterEach(() => {
15
+ cy.deleteRepository(repositoryId);
16
+ });
17
+
18
+ it('Should render GraphQL endpoint management with selected repository via URL', () => {
19
+ // Given, I visit the GraphQL endpoint management page via URL and I have a selected repository
20
+ GraphqlEndpointManagementSteps.visit();
21
+ // Then, I expect to see the GraphQL endpoint management page
22
+ validateNoEndpointsGraphQlEndpointManagementPage();
23
+ });
24
+
25
+ it('Should render GraphQL endpoint management with selected repository via navigation menu', () => {
26
+ // Given, I visit the GraphQL endpoint management page via navigation menu and I have a selected repository'
27
+ HomeSteps.visit();
28
+ MainMenuSteps.clickOnEndpointManagement();
29
+ // Then, I expect to see the GraphQL endpoint management page
30
+ validateNoEndpointsGraphQlEndpointManagementPage()
31
+ });
32
+ });
33
+
34
+ function validateNoEndpointsGraphQlEndpointManagementPage() {
35
+ GraphqlEndpointManagementSteps.getCreateEndpointButton().should('be.visible');
36
+ GraphqlEndpointManagementSteps.getImportEndpointSchemaDefinitionButton().should('be.visible');
37
+ GraphqlEndpointManagementSteps.getNoEndpointsInRepositoryBanner().should('be.visible');
38
+ }
39
+
@@ -0,0 +1,40 @@
1
+ import {MainMenuSteps} from "../../steps/main-menu-steps";
2
+ import HomeSteps from "../../steps/home-steps";
3
+ import {GraphqlPlaygroundSteps} from "../../steps/graphql/graphql-playground-steps";
4
+
5
+ describe('GraphQL playground with endpoints', () => {
6
+ let repositoryId;
7
+
8
+ beforeEach(() => {
9
+ repositoryId = 'graphql-playground-' + Date.now();
10
+ cy.createRepository({id: repositoryId});
11
+ cy.presetRepository(repositoryId);
12
+ cy.importServerFile(repositoryId, 'swapi-dataset.ttl');
13
+ cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema.yaml', 'swapi');
14
+ cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema-film-restricted.yaml', 'swapi');
15
+ });
16
+
17
+ afterEach(() => {
18
+ cy.deleteRepository(repositoryId);
19
+ });
20
+
21
+ it('Should render GraphQL playground with endpoints via URL', () => {
22
+ // Given, I visit the GraphQL playground page via URL and I have endpoints
23
+ GraphqlPlaygroundSteps.visit();
24
+ // Then, I expect to see the GraphQL playground page
25
+ validateGraphQlPlaygroundWithEndpoints();
26
+ });
27
+
28
+ it('Should render GraphQL playground with endpoints via navigation menu', () => {
29
+ // Given, I visit the GraphQL playground page via navigation menu and I have endpoints
30
+ HomeSteps.visit();
31
+ MainMenuSteps.clickOnGraphQLPlayground();
32
+ // Then, I expect to see the GraphQL playground page
33
+ validateGraphQlPlaygroundWithEndpoints();
34
+ });
35
+ });
36
+
37
+ function validateGraphQlPlaygroundWithEndpoints() {
38
+ GraphqlPlaygroundSteps.getEndpointsSelectMenu().should('be.visible');
39
+ GraphqlPlaygroundSteps.getPlayground().should('be.visible');
40
+ }
@@ -0,0 +1,38 @@
1
+ import HomeSteps from "../../steps/home-steps";
2
+ import {MainMenuSteps} from "../../steps/main-menu-steps";
3
+ import {GraphqlPlaygroundSteps} from "../../steps/graphql/graphql-playground-steps";
4
+
5
+ describe('GraphQL playground with selected repository', () => {
6
+ let repositoryId;
7
+
8
+ beforeEach(() => {
9
+ repositoryId = 'graphql-playground-' + Date.now();
10
+ cy.createRepository({id: repositoryId});
11
+ cy.presetRepository(repositoryId);
12
+ });
13
+
14
+ afterEach(() => {
15
+ cy.deleteRepository(repositoryId);
16
+ });
17
+
18
+ it('Should render GraphQL playground with selected repository via URL', () => {
19
+ // Given, I visit the GraphQL playground page via URL and I have a selected repository
20
+ GraphqlPlaygroundSteps.visit();
21
+ // Then, I expect to see the GraphQL no schemas alert, because I don't have any endpoints
22
+ validateSelectedRepository();
23
+ });
24
+
25
+ it('Should render GraphQL playground with selected repository via navigation menu', () => {
26
+ // Given, I visit the GraphQL playground page via navigation menu and I have a selected repository'
27
+ HomeSteps.visit();
28
+ MainMenuSteps.clickOnGraphQLPlayground();
29
+ // Then, I expect to see the GraphQL no schemas alert, because I don't have any endpoints
30
+ validateSelectedRepository();
31
+ });
32
+ });
33
+
34
+ function validateSelectedRepository() {
35
+ GraphqlPlaygroundSteps.getNoSchemasAlert()
36
+ .should('be.visible')
37
+ .and('contain', 'No active endpoints found in the current repository. Manage the GraphQL schemas here');
38
+ }
@@ -0,0 +1,22 @@
1
+ import {GraphqlPlaygroundSteps} from "../../steps/graphql/graphql-playground-steps";
2
+ import {ErrorSteps} from "../../steps/error-steps";
3
+ import HomeSteps from "../../steps/home-steps";
4
+ import {MainMenuSteps} from "../../steps/main-menu-steps";
5
+
6
+ describe('GraphQl playground without selected repository', () => {
7
+ it('Should render GraphQL playground without selected repository via URL', () => {
8
+ // Given, I visit the GraphQL playground page via URL and I don't have any repositories
9
+ GraphqlPlaygroundSteps.visit();
10
+ // Then
11
+ ErrorSteps.verifyNoConnectedRepoMessage();
12
+ });
13
+
14
+ it('Should render GraphQL playground without selected repository via navigation menu', () => {
15
+ // Given, I visit the GraphQL playground page via navigation menu and I don't have any repositories'
16
+ HomeSteps.visit();
17
+ MainMenuSteps.clickOnGraphQLPlayground();
18
+ // Then
19
+ ErrorSteps.verifyNoConnectedRepoMessage();
20
+ });
21
+ });
22
+
@@ -87,7 +87,7 @@ describe('GraphQL Playground', () => {
87
87
  GraphiQLEditorToolsSteps.getGraphiQLEditorTabButton(1).contains('Headers');
88
88
 
89
89
  // When: I change the language.
90
- LanguageSelectorSteps.changeLanguage('fr');
90
+ LanguageSelectorSteps.switchToFr();
91
91
  // Then: I expect to see GraphQL playground translated.
92
92
  GraphiQLEditorToolsSteps.getGraphiQLEditorTabButton(1).contains('En-têtes');
93
93
  });
@@ -73,7 +73,6 @@ describe('Graphql: import endpoint definitions', () => {
73
73
 
74
74
  GraphqlEndpointManagementSteps.verifyEndpointInfo([
75
75
  {
76
- status: 'deleted',
77
76
  id: 'swapi',
78
77
  label: 'Ontotext Star Wars Ontology',
79
78
  description: '',
@@ -86,7 +85,10 @@ describe('Graphql: import endpoint definitions', () => {
86
85
  ]);
87
86
  });
88
87
 
89
- it('should be able to import broken endpoint definition', () => {
88
+ /**
89
+ * TODO Fixme broken due migration (Error unknown)
90
+ */
91
+ it.skip('should be able to import broken endpoint definition', () => {
90
92
  visitAndOpenImportModal();
91
93
  // When I select the file to upload
92
94
  ImportEndpointDefinitionModalSteps.selectFile(brokenSwapiDefinitionPath);
@@ -167,7 +169,6 @@ describe('Graphql: import endpoint definitions', () => {
167
169
  GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 3);
168
170
  GraphqlEndpointManagementSteps.verifyEndpointInfo([
169
171
  {
170
- status: 'deleted',
171
172
  id: 'swapi',
172
173
  label: 'Ontotext Star Wars Ontology',
173
174
  description: '',
@@ -178,7 +179,6 @@ describe('Graphql: import endpoint definitions', () => {
178
179
  properties: 68
179
180
  },
180
181
  {
181
- status: 'deleted',
182
182
  id: 'swapi-planets',
183
183
  label: 'Star Wars planets API',
184
184
  description: '',
@@ -189,7 +189,6 @@ describe('Graphql: import endpoint definitions', () => {
189
189
  properties: 10
190
190
  },
191
191
  {
192
- status: 'deleted',
193
192
  id: 'swapi-species',
194
193
  label: 'Star Wars species API',
195
194
  description: '',
@@ -233,7 +232,6 @@ describe('Graphql: import endpoint definitions', () => {
233
232
  GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 2);
234
233
  GraphqlEndpointManagementSteps.verifyEndpointInfo([
235
234
  {
236
- status: 'deleted',
237
235
  id: 'swapi-planets',
238
236
  label: 'Star Wars planets API',
239
237
  description: '',
@@ -244,7 +242,6 @@ describe('Graphql: import endpoint definitions', () => {
244
242
  properties: 10
245
243
  },
246
244
  {
247
- status: 'deleted',
248
245
  id: 'swapi-species',
249
246
  label: 'Star Wars species API',
250
247
  description: '',
@@ -0,0 +1,32 @@
1
+ import HomeSteps from "../../../steps/home-steps";
2
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
3
+ import {GuideSteps} from "../../../steps/guides/guide-steps";
4
+
5
+ describe('Interactive guides with selected repository', () => {
6
+ let repositoryId;
7
+
8
+ beforeEach(() => {
9
+ repositoryId = 'interactive-guides-init-' + Date.now();
10
+ cy.createRepository({id: repositoryId});
11
+ cy.presetRepository(repositoryId);
12
+ });
13
+
14
+ afterEach(() => {
15
+ cy.deleteRepository(repositoryId);
16
+ });
17
+
18
+ it('Should display the correct initial state when navigating via URL', () => {
19
+ // Given, I visit the Interactive guides page via URL with a repository selected
20
+ GuideSteps.visit();
21
+ // Then,
22
+ GuideSteps.verifyInitialState();
23
+ });
24
+
25
+ it('Should display the correct initial state when navigating via the navigation bar', () => {
26
+ // Given, I visit the Interactive guides page via the navigation menu with a repository selected
27
+ HomeSteps.visit();
28
+ MainMenuSteps.clickOnInteractiveGuides();
29
+ // Then,
30
+ GuideSteps.verifyInitialState();
31
+ });
32
+ })
@@ -0,0 +1,20 @@
1
+ import HomeSteps from "../../../steps/home-steps";
2
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
3
+ import {GuideSteps} from "../../../steps/guides/guide-steps";
4
+
5
+ describe('Interactive guides without selected repository', () => {
6
+ it('Should display the correct initial state when navigating via URL', () => {
7
+ // Given, I visit the Interactive guides page via URL without a repository selected
8
+ GuideSteps.visit();
9
+ // Then,
10
+ GuideSteps.verifyInitialState();
11
+ });
12
+
13
+ it('Should display the correct initial state when navigating via the navigation menu', () => {
14
+ // Given, I visit the Interactive guides page via the navigation menu without a repository selected
15
+ HomeSteps.visit();
16
+ MainMenuSteps.clickOnInteractiveGuides();
17
+ // Then,
18
+ GuideSteps.verifyInitialState();
19
+ });
20
+ })
@@ -1,7 +1,8 @@
1
- import {GuideSteps} from "../../steps/guides/guide-steps";
2
- import {MoviesGuideSteps} from "../../steps/guides/movies-guide-steps";
1
+ import {GuideSteps} from "../../../steps/guides/guide-steps";
2
+ import {MoviesGuideSteps} from "../../../steps/guides/movies-guide-steps";
3
3
 
4
4
  const MOVIES_FILE_FOR_IMPORT = 'movies.ttl';
5
+
5
6
  describe('Interactive guides', () => {
6
7
 
7
8
  let repositoryId;
@@ -21,7 +22,6 @@ describe('Interactive guides', () => {
21
22
 
22
23
  context('Describes "Movies" interactive guide', () => {
23
24
  it('Tests movies interactive guide using "Next" button to the end', () => {
24
-
25
25
  const stepAssertions = [
26
26
  {assert: MoviesGuideSteps.assertExploreClassHierarchyStep1},
27
27
  {assert: MoviesGuideSteps.assertExploreClassHierarchyStep2},
@@ -1,7 +1,8 @@
1
- import {GuideSteps} from "../../steps/guides/guide-steps";
2
- import {StarWarsGuideSteps} from "../../steps/guides/star-wars-guide-steps";
1
+ import {GuideSteps} from "../../../steps/guides/guide-steps";
2
+ import {StarWarsGuideSteps} from "../../../steps/guides/star-wars-guide-steps";
3
3
 
4
4
  const STAR_WARS_FILE_FOR_IMPORT = 'starwars.ttl';
5
+
5
6
  describe('Describes "Starwars" interactive guide', () => {
6
7
 
7
8
  let repositoryId;