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.
- package/Dockerfile +11 -0
- package/cypress-flaky.config.js +6 -20
- package/cypress.config.js +6 -45
- package/fixtures/locale-en.json +3342 -0
- package/fixtures/ttyg/agent/get-agent-defaults.json +2 -9
- package/fixtures/ttyg/chats/ask-question.json +2 -12
- package/fixtures/ttyg/chats/create/create-chat-response.json +14 -10
- package/fixtures/ttyg/chats/explain-response-1.json +48 -2
- package/fixtures/ttyg/chats/get-chat.json +1 -6
- package/{e2e-legacy → integration}/cluster/cluster-states.spec.js +3 -3
- package/{e2e-legacy/explore/class-hierarchy → integration/explore}/class.hierarchy.spec.js +1 -1
- package/{e2e-legacy/explore/class-relationships/class-relationships.spec.js → integration/explore/class.relationships.spec.js} +50 -20
- package/{e2e-legacy/explore/graphs-overview → integration/explore}/graphs.overview.spec.js +4 -4
- package/integration/explore/similarity-index/similarity-index-create.spec.js +333 -0
- package/integration/explore/similarity-index/similarity-index.spec.js +88 -0
- package/integration/explore/similarity-index/similarity.spec.js +628 -0
- package/{e2e-legacy → integration}/explore/visual-graph/graphs-config.spec.js +10 -5
- package/{e2e-legacy → integration}/explore/visual-graph/visual-graph-node-labels.spec.js +2 -14
- package/{e2e-legacy → integration}/explore/visual-graph/visual.graph.spec.js +96 -75
- package/{e2e-legacy → integration}/graphql/create-graphql-endpoint.spec.js +2 -0
- package/{e2e-legacy → integration}/graphql/edit-graphql-enpoint.spec.js +1 -1
- package/{e2e-legacy → integration}/graphql/filter-graphql-endpoints-on-management-view.spec.js +1 -1
- package/{e2e-legacy → integration}/graphql/graphql-endpoint-management-view.spec.js +4 -4
- package/{e2e-legacy → integration}/graphql/graphql-playground.spec.js +1 -1
- package/{e2e-legacy → integration}/graphql/import-graphql-endpoint-definitions.spec.js +6 -0
- package/integration/guides/movies-interactive-guide.spec.js +73 -0
- package/{e2e-legacy/help/guides/star-wars-interactive-guide.spec.js → integration/guides/star-wars-interactive-guide.js} +2 -3
- package/integration/home/cookie-policy.spec.js +90 -0
- package/integration/home/documentation-link.spec.js +60 -0
- package/{e2e-legacy → integration}/home/google-analytics.spec.js +6 -4
- package/{e2e-legacy → integration}/home/language-change.spec.js +2 -2
- package/integration/home/language-selector.spec.js +19 -0
- package/integration/home/rdf-resource-search.spec.js +177 -0
- package/integration/home/view-resource-autocomplete.spec.js +52 -0
- package/integration/home/workbench.home.spec.js +30 -0
- package/{e2e-legacy → integration}/import/import-server-files.spec.js +3 -5
- package/{e2e-legacy → integration}/import/import-user-data-file-upload.spec.js +13 -19
- package/{e2e-legacy → integration}/import/import-user-data-text-snippet.spec.js +2 -0
- package/{e2e-legacy → integration}/import/import-user-data-url.spec.js +23 -0
- package/{e2e-legacy → integration}/import/import-user-data.spec.js +4 -11
- package/{e2e-legacy → integration}/license/license.spec.js +4 -4
- package/{e2e-legacy → integration}/monitor/global-operation-statuses-component.spec.js +5 -12
- package/{e2e-legacy/monitor/backup-and-restore/backup-and-restore.spec.js → integration/monitor/monitor.backup-and-restore.spec.js} +2 -2
- package/integration/monitor/monitor.queries.spec.js +31 -0
- package/{e2e-legacy/monitor/system → integration/monitor}/monitor.resources.spec.js +2 -3
- package/{e2e-legacy → integration}/repository/ontop-repository.spec.js +1 -1
- package/{e2e-legacy → integration}/repository/repositories.spec.js +45 -37
- package/{e2e-legacy → integration}/resource/resource.spec.js +7 -17
- package/{e2e-legacy → integration}/setup/aclmanagement/create-rule.spec.js +0 -4
- package/{e2e-legacy/setup/autocomplete → integration/setup}/autocomplete.spec.js +7 -6
- package/{e2e-legacy → integration}/setup/connectors-lucene.spec.js +10 -26
- package/{e2e-legacy → integration}/setup/jdbc/jdbc-create.spec.js +4 -4
- package/integration/setup/my-settings.spec.js +289 -0
- package/{e2e-legacy/setup/namespaces → integration/setup}/namespaces.spec.js +5 -6
- package/{e2e-legacy/setup/plugins → integration/setup}/plugins.spec.js +3 -3
- package/{e2e-legacy/setup/rdf-rank → integration/setup}/rdf-rank.spec.js +5 -3
- package/{e2e-legacy/setup/sparql-template/sparql-template-create.spec.js → integration/setup/sparql-template-create.js} +8 -16
- package/{e2e-legacy/setup/sparql-template → integration/setup}/sparql-templates.spec.js +4 -4
- package/{e2e-legacy/setup/users-and-access → integration/setup}/user-and-access.spec.js +87 -184
- package/{e2e-legacy → integration}/sparql-editor/actions/expand-results-over-sameas.spec.js +12 -12
- package/{e2e-legacy → integration}/sparql-editor/actions/include-inferred-statements.spec.js +6 -6
- package/{e2e-legacy → integration}/sparql-editor/actions/inferred-sameas.spec.js +8 -10
- package/{e2e-legacy → integration}/sparql-editor/actions/show-saved-queries.spec.js +6 -1
- package/{e2e-legacy → integration}/sparql-editor/saved-query/abort-query.spec.js +1 -1
- package/{e2e-legacy → integration}/sparql-editor/saved-query/edit-query.spec.js +3 -3
- package/{e2e-legacy → integration}/sparql-editor/saved-query/readonly-query.spec.js +24 -15
- package/{e2e-legacy → integration}/sparql-editor/saved-query/share-query.spec.js +1 -32
- package/{e2e-legacy → integration}/sparql-editor/yasgui-tabs.spec.js +12 -2
- package/{e2e-legacy → integration}/sparql-editor/yasr/pagination.spec.js +18 -5
- package/{e2e-legacy → integration}/sparql-editor/yasr/table-plugin.spec.js +6 -1
- package/integration/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +57 -0
- package/{e2e-legacy → integration}/ttyg/agent-list.spec.js +2 -53
- package/{e2e-legacy → integration}/ttyg/agent-select-menu.spec.js +2 -25
- package/{e2e-legacy → integration}/ttyg/chat-list.spec.js +14 -3
- package/{e2e-legacy → integration}/ttyg/chat-panel.spec.js +6 -74
- package/{e2e-legacy → integration}/ttyg/clone-agent.spec.js +2 -24
- package/{e2e-legacy → integration}/ttyg/create-agent.spec.js +66 -37
- package/{e2e-legacy → integration}/ttyg/create-chat.spec.js +4 -6
- package/{e2e-legacy → integration}/ttyg/delete-agent.spec.js +2 -1
- package/integration/ttyg/edit-agent.spec.js +99 -0
- package/{e2e-legacy → integration}/ttyg/ttyg-view.spec.js +2 -2
- package/{e2e-flaky → integration-flaky}/explore/visual.graph.spec.js +1 -4
- package/{e2e-flaky → integration-flaky}/import/import-server-files-operations.spec.js +2 -2
- package/{e2e-flaky → integration-flaky}/import/import-user-data-batch-operations.spec.js +3 -3
- package/{e2e-flaky → integration-flaky}/setup/sparql-template-create.js +18 -10
- package/integration-flaky/setup/users-and-access/security-and-free-access.spec.js +54 -0
- package/{e2e-flaky → integration-flaky}/sparql-editor/actions/execute-update-query.spec.js +12 -2
- package/{e2e-flaky → integration-flaky}/sparql-editor/actions/share-query.spec.js +7 -1
- package/{e2e-flaky → integration-flaky}/sparql-editor/yasr/table-plugin.spec.js +7 -3
- package/{e2e-legacy → integration-flaky}/ttyg/ttyg-permission.spec.js +17 -23
- package/npm-shrinkwrap.json +3815 -11004
- package/package.json +42 -58
- package/plugins/index.js +5 -10
- package/steps/application-steps.js +6 -8
- package/steps/class-views-steps.js +7 -35
- package/steps/cluster/cluster-page-steps.js +2 -12
- package/steps/error-steps.js +3 -15
- package/steps/explore/graphs-overview-steps.js +1 -21
- package/steps/explore/similarity-index-create-steps.js +3 -5
- package/steps/explore/similarity-indexes-steps.js +2 -16
- package/steps/graphql/graphql-endpoint-management-steps.js +2 -2
- package/steps/guides/guide-dialog-steps.js +2 -81
- package/steps/guides/guide-steps.js +2 -54
- package/steps/home-steps.js +77 -184
- package/steps/import/import-resource-message-dialog.js +1 -1
- package/steps/import/import-steps.js +16 -12
- package/steps/import/import-user-data-steps.js +1 -5
- package/steps/language-selector-steps.js +2 -2
- package/steps/license-steps.js +9 -91
- package/steps/login-steps.js +6 -31
- package/steps/main-menu-steps.js +19 -244
- package/steps/modal-dialog-steps.js +1 -32
- package/steps/monitoring/backup-and-restore-steps.js +3 -9
- package/steps/operations-statuses-component-steps.js +10 -5
- package/steps/repository-selector-steps.js +3 -3
- package/steps/repository-steps.js +18 -64
- package/steps/resource/resource-steps.js +2 -6
- package/steps/setup/acl-management-steps.js +2 -6
- package/steps/setup/autocomplete-steps.js +8 -23
- package/steps/setup/jdbc-steps.js +4 -18
- package/steps/setup/namespace-steps.js +7 -10
- package/steps/setup/plugins-steps.js +5 -12
- package/steps/setup/rdf-rank-steps.js +9 -23
- package/steps/setup/settings-steps.js +2 -101
- package/steps/setup/sparql-templates-steps.js +1 -19
- package/steps/setup/user-and-access-steps.js +16 -50
- package/steps/sparql-editor-steps.js +2 -8
- package/steps/sparql-steps.js +1 -13
- package/steps/toaster-steps.js +6 -18
- package/steps/ttyg/chat-panel-steps.js +2 -40
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +31 -136
- package/steps/ttyg/ttyg-view-steps.js +10 -80
- package/steps/visual-graph-steps.js +10 -106
- package/steps/yasgui/yasgui-loader.js +3 -3
- package/steps/yasgui/yasgui-steps.js +1 -1
- package/steps/yasgui/yasqe-steps.js +4 -35
- package/steps/yasgui/yasr-steps.js +3 -73
- package/stubs/autocomplete/autocomplete-stubs.js +0 -7
- package/stubs/environment-stubs.js +1 -9
- package/stubs/license-stubs.js +0 -51
- package/stubs/repositories/repositories-stubs.js +75 -180
- package/stubs/repositories-stub.js +73 -0
- package/stubs/security-stubs.js +0 -12
- package/stubs/similarity-index-stubs.js +0 -4
- package/stubs/ttyg/ttyg-stubs.js +15 -64
- package/stubs/yasgui/query-stubs.js +1 -5
- package/support/commands.js +1 -22
- package/support/{e2e.js → index.js} +3 -9
- package/support/repository-commands.js +4 -29
- package/support/settings-commands.js +1 -33
- package/support/user-commands.js +4 -9
- package/utils/html-util.js +4 -24
- package/.editorconfig +0 -17
- package/.nycrc +0 -10
- package/cypress-legacy.config.js +0 -47
- package/cypress-security.config.js +0 -36
- package/e2e-flaky/import/import-user-data-url.spec.js +0 -63
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.spec.js +0 -42
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.spec.js +0 -43
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.spec.js +0 -30
- package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js +0 -42
- package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js +0 -39
- package/e2e-legacy/explore/class-relationships/class-relationships-without-selected-repository.spec.js +0 -21
- package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-with-selected-repository.spec.js +0 -44
- package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-without-selected-repository.spec.js +0 -32
- package/e2e-legacy/explore/similarity-index/similarity-index-with-repository.spec.js +0 -38
- package/e2e-legacy/explore/similarity-index/similarity-index-without-repository.spec.js +0 -21
- package/e2e-legacy/explore/visual-graph/node-info-panel.spec.js +0 -58
- package/e2e-legacy/explore/visual-graph/visual-graph-links-limit.spec.js +0 -140
- package/e2e-legacy/explore/visual-graph/visual-graph-with-selected-repository.js +0 -38
- package/e2e-legacy/explore/visual-graph/visual-graph-without-selected-repository.js +0 -21
- package/e2e-legacy/graphql/graphql-endpoint-management-with-endpoints.spec.js +0 -43
- package/e2e-legacy/graphql/graphql-endpoint-management-with-selected-repository.spec.js +0 -39
- package/e2e-legacy/graphql/graphql-endpoint-management-without-selected-repository.spec.js +0 -21
- package/e2e-legacy/graphql/graphql-playground-with-endpoints.spec.js +0 -40
- package/e2e-legacy/graphql/graphql-playground-with-selected-repository.spec.js +0 -38
- package/e2e-legacy/graphql/graphql-playground-without-selected-repository.spec.js +0 -22
- package/e2e-legacy/graphql/graphql-theme.spec.js +0 -73
- package/e2e-legacy/guides/autocomplete/enable-autocomplete-guide.spec.js +0 -49
- package/e2e-legacy/guides/class-hierarcy/class-hierarchy-guide.spec.js +0 -89
- package/e2e-legacy/guides/class-relations/class-relations-guide.spec.js +0 -76
- package/e2e-legacy/guides/connectors/connectors-guide.spec.js +0 -163
- package/e2e-legacy/guides/create-similarity-index/create-similarity-index-guide.spec.js +0 -74
- package/e2e-legacy/guides/download-guide-resource/download-guide-resource-guide.js +0 -55
- package/e2e-legacy/guides/execute-sparql-query/execute-sparql-query-guide.spec.js +0 -92
- package/e2e-legacy/guides/import-rdf-file/confirm-duplicate-rdf-file.spec.js +0 -63
- package/e2e-legacy/guides/import-rdf-file/import-rdf-file.spec.js +0 -105
- package/e2e-legacy/guides/main-menu/main-menu-guide.spec.js +0 -302
- package/e2e-legacy/guides/navigation/navigation-guide.spec.js +0 -64
- package/e2e-legacy/guides/rdf-rank/rdf-rank-guide.spec.js +0 -42
- package/e2e-legacy/guides/repositories/create-repository-guide.spec.js +0 -69
- package/e2e-legacy/guides/table-graph-explore/table-graph-explore-guide.spec.js +0 -167
- package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +0 -157
- package/e2e-legacy/guides/ttyg/conversation/ttyg-conversation-guide.spec.js +0 -92
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +0 -88
- package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +0 -372
- package/e2e-legacy/guides/welcome/welcome-guide.spec.js +0 -36
- package/e2e-legacy/help/guides/guides-autostart.spec.js +0 -126
- package/e2e-legacy/help/guides/guides-confirm-cancel-dialog.js +0 -83
- package/e2e-legacy/help/guides/guides-with-repository.spec.js +0 -32
- package/e2e-legacy/help/guides/guides-without-repository.spec.js +0 -20
- package/e2e-legacy/help/guides/movies-interactive-guide.spec.js +0 -71
- package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-with-repository.spec.js +0 -32
- package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-without-repository.spec.js +0 -20
- package/e2e-legacy/help/system-information/system-information-with-repository.spec.js +0 -32
- package/e2e-legacy/help/system-information/system-information-without-repository.spec.js +0 -20
- package/e2e-legacy/home/cookie-policy/cookie-policy.spec.js +0 -182
- package/e2e-legacy/home/documentation-link.spec.js +0 -41
- package/e2e-legacy/home/home-page-with-selected-repository.spec.js +0 -69
- package/e2e-legacy/home/home-page-without-repositories.spec.js +0 -87
- package/e2e-legacy/home/home-page-without-selected-repository.spec.js +0 -59
- package/e2e-legacy/home/rdf-resource-search.spec.js +0 -160
- package/e2e-legacy/home/view-resource-autocomplete.spec.js +0 -65
- package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +0 -51
- package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +0 -45
- package/e2e-legacy/import/initial-state/import-page-without-selected-repository.spec.js +0 -28
- package/e2e-legacy/license/license-with-repository.spec.js +0 -113
- package/e2e-legacy/license/license-without-repository.spec.js +0 -103
- package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-with-repository.spec.js +0 -36
- package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-without-repository.spec.js +0 -25
- package/e2e-legacy/monitor/query-and-updates/queries-and-updates-with-repository.spec.js +0 -39
- package/e2e-legacy/monitor/query-and-updates/queries-and-updates-without-repository.spec.js +0 -21
- package/e2e-legacy/monitor/system/system-monitoring-with-repository.spec.js +0 -32
- package/e2e-legacy/monitor/system/system-monitoring-without-repository.spec.js +0 -20
- package/e2e-legacy/not-found/not-found.spec.js +0 -23
- package/e2e-legacy/repository/url-with-repository-id-parameter.spec.js +0 -181
- package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +0 -40
- package/e2e-legacy/setup/aclmanagement/acl-management-without-repositories.spec.js +0 -21
- package/e2e-legacy/setup/autocomplete/autocomplete-with-repository.spec.js +0 -40
- package/e2e-legacy/setup/autocomplete/autocomplete-without-repository.spec.js +0 -27
- package/e2e-legacy/setup/cluster/cluster-initial-state-with-cluster.spec.js +0 -34
- package/e2e-legacy/setup/cluster/cluster-initial-state-without-cluster.spec.js +0 -25
- package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +0 -41
- package/e2e-legacy/setup/connectors/connectors-initial-state-without-repositories.spec.js +0 -21
- package/e2e-legacy/setup/jdbc/jdbc-with-repository.spec.js +0 -39
- package/e2e-legacy/setup/jdbc/jdbc-without-repository.spec.js +0 -27
- package/e2e-legacy/setup/namespaces/namespaces-with-repository.spec.js +0 -44
- package/e2e-legacy/setup/namespaces/namespaces-without-repository.spec.js +0 -27
- package/e2e-legacy/setup/plugins/plugins-with-repository.spec.js +0 -38
- package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +0 -28
- package/e2e-legacy/setup/rdf-rank/rdf-rank-with-repository.spec.js +0 -40
- package/e2e-legacy/setup/rdf-rank/rdf-rank-without-repository.spec.js +0 -30
- package/e2e-legacy/setup/repositories/repositories-view-with-repositories.spec.js +0 -40
- package/e2e-legacy/setup/repositories/repositories-view-without-repositories.spec.js +0 -28
- package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +0 -86
- package/e2e-legacy/setup/settings/my-settings.spec.js +0 -207
- package/e2e-legacy/setup/sparql-template/sparql-template-with-repository.spec.js +0 -39
- package/e2e-legacy/setup/sparql-template/sparql-template-without-repository.spec.js +0 -29
- package/e2e-legacy/setup/users-and-access/users-and-access-initial-state.spec.js +0 -25
- package/e2e-legacy/sparql-editor/sparql-page-with-selected-repository.spec.js +0 -33
- package/e2e-legacy/sparql-editor/sparql-page-without-selected-repository.spec.js +0 -26
- package/e2e-legacy/sparql-editor/yasqe-themes.spec.js +0 -54
- package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +0 -106
- package/e2e-legacy/sparql-editor/yasr/yasr.spec.js +0 -80
- package/e2e-legacy/ttyg/edit-agent.spec.js +0 -178
- package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +0 -46
- package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +0 -45
- package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +0 -21
- package/e2e-security/repository/url-with-repository-id-parameter.spec.js +0 -57
- package/e2e-security/setup/home/cookie-policy.spec.js +0 -290
- package/e2e-security/setup/users-and-access/create-user-permissions.spec.js +0 -193
- package/e2e-security/setup/users-and-access/graphql-user.spec.js +0 -126
- package/e2e-security/setup/users-and-access/repo-admin-role.spec.js +0 -70
- package/e2e-security/setup/users-and-access/turn-on-security-and-password-change.spec.js +0 -99
- package/e2e-security/setup/users-and-access/user-and-access.spec.js +0 -87
- package/e2e-security/setup/users-and-access/users-and-access-initial-state.spec.js +0 -38
- package/eslint.config.js +0 -39
- package/fixtures/graph/graph-configurations.json +0 -59
- package/fixtures/guides/autocomplete/enable-autocomplete-guide.json +0 -12
- package/fixtures/guides/class-hierarchy/class-hierarchy-guide.json +0 -35
- package/fixtures/guides/class-relations/class-relations-guide.json +0 -33
- package/fixtures/guides/confirm-cancel-dialog/confirm-cancel-dialog-guide.json +0 -15
- package/fixtures/guides/connectors/connectors-guide.json +0 -66
- package/fixtures/guides/connectors/lucene-connector-guide.json +0 -120
- package/fixtures/guides/create-repository/create-repository-guide.json +0 -25
- package/fixtures/guides/create-similarity-index/create-similarity-index-guide.json +0 -36
- package/fixtures/guides/download-guide-resource/download-guide-resource-guide.json +0 -25
- package/fixtures/guides/download-resource.ttl +0 -629
- package/fixtures/guides/execute-sparql-query/execute-sparql-query-guide.json +0 -54
- package/fixtures/guides/import-rdf-file/confirm-duplicate-rdf-file-guide.json +0 -30
- package/fixtures/guides/import-rdf-file/import-rdf-file-guide.json +0 -21
- package/fixtures/guides/main-menu/main-menu-guide.json +0 -98
- package/fixtures/guides/navigation/navigation-guide.json +0 -60
- package/fixtures/guides/rdf-rank/rdf-rank-guide.json +0 -18
- package/fixtures/guides/table-graph-explore/table-graph-explore-guide.json +0 -51
- package/fixtures/guides/table-graph-explore/table-graph-explore-without-substeps-guide.json +0 -25
- package/fixtures/guides/ttyg/configure-agent/configure-ttyg-agent-guide.json +0 -74
- package/fixtures/guides/ttyg/conversation/ttyg-conversation-guide.json +0 -26
- package/fixtures/guides/ttyg/edit-ttyg-agent/edit-ttyg-agent-guide.json +0 -22
- package/fixtures/guides/visual-graph/visual-graph-config-guide.json +0 -39
- package/fixtures/guides/visual-graph/visual-graph-guide.json +0 -85
- package/fixtures/guides/welcome/welcome-guide.json +0 -18
- package/fixtures/repositories/free-access.json +0 -13
- package/fixtures/similarity/get-ttyg-similarity-instances.json +0 -10
- package/fixtures/ttyg/agent/get-agent-defaults-assistant-api.json +0 -44
- package/fixtures/ttyg/agent/get-agent-list-with-incompatible-agents.json +0 -79
- package/fixtures/ttyg/agent/get-similarity-indexes-for-another-repo.json +0 -8
- package/fixtures/ttyg/agent/get-similarity-indexes.json +0 -22
- package/fixtures/ttyg/chats/ask-question-cancel.json +0 -12
- package/fixtures/ttyg/chats/cancel-question-response.json +0 -1
- package/fixtures/ttyg/chats/create/question-response-after-chat-creation.json +0 -29
- package/fixtures/ttyg/chats/explain-response-3.json +0 -12
- package/steps/base-steps.js +0 -29
- package/steps/cookie-policy/cookie-consent-banner-steps.js +0 -21
- package/steps/cookie-policy/cookie-policy-modal.steps.js +0 -56
- package/steps/error-page-steps.js +0 -9
- package/steps/explore/class-relationships-steps.js +0 -64
- package/steps/graphql/playground-editor-steps.js +0 -46
- package/steps/header-steps.js +0 -22
- package/steps/monitoring/queries-and-updates-steps.js +0 -20
- package/steps/monitoring/system-monitoring-steps.js +0 -40
- package/steps/not-found/not-found-steps.js +0 -23
- package/steps/rdf-resource-search-steps.js +0 -55
- package/steps/rest-api-documentation-steps.js +0 -15
- package/steps/setup/connectors-steps.js +0 -32
- package/steps/shared-modal-dialog-steps.js +0 -45
- package/steps/system-information-steps.js +0 -70
- package/steps/widgets/active-repository-widget-steps.js +0 -29
- package/steps/widgets/license-widget-steps.js +0 -9
- package/steps/widgets/repository-errors-widget-steps.js +0 -21
- package/steps/widgets/saved-sparql-queries-widget-steps.js +0 -9
- package/stubs/browser-stubs.js +0 -21
- package/stubs/graph-config-stubs.js +0 -17
- package/stubs/guides/guides-stubs.js +0 -103
- package/stubs/saved-queries-stubs.js +0 -5
- package/stubs/sparql-stubs.js +0 -10
- package/support/connector-commands.js +0 -13
- package/support/e2e-security.js +0 -9
- package/support/url-commands.js +0 -13
- package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +0 -0
- package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +0 -0
- package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
- package/{e2e-legacy → integration}/cluster/cluster-configuration/cluster-configuration.spec.js +0 -0
- package/{e2e-legacy → integration}/cluster/cluster-legend.spec.js +0 -0
- package/{e2e-legacy → integration}/cluster/edit-cluster-nodes-modal.spec.js +0 -0
- package/{e2e-legacy → integration}/graphql/activate-deactivate-graphql-endpoint.spec.js +0 -0
- package/{e2e-legacy → integration}/graphql/delete-graphql-endpoint.spec.js +0 -0
- package/{e2e-legacy → integration}/graphql/export-graphql-endpoint-definition.spec.js +0 -0
- package/{e2e-legacy → integration}/graphql/set-default-graphql-endpoint.spec.js +0 -0
- package/{e2e-legacy/help/system-information → integration/help}/system-information.spec.js +0 -0
- package/{e2e-legacy → integration}/home/create-repository.spec.js +0 -0
- package/{e2e-legacy → integration}/import/import-server-files-batch-operations.spec.js +0 -0
- package/{e2e-legacy → integration}/import/import-user-data-settings-dialog.spec.js +0 -0
- package/{e2e-legacy → integration}/import/import-view.spec.js +0 -0
- package/{e2e-legacy → integration}/repository/attach-remote-location.spec.js +1 -1
- /package/{e2e-legacy → integration}/repository/repository-commands.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/aclmanagement/delete-rule.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/aclmanagement/edit-rule.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/aclmanagement/render-rules.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/aclmanagement/reorder-rules.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/aclmanagement/revert-rules.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/aclmanagement/scopes.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/aclmanagement/update-rules.spec.js +0 -0
- /package/{e2e-legacy → integration}/setup/jdbc/jdbc.spec.js +0 -0
- /package/{e2e-legacy → integration}/sparql-editor/actions/execute-query.spec.js +0 -0
- /package/{e2e-legacy → integration}/sparql-editor/actions/save-query.spec.js +0 -0
- /package/{e2e-legacy → integration}/sparql-editor/internationalization.spec.js +0 -0
- /package/{e2e-legacy → integration}/sparql-editor/saved-query/delete-query.spec.js +0 -0
- /package/{e2e-legacy → integration}/sparql-editor/sparql-editor.spec.js +0 -0
- /package/{e2e-legacy → integration}/sparql-editor/yasr/download-as.spec.js +0 -0
- /package/{e2e-flaky → integration-flaky}/import/import.server.files.spec.js +0 -0
- /package/{e2e-flaky → integration-flaky}/sparql-editor/lucene-connector.spec.js +0 -0
- /package/{e2e-flaky → integration-flaky}/sparql-editor/plugins/error-plugin.spec.js +0 -0
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {ImportUserDataSteps} from "../../steps/import/import-user-data-steps";
|
|
2
|
-
import {ImportSettingsDialogSteps} from "../../steps/import/import-settings-dialog-steps";
|
|
3
|
-
|
|
4
|
-
describe('Import user data: URL import', () => {
|
|
5
|
-
|
|
6
|
-
let repositoryId;
|
|
7
|
-
|
|
8
|
-
const IMPORT_URL = 'https://www.w3.org/TR/owl-guide/wine.rdf';
|
|
9
|
-
const JSONLD_FORMAT = 'JSON-LD';
|
|
10
|
-
const VALID_URL_RDF_FORMAT = 'RDF/XML';
|
|
11
|
-
const RDF_ERROR_MESSAGE = 'RDF Parse Error:';
|
|
12
|
-
const IMPORT_JSONLD_URL = 'https://example.com/0007-context.jsonld';
|
|
13
|
-
|
|
14
|
-
beforeEach(() => {
|
|
15
|
-
repositoryId = 'user-import-' + Date.now();
|
|
16
|
-
cy.createRepository({id: repositoryId});
|
|
17
|
-
ImportUserDataSteps.visitUserImport(repositoryId);
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
afterEach(() => {
|
|
21
|
-
cy.deleteRepository(repositoryId);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
// Test fails because GDB waits for the import link to be resolved and since it is invalid it waits for a timeout, blocking all other requests
|
|
25
|
-
it('should import JSON-LD file via URL with correct request body', () => {
|
|
26
|
-
cy.intercept('GET', `/rest/repositories/${repositoryId}/import/upload`).as('upload');
|
|
27
|
-
|
|
28
|
-
ImportUserDataSteps.stubPostJSONLDFromURL(repositoryId);
|
|
29
|
-
ImportUserDataSteps.openImportURLDialog(IMPORT_JSONLD_URL);
|
|
30
|
-
ImportUserDataSteps.selectRDFFormat(JSONLD_FORMAT);
|
|
31
|
-
ImportUserDataSteps.clickImportUrlButton();
|
|
32
|
-
ImportSettingsDialogSteps.import();
|
|
33
|
-
cy.wait('@postJsonldUrl').then((xhr) => {
|
|
34
|
-
expect(xhr.request.body.name).to.eq('https://example.com/0007-context.jsonld');
|
|
35
|
-
expect(xhr.request.body.data).to.eq('https://example.com/0007-context.jsonld');
|
|
36
|
-
expect(xhr.request.body.type).to.eq('url');
|
|
37
|
-
expect(xhr.request.body.hasContextLink).to.be.true;
|
|
38
|
-
});
|
|
39
|
-
cy.waitUntil(() =>
|
|
40
|
-
cy.wait('@upload').then((xhr) => {
|
|
41
|
-
console.log(xhr.response.body)
|
|
42
|
-
return xhr.response.body[0]?.status === 'ERROR'
|
|
43
|
-
}), {timeout: 10000, interval: 1000}
|
|
44
|
-
)
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('should show error on invalid JSON-LD URL', () => {
|
|
48
|
-
cy.intercept('GET', `/rest/repositories/${repositoryId}/import/upload`).as('upload');
|
|
49
|
-
|
|
50
|
-
ImportUserDataSteps.stubPostJSONLDFromURL();
|
|
51
|
-
ImportUserDataSteps.openImportURLDialog(IMPORT_JSONLD_URL);
|
|
52
|
-
ImportUserDataSteps.selectRDFFormat(JSONLD_FORMAT);
|
|
53
|
-
ImportUserDataSteps.clickImportUrlButton();
|
|
54
|
-
ImportSettingsDialogSteps.import();
|
|
55
|
-
cy.waitUntil(() =>
|
|
56
|
-
cy.wait('@upload').then((xhr) => {
|
|
57
|
-
console.log(xhr.response.body)
|
|
58
|
-
return xhr.response.body[0]?.status === 'ERROR'
|
|
59
|
-
}), {timeout: 10000, interval: 1000}
|
|
60
|
-
)
|
|
61
|
-
ImportUserDataSteps.checkImportedResource(0, IMPORT_JSONLD_URL, 'https://example.com/0007-context.jsonld');
|
|
62
|
-
});
|
|
63
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
2
|
-
import HomeSteps from "../../../steps/home-steps";
|
|
3
|
-
import {RepositoryErrorsWidgetSteps} from "../../../steps/widgets/repository-errors-widget-steps";
|
|
4
|
-
import ClassViewsSteps from "../../../steps/class-views-steps";
|
|
5
|
-
|
|
6
|
-
describe('Initial state of the Class hierarchy view with a selected repository and without class hierarchy', () => {
|
|
7
|
-
|
|
8
|
-
let repositoryId;
|
|
9
|
-
|
|
10
|
-
beforeEach(() => {
|
|
11
|
-
repositoryId = 'class-hierarchy-' + Date.now();
|
|
12
|
-
cy.createRepository({id: repositoryId});
|
|
13
|
-
cy.presetRepository(repositoryId);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
afterEach(() => {
|
|
17
|
-
cy.deleteRepository(repositoryId);
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('Should display the correct initial state when navigating via URL', () => {
|
|
21
|
-
// When: I visit the Class hierarchy page via URL with a repository selected and without class hierarchy
|
|
22
|
-
ClassViewsSteps.visit();
|
|
23
|
-
// Then:
|
|
24
|
-
verifyInitialStateWithSelectedRepository();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('Should display the correct initial state when navigating via the navigation bar', () => {
|
|
28
|
-
// When: I visit the Class hierarchy page via the navigation menu with a repository selected and without class hierarchy
|
|
29
|
-
HomeSteps.visit();
|
|
30
|
-
MainMenuSteps.clickOnClassHierarchy();
|
|
31
|
-
// Then:
|
|
32
|
-
verifyInitialStateWithSelectedRepository();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
const verifyInitialStateWithSelectedRepository = () => {
|
|
36
|
-
RepositoryErrorsWidgetSteps.getWidget().should('be.hidden');
|
|
37
|
-
ClassViewsSteps.getNoHierarchyErrorElement().should('be.visible');
|
|
38
|
-
ClassViewsSteps.getToolbarHolder().should('be.hidden');
|
|
39
|
-
ClassViewsSteps.getSlider().should('be.hidden');
|
|
40
|
-
ClassViewsSteps.getRDFClassHierarchy().should('be.hidden');
|
|
41
|
-
};
|
|
42
|
-
});
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
2
|
-
import HomeSteps from "../../../steps/home-steps";
|
|
3
|
-
import {RepositoryErrorsWidgetSteps} from "../../../steps/widgets/repository-errors-widget-steps";
|
|
4
|
-
import ClassViewsSteps from "../../../steps/class-views-steps";
|
|
5
|
-
|
|
6
|
-
describe('Initial state of the Class hierarchy view with a selected repository', () => {
|
|
7
|
-
const FILE_TO_IMPORT = 'wine.rdf';
|
|
8
|
-
let repositoryId;
|
|
9
|
-
|
|
10
|
-
beforeEach(() => {
|
|
11
|
-
repositoryId = 'class-hierarchy-' + Date.now();
|
|
12
|
-
cy.createRepository({id: repositoryId});
|
|
13
|
-
cy.presetRepository(repositoryId);
|
|
14
|
-
cy.importServerFile(repositoryId, FILE_TO_IMPORT);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
afterEach(() => {
|
|
18
|
-
cy.deleteRepository(repositoryId);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('Should display the correct initial state when navigating via URL', () => {
|
|
22
|
-
// When: I visit the Class hierarchy page via URL with a repository selected
|
|
23
|
-
ClassViewsSteps.visit();
|
|
24
|
-
// Then:
|
|
25
|
-
verifyInitialStateWithSelectedRepository();
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('Should display the correct initial state when navigating via the navigation bar', () => {
|
|
29
|
-
// When: I visit the Class hierarchy page via the navigation menu with a repository selected
|
|
30
|
-
HomeSteps.visit();
|
|
31
|
-
MainMenuSteps.clickOnClassHierarchy();
|
|
32
|
-
// Then:
|
|
33
|
-
verifyInitialStateWithSelectedRepository();
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
const verifyInitialStateWithSelectedRepository = () => {
|
|
37
|
-
RepositoryErrorsWidgetSteps.getWidget().should('be.hidden');
|
|
38
|
-
ClassViewsSteps.getNoHierarchyErrorElement().should('be.hidden');
|
|
39
|
-
ClassViewsSteps.getToolbarHolder().should('be.visible');
|
|
40
|
-
ClassViewsSteps.getSlider().should('be.visible');
|
|
41
|
-
ClassViewsSteps.getRDFClassHierarchy().should('be.visible');
|
|
42
|
-
};
|
|
43
|
-
});
|
package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.spec.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
2
|
-
import HomeSteps from "../../../steps/home-steps";
|
|
3
|
-
import {RepositoryErrorsWidgetSteps} from "../../../steps/widgets/repository-errors-widget-steps";
|
|
4
|
-
import ClassViewsSteps from "../../../steps/class-views-steps";
|
|
5
|
-
|
|
6
|
-
describe('Initial state of the Class hierarchy view without a selected repository', () => {
|
|
7
|
-
|
|
8
|
-
it('Should display the correct initial state when navigating via URL', () => {
|
|
9
|
-
// When: I visit the Class hierarchy page via URL without a repository selected
|
|
10
|
-
ClassViewsSteps.visit();
|
|
11
|
-
// Then:
|
|
12
|
-
verifyInitialStateWithoutSelectedRepository();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('Should display the correct initial state when navigating via the navigation bar', () => {
|
|
16
|
-
// When: I visit the Class hierarchy page via the navigation menu without a repository selected
|
|
17
|
-
HomeSteps.visit();
|
|
18
|
-
MainMenuSteps.clickOnClassHierarchy();
|
|
19
|
-
// Then:
|
|
20
|
-
verifyInitialStateWithoutSelectedRepository();
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const verifyInitialStateWithoutSelectedRepository = () => {
|
|
24
|
-
RepositoryErrorsWidgetSteps.getWidget().should('be.visible');
|
|
25
|
-
ClassViewsSteps.getNoHierarchyErrorElement().should('be.hidden');
|
|
26
|
-
ClassViewsSteps.getToolbarHolder().should('be.hidden');
|
|
27
|
-
ClassViewsSteps.getSlider().should('be.hidden');
|
|
28
|
-
ClassViewsSteps.getRDFClassHierarchy().should('be.hidden');
|
|
29
|
-
};
|
|
30
|
-
});
|
package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {ClassRelationshipsSteps} from "../../../steps/explore/class-relationships-steps";
|
|
2
|
-
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
3
|
-
import HomeSteps from "../../../steps/home-steps";
|
|
4
|
-
|
|
5
|
-
describe('Class Relationships repository with date', () => {
|
|
6
|
-
let repositoryId
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
repositoryId = 'class-relationships-date-' + Date.now()
|
|
10
|
-
cy.createRepository({id: repositoryId});
|
|
11
|
-
cy.presetRepository(repositoryId);
|
|
12
|
-
cy.importServerFile(repositoryId, 'wine.rdf');
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
afterEach(() => {
|
|
16
|
-
cy.deleteRepository(repositoryId);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('Should render Class Relationships with selected repository via URL', () => {
|
|
20
|
-
// Given, I visit the Class Relationships page via URL and I have a selected repository with data
|
|
21
|
-
ClassRelationshipsSteps.visit();
|
|
22
|
-
|
|
23
|
-
// Then
|
|
24
|
-
validateInitialStateWithData();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('Should render Class Relationships with selected repository via navigation menu', () => {
|
|
28
|
-
// Given, I visit the Class Relationships page via navigation menu and I have a selected repository with data
|
|
29
|
-
HomeSteps.visit();
|
|
30
|
-
MainMenuSteps.clickOnClassRelationships();
|
|
31
|
-
|
|
32
|
-
// Then
|
|
33
|
-
validateInitialStateWithData();
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
function validateInitialStateWithData() {
|
|
38
|
-
ClassRelationshipsSteps.verifyRelationsToolbarContent();
|
|
39
|
-
ClassRelationshipsSteps.getFilterField().should('be.visible');
|
|
40
|
-
ClassRelationshipsSteps.getDependenciesList().should('be.visible');
|
|
41
|
-
ClassRelationshipsSteps.getDependenciesDiagram().should('be.visible');
|
|
42
|
-
}
|
package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import HomeSteps from "../../../steps/home-steps";
|
|
2
|
-
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
3
|
-
import {ClassRelationshipsSteps} from "../../../steps/explore/class-relationships-steps";
|
|
4
|
-
|
|
5
|
-
describe('Class Relationships with selected repository', () => {
|
|
6
|
-
let repositoryId;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
repositoryId = 'class-relationships-' + 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 Class Relationships with selected repository via URL', () => {
|
|
19
|
-
// Given, I visit the Class Relationships page via URL and I have a selected repository
|
|
20
|
-
ClassRelationshipsSteps.visit();
|
|
21
|
-
// Then
|
|
22
|
-
validateNoRelationshipsClassRelationshipsPage();
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('Should render Class Relationships with selected repository via navigation menu', () => {
|
|
26
|
-
// Given, I visit the Class Relationships page via navigation menu and I have a selected repository'
|
|
27
|
-
HomeSteps.visit();
|
|
28
|
-
MainMenuSteps.clickOnClassRelationships();
|
|
29
|
-
// Then
|
|
30
|
-
validateNoRelationshipsClassRelationshipsPage();
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
function validateNoRelationshipsClassRelationshipsPage() {
|
|
35
|
-
ClassRelationshipsSteps.getReloadDiagramButton().should('be.visible');
|
|
36
|
-
ClassRelationshipsSteps.getNoDataWarning()
|
|
37
|
-
.should('be.visible')
|
|
38
|
-
.and('contain', 'The currently selected repository contains no dependencies data. Please, reload the diagram if you have imported data recently.')
|
|
39
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {ClassRelationshipsSteps} from "../../../steps/explore/class-relationships-steps";
|
|
2
|
-
import HomeSteps from "../../../steps/home-steps";
|
|
3
|
-
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
4
|
-
import {ErrorSteps} from "../../../steps/error-steps";
|
|
5
|
-
|
|
6
|
-
describe('Class Relationships without selected repository', () => {
|
|
7
|
-
it('Should display the correct initial state when navigating via URL', () => {
|
|
8
|
-
// Given, I visit the Class Relationships page via URL without a repository selected
|
|
9
|
-
ClassRelationshipsSteps.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 Class Relationships page via the navigation menu without a repository selected
|
|
16
|
-
HomeSteps.visit();
|
|
17
|
-
MainMenuSteps.clickOnClassRelationships();
|
|
18
|
-
// Then,
|
|
19
|
-
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
20
|
-
});
|
|
21
|
-
})
|
|
@@ -1,44 +0,0 @@
|
|
|
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 with a selected repository', () => {
|
|
7
|
-
|
|
8
|
-
let repositoryId;
|
|
9
|
-
|
|
10
|
-
beforeEach(() => {
|
|
11
|
-
repositoryId = 'repo' + Date.now();
|
|
12
|
-
cy.createRepository({id: repositoryId});
|
|
13
|
-
cy.presetRepository(repositoryId);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
afterEach(() => {
|
|
17
|
-
cy.deleteRepository(repositoryId);
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('Should display the correct initial state when navigating via URL', () => {
|
|
21
|
-
// When: I visit the Graphs Overview page via URL with a repository selected
|
|
22
|
-
GraphsOverviewSteps.visit();
|
|
23
|
-
// Then:
|
|
24
|
-
verifyInitialStateWithSelectedRepository();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('Should display the correct initial state when navigating via the navigation bar', () => {
|
|
28
|
-
// When: I visit the Graphs Overview page via the navigation menu with a repository selected
|
|
29
|
-
HomeSteps.visit();
|
|
30
|
-
MainMenuSteps.clickOnGraphsOverview();
|
|
31
|
-
// Then:
|
|
32
|
-
verifyInitialStateWithSelectedRepository();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
const verifyInitialStateWithSelectedRepository = () => {
|
|
36
|
-
RepositoryErrorsWidgetSteps.getWidget().should('be.hidden');
|
|
37
|
-
GraphsOverviewSteps.getGraphsSearchInput().should('be.visible');
|
|
38
|
-
GraphsOverviewSteps.getGraphsPaginator().should('be.visible');
|
|
39
|
-
GraphsOverviewSteps.getClearRepositoryButton().should('be.visible');
|
|
40
|
-
GraphsOverviewSteps.getExportRepositoryButton().should('be.visible');
|
|
41
|
-
GraphsOverviewSteps.getDownloadAllButtons().should('be.visible');
|
|
42
|
-
GraphsOverviewSteps.getResultsElement().should('be.visible');
|
|
43
|
-
};
|
|
44
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {VisualGraphSteps} from '../../../steps/visual-graph-steps.js';
|
|
2
|
-
import {ApplicationSteps} from '../../../steps/application-steps.js';
|
|
3
|
-
|
|
4
|
-
const DATA_SNIPPET =
|
|
5
|
-
'PREFIX ex: <http://example.org/>\n' +
|
|
6
|
-
'PREFIX sysont: <http://www.ontotext.com/proton/protonsys#>\n' +
|
|
7
|
-
'PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n' +
|
|
8
|
-
'ex:MyNode a ex:Thing ;\n' +
|
|
9
|
-
'rdfs:label "My Node" ;\n' +
|
|
10
|
-
'ex:description """# My Node\n\nThis is a **Markdown** literal.\n\n- item 1\n- item 2"""^^sysont:Markdown .';
|
|
11
|
-
|
|
12
|
-
describe('Node info panel', () => {
|
|
13
|
-
let repositoryId;
|
|
14
|
-
let graphConfigName;
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
cy.clearLocalStorage('ls.graphs-viz');
|
|
18
|
-
repositoryId = 'node-info-panel-' + Date.now();
|
|
19
|
-
graphConfigName = 'graph-config-' + Date.now();
|
|
20
|
-
cy.createRepository({id: repositoryId});
|
|
21
|
-
cy.presetRepository(repositoryId);
|
|
22
|
-
cy.importRDFTextSnippet(repositoryId, DATA_SNIPPET);
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
afterEach(() => {
|
|
26
|
-
cy.clearLocalStorage('ls.graphs-viz');
|
|
27
|
-
cy.deleteGraphConfig(graphConfigName);
|
|
28
|
-
cy.deleteRepository(repositoryId);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('should render markdown content for literals with markdown datatype', () => {
|
|
32
|
-
cy.enableAutocomplete(repositoryId);
|
|
33
|
-
// Given I have opened the graphs visualizations page
|
|
34
|
-
VisualGraphSteps.visit();
|
|
35
|
-
// And I have created a graph config with query results
|
|
36
|
-
VisualGraphSteps.getCreateCustomGraphLink().click();
|
|
37
|
-
cy.url().should('include', '/config/save');
|
|
38
|
-
VisualGraphSteps.typeGraphConfigName(graphConfigName);
|
|
39
|
-
VisualGraphSteps.selectStartMode('node');
|
|
40
|
-
VisualGraphSteps.selectStartNode('MyNode', 0);
|
|
41
|
-
VisualGraphSteps.saveConfig();
|
|
42
|
-
ApplicationSteps.getSuccessNotifications().should('be.visible');
|
|
43
|
-
VisualGraphSteps.getGraphConfig(graphConfigName).should('be.visible');
|
|
44
|
-
// When I open the graph config
|
|
45
|
-
VisualGraphSteps.openGraphConfig(graphConfigName);
|
|
46
|
-
// Then I expect the graph visualization of the saved config to be opened
|
|
47
|
-
cy.url().should('contain', Cypress.config('baseUrl') + '/graphs-visualizations?config=');
|
|
48
|
-
VisualGraphSteps.getGraphVisualizationPane().should('be.visible');
|
|
49
|
-
// When I click on the node with markdown content
|
|
50
|
-
VisualGraphSteps.getCircleOfNodeByNodeId('http://example.org/MyNode').click();
|
|
51
|
-
// Then node info panel should be opened
|
|
52
|
-
VisualGraphSteps.getSidePanelContent().should('be.visible');
|
|
53
|
-
// And the markdown typed literal should be rendered
|
|
54
|
-
VisualGraphSteps.getPropertyByIndex(1).should('contain', 'This is a Markdown literal')
|
|
55
|
-
.and('contain', 'item 1')
|
|
56
|
-
.and('contain', 'item 2');
|
|
57
|
-
});
|
|
58
|
-
});
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import {VisualGraphSteps} from '../../../steps/visual-graph-steps';
|
|
2
|
-
import {MainMenuSteps} from '../../../steps/main-menu-steps.js';
|
|
3
|
-
import {LicenseStubs} from '../../../stubs/license-stubs';
|
|
4
|
-
import {ApplicationSteps} from '../../../steps/application-steps';
|
|
5
|
-
import HomeSteps from '../../../steps/home-steps.js';
|
|
6
|
-
import {BaseSteps} from "../../../steps/base-steps.js";
|
|
7
|
-
import SparqlSteps from "../../../steps/sparql-steps.js";
|
|
8
|
-
|
|
9
|
-
const FILE_TO_IMPORT = 'wine.rdf';
|
|
10
|
-
const VALID_RESOURCE = 'USRegion';
|
|
11
|
-
const DEFAULT_LINKS_LIMIT = 100;
|
|
12
|
-
|
|
13
|
-
describe('Visual graph linksLimit URL parameter', () => {
|
|
14
|
-
|
|
15
|
-
let repositoryId;
|
|
16
|
-
|
|
17
|
-
beforeEach(() => {
|
|
18
|
-
cy.clearLocalStorage('ls.graphs-viz');
|
|
19
|
-
repositoryId = 'graphRepo-' + Date.now();
|
|
20
|
-
cy.createRepository({id: repositoryId});
|
|
21
|
-
cy.presetRepository(repositoryId);
|
|
22
|
-
cy.importServerFile(repositoryId, FILE_TO_IMPORT);
|
|
23
|
-
cy.enableAutocomplete(repositoryId);
|
|
24
|
-
|
|
25
|
-
LicenseStubs.spyGetLicense();
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
afterEach(() => {
|
|
29
|
-
cy.clearLocalStorage('ls.graphs-viz');
|
|
30
|
-
cy.deleteRepository(repositoryId);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it('Should include linksLimit as a URL parameter and respect its value', () => {
|
|
34
|
-
// Given I am on the home page, and I don't have a linkLimit in the URL
|
|
35
|
-
HomeSteps.visit();
|
|
36
|
-
BaseSteps.getUrl().should('not.include', 'linksLimit');
|
|
37
|
-
|
|
38
|
-
// When, I visit the visual graph via the main menu and open a resource
|
|
39
|
-
MainMenuSteps.clickOnVisualGraph();
|
|
40
|
-
VisualGraphSteps.verifyPageLoaded();
|
|
41
|
-
VisualGraphSteps.searchForResourceAndOpen(VALID_RESOURCE, VALID_RESOURCE);
|
|
42
|
-
|
|
43
|
-
// Then, I expect to see the visual graph with the default linksLimit
|
|
44
|
-
BaseSteps.getUrl().should('include', `linksLimit=${DEFAULT_LINKS_LIMIT}`);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// When, I update the link limit from the input field
|
|
48
|
-
VisualGraphSteps.updateLinksLimitField(5);
|
|
49
|
-
|
|
50
|
-
// Then I expect the URL to include the updated linksLimit in the URL
|
|
51
|
-
BaseSteps.getUrl().should('include', 'linksLimit=5');
|
|
52
|
-
// And, I expect to see the visual graph with the updated linksLimit
|
|
53
|
-
VisualGraphSteps.getNodes().should('have.length', 6); // 5 links plus the main node
|
|
54
|
-
|
|
55
|
-
// When, I change the linksLimit URL param directly to 10 and navigate to the updated URL
|
|
56
|
-
BaseSteps.getUrl().then((url) => {
|
|
57
|
-
const newUrl = new URL(url);
|
|
58
|
-
newUrl.searchParams.set('linksLimit', '10');
|
|
59
|
-
BaseSteps.visit(newUrl.toString().replace(Cypress.config('baseUrl'), ''));
|
|
60
|
-
});
|
|
61
|
-
// Then, I expect to see the visual graph with the updated linksLimit
|
|
62
|
-
VisualGraphSteps.getNodes().should('have.length', 11) // 10 links plus the main node;
|
|
63
|
-
// And, I expect the menu to be updated with the new linksLimit
|
|
64
|
-
VisualGraphSteps.getLinksNumberField().should('have.value', '10');
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it('Should show an error toast and ignore linksLimit when the URL param value is invalid', () => {
|
|
68
|
-
// Given, I visit the visual graph with an invalid linksLimit URL param (outside the 1-1000 range)
|
|
69
|
-
BaseSteps.visit(`/graphs-visualizations?uri=http:%2F%2Fwww.w3.org%2FTR%2F2003%2FPR-owl-guide-20031209%2Fwine%23${VALID_RESOURCE}&linksLimit=9999`);
|
|
70
|
-
|
|
71
|
-
// Then, I expect to see an error notification about the invalid links limit
|
|
72
|
-
ApplicationSteps.getErrorNotifications()
|
|
73
|
-
.should('be.visible')
|
|
74
|
-
.and('contain', 'Invalid links limit');
|
|
75
|
-
// And I expect to see the visual graph with the default linksLimit
|
|
76
|
-
BaseSteps.getUrl().should('include', 'linksLimit=100');
|
|
77
|
-
VisualGraphSteps.getLinksNumberField().should('have.value', String(DEFAULT_LINKS_LIMIT));
|
|
78
|
-
|
|
79
|
-
// When, I try to set the limit to an invalid value via the form
|
|
80
|
-
VisualGraphSteps.updateLinksLimitField(1001);
|
|
81
|
-
|
|
82
|
-
// Then, I should see a warning message that the link limit is invalid
|
|
83
|
-
VisualGraphSteps.getInvalidLinksMessage().should('be.visible').and('contain', 'Enter a number up to 1000');
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
describe('When the user has a custom graph config', () => {
|
|
87
|
-
const configName = 'linkLimitConfig';
|
|
88
|
-
|
|
89
|
-
it('should change link limit, when starting point is query', () => {
|
|
90
|
-
// Given, I visit the visual graph and create a config with query starting point
|
|
91
|
-
VisualGraphSteps.visit();
|
|
92
|
-
VisualGraphSteps.createCustomGraph();
|
|
93
|
-
VisualGraphSteps.typeGraphConfigName(configName);
|
|
94
|
-
VisualGraphSteps.selectStartMode('query');
|
|
95
|
-
VisualGraphSteps.selectPredefinedQuerySample(0);
|
|
96
|
-
VisualGraphSteps.saveConfig();
|
|
97
|
-
VisualGraphSteps.openGraphConfig(configName);
|
|
98
|
-
|
|
99
|
-
// Then, I expect to see 10 nodes before changing the limit
|
|
100
|
-
BaseSteps.getUrl().should('include', 'linksLimit=10');
|
|
101
|
-
VisualGraphSteps.getNodes().should('have.length', 10); // 10 nodes total, since we don't have a root node
|
|
102
|
-
|
|
103
|
-
// When, I update the link limit from the input field
|
|
104
|
-
VisualGraphSteps.updateLinksLimitField(5);
|
|
105
|
-
|
|
106
|
-
// Then I expect the URL to include the updated linksLimit in the URL
|
|
107
|
-
BaseSteps.getUrl().should('include', 'linksLimit=5');
|
|
108
|
-
// And, I expect to see the visual graph with the updated linksLimit
|
|
109
|
-
VisualGraphSteps.getNodes().should('have.length', 5); // 5 nodes total, since we don't have a root node
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
afterEach(() => {
|
|
113
|
-
cy.deleteGraphConfig(configName)
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
describe('When the user has opened a graph with construct query', () => {
|
|
118
|
-
it('should change link limit, when is graph is opened in queryResultsMode', () => {
|
|
119
|
-
// Given, I open a graph in queryResultsMode (after construct query in the SPARQL editor)
|
|
120
|
-
// And enter a construct query, so I can visualize the results in a graph
|
|
121
|
-
SparqlSteps.visit();
|
|
122
|
-
SparqlSteps.typeQuery(`CONSTRUCT WHERE {?s ?p ?o} LIMIT 10`);
|
|
123
|
-
SparqlSteps.executeQuery();
|
|
124
|
-
SparqlSteps.visualizeConstructQuery();
|
|
125
|
-
|
|
126
|
-
// Then, I expect to see 10 nodes before changing the limit
|
|
127
|
-
VisualGraphSteps.getNodes().should('have.length', 10); // 10 nodes total, since we don't have a root node
|
|
128
|
-
|
|
129
|
-
// When, I update the link limit from the input field
|
|
130
|
-
VisualGraphSteps.updateLinksLimitField(5);
|
|
131
|
-
|
|
132
|
-
// Then I expect the URL to include the updated linksLimit in the URL
|
|
133
|
-
BaseSteps.getUrl().should('include', 'linksLimit=5');
|
|
134
|
-
// And, I expect to see the visual graph with the updated linksLimit
|
|
135
|
-
VisualGraphSteps.getNodes().should('have.length', 5); // 5 nodes total, since we don't have a root node
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
|