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
|
@@ -28,14 +28,14 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
28
28
|
QueryStubs.stubQueryResults(queryDescription);
|
|
29
29
|
// When I open the editor
|
|
30
30
|
// Then I expect that expand results should be enabled by default
|
|
31
|
-
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', '
|
|
31
|
+
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: ON');
|
|
32
32
|
YasqeSteps.getExpandResultsOverSameAsButton().should('have.class', 'icon-same-as-on');
|
|
33
33
|
YasqeSteps.executeQuery();
|
|
34
34
|
cy.wait('@query-1_0_1001_1').its('request.body').should('contain', 'sameAs=true');
|
|
35
35
|
// When I disable the expand results action
|
|
36
36
|
YasqeSteps.expandResultsOverSameAs();
|
|
37
37
|
// Then I expect that the button state should be changed
|
|
38
|
-
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', '
|
|
38
|
+
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: OFF');
|
|
39
39
|
YasqeSteps.getExpandResultsOverSameAsButton().should('have.class', 'icon-same-as-off');
|
|
40
40
|
// And sameAs=false parameter should be sent with the request
|
|
41
41
|
YasqeSteps.executeQuery();
|
|
@@ -44,7 +44,7 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
44
44
|
// When I disable the include inferred action
|
|
45
45
|
YasqeSteps.includeInferredStatements();
|
|
46
46
|
// Then I expect that sameAs should be disabled too
|
|
47
|
-
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', '
|
|
47
|
+
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', 'data-tooltip', 'Requires \'Include Inferred\'!');
|
|
48
48
|
YasqeSteps.getExpandResultsOverSameAsButton().should('have.class', 'icon-same-as-off');
|
|
49
49
|
YasqeSteps.executeQuery();
|
|
50
50
|
cy.wait('@query-1_0_1001_1').its('request.body').should('contain', 'infer=false&sameAs=false');
|
|
@@ -60,7 +60,7 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
60
60
|
// Then I expect that "sameAs" element to be enabled by default
|
|
61
61
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-on');
|
|
62
62
|
// and the tooltip of element describes that "sameAs" element is enabled.
|
|
63
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
63
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: ON');
|
|
64
64
|
|
|
65
65
|
// When I open a new Tab.
|
|
66
66
|
YasguiSteps.openANewTab();
|
|
@@ -68,10 +68,10 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
68
68
|
// Then I expect that "sameAs" element to be enabled in the new tab.
|
|
69
69
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-on');
|
|
70
70
|
// and the tooltip of element describes that "sameAs" element is enabled.
|
|
71
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
71
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: ON');
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
it('should not be enabled when infer is true and sameAs is false in user settings',() => {
|
|
74
|
+
it('should not be enabled when infer is true and sameAs is false in user settings', {retries: {runMode: 2}},() => {
|
|
75
75
|
QueryStubs.stubInferAndSameAsDefaults(true, false);
|
|
76
76
|
|
|
77
77
|
// When I visit a page with "ontotext-yasgui-web-component" in it.
|
|
@@ -81,7 +81,7 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
81
81
|
// Then I expect that "sameAs" element to be disabled by default
|
|
82
82
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-off');
|
|
83
83
|
// and the tooltip of element describes that "sameAs" element is disabled.
|
|
84
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
84
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: OFF');
|
|
85
85
|
|
|
86
86
|
// When I open a new Tab.
|
|
87
87
|
YasguiSteps.openANewTab();
|
|
@@ -89,7 +89,7 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
89
89
|
// Then I expect that "sameAs" element to be disabled in the new tab.
|
|
90
90
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-off');
|
|
91
91
|
// and the tooltip of element describes that "sameAs" element is disabled.
|
|
92
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
92
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: OFF');
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
it('should not be enabled when infer is false and sameAs is true in user settings', () => {
|
|
@@ -100,7 +100,7 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
100
100
|
YasguiSteps.getYasgui().should('be.visible');
|
|
101
101
|
|
|
102
102
|
// Then I expect that "sameAs" element to be disabled by default
|
|
103
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
103
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Requires \'Include Inferred\'!');
|
|
104
104
|
// and the tooltip of element describes that "infer" is required.
|
|
105
105
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-off');
|
|
106
106
|
|
|
@@ -110,7 +110,7 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
110
110
|
// Then I expect that "sameAs" element to be disabled in the new tab,
|
|
111
111
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-off');
|
|
112
112
|
// and the tooltip of element describes that "infer" is required.
|
|
113
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
113
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Requires \'Include Inferred\'!');
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
it('should not be enabled when infer is false and sameAs is false in user settings', () => {
|
|
@@ -123,7 +123,7 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
123
123
|
// Then I expect that "sameAs" element to be disabled by default,
|
|
124
124
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-off');
|
|
125
125
|
// and the tooltip of element describes that "infer" is required.
|
|
126
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
126
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Requires \'Include Inferred\'!');
|
|
127
127
|
|
|
128
128
|
// When I open a new Tab.
|
|
129
129
|
YasguiSteps.openANewTab();
|
|
@@ -131,6 +131,6 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
131
131
|
// Then I expect that "sameAs" element to be disabled in the new tab,
|
|
132
132
|
YasqeSteps.getActionButton(4).should('have.class', 'icon-same-as-off');
|
|
133
133
|
// and the tooltip of element describes that "infer" is required.
|
|
134
|
-
YasqeSteps.getActionButtonTooltip(4).should('have.attr', '
|
|
134
|
+
YasqeSteps.getActionButtonTooltip(4).should('have.attr', 'data-tooltip', 'Requires \'Include Inferred\'!');
|
|
135
135
|
});
|
|
136
136
|
});
|
package/{e2e-legacy → integration}/sparql-editor/actions/include-inferred-statements.spec.js
RENAMED
|
@@ -32,7 +32,7 @@ describe('Include inferred statements', () => {
|
|
|
32
32
|
// Then I expect that include inferred statements should be enabled by default,
|
|
33
33
|
YasqeSteps.getIncludeInferredStatementsButton().should('have.class', 'icon-inferred-on');
|
|
34
34
|
// and the tooltip of element describes that "infer" functionality is enabled.
|
|
35
|
-
YasqeSteps.getIncludeInferredStatementsButtonTooltip().should('have.attr', '
|
|
35
|
+
YasqeSteps.getIncludeInferredStatementsButtonTooltip().should('have.attr', 'data-tooltip', 'Include inferred data in results: ON');
|
|
36
36
|
|
|
37
37
|
// When I execute a query.
|
|
38
38
|
YasqeSteps.executeQuery();
|
|
@@ -46,7 +46,7 @@ describe('Include inferred statements', () => {
|
|
|
46
46
|
// Then I expect the include inferred statements should be enabled by default,
|
|
47
47
|
YasqeSteps.getIncludeInferredStatementsButton().should('have.class', 'icon-inferred-off');
|
|
48
48
|
// and the tooltip of element describes that "infer" functionality is disabled.
|
|
49
|
-
YasqeSteps.getIncludeInferredStatementsButtonTooltip().should('have.attr', '
|
|
49
|
+
YasqeSteps.getIncludeInferredStatementsButtonTooltip().should('have.attr', 'data-tooltip', 'Include inferred data in results: OFF');
|
|
50
50
|
|
|
51
51
|
// When I execute a query.
|
|
52
52
|
YasqeSteps.executeQuery();
|
|
@@ -66,7 +66,7 @@ describe('Include inferred statements', () => {
|
|
|
66
66
|
// Then I expect that "infer" element to be enabled by default,
|
|
67
67
|
YasqeSteps.getActionButton(3).should('have.class', 'icon-inferred-on');
|
|
68
68
|
// and the tooltip of element describes that "infer" functionality is enabled.
|
|
69
|
-
YasqeSteps.getActionButtonTooltip(3).should('have.attr', '
|
|
69
|
+
YasqeSteps.getActionButtonTooltip(3).should('have.attr', 'data-tooltip', 'Include inferred data in results: ON');
|
|
70
70
|
|
|
71
71
|
// When I open a new Tab.
|
|
72
72
|
YasguiSteps.openANewTab();
|
|
@@ -74,7 +74,7 @@ describe('Include inferred statements', () => {
|
|
|
74
74
|
// Then I expect that inferred element to be enabled in the new tab,
|
|
75
75
|
YasqeSteps.getActionButton(3).should('have.class', 'icon-inferred-on');
|
|
76
76
|
// and the tooltip of element describes that "infer" element is enabled.
|
|
77
|
-
YasqeSteps.getActionButtonTooltip(3).should('have.attr', '
|
|
77
|
+
YasqeSteps.getActionButtonTooltip(3).should('have.attr', 'data-tooltip', 'Include inferred data in results: ON');
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
it('should not be enabled when user settings is set to false.', () => {
|
|
@@ -87,7 +87,7 @@ describe('Include inferred statements', () => {
|
|
|
87
87
|
// Then I expect that "infer" element to be disabled by default,
|
|
88
88
|
YasqeSteps.getActionButton(3).should('have.class', 'icon-inferred-off');
|
|
89
89
|
// and the tooltip of element describes that "infer" element is disabled.
|
|
90
|
-
YasqeSteps.getActionButtonTooltip(3).should('have.attr', '
|
|
90
|
+
YasqeSteps.getActionButtonTooltip(3).should('have.attr', 'data-tooltip', 'Include inferred data in results: OFF');
|
|
91
91
|
|
|
92
92
|
// When I open a new Tab.
|
|
93
93
|
YasguiSteps.openANewTab();
|
|
@@ -95,6 +95,6 @@ describe('Include inferred statements', () => {
|
|
|
95
95
|
// Then I expect that inferred element to be disabled in the new tab,
|
|
96
96
|
YasqeSteps.getActionButton(3).should('have.class', 'icon-inferred-off');
|
|
97
97
|
// and the tooltip of element describes that "infer" element is disabled.
|
|
98
|
-
YasqeSteps.getActionButtonTooltip(3).should('have.attr', '
|
|
98
|
+
YasqeSteps.getActionButtonTooltip(3).should('have.attr', 'data-tooltip', 'Include inferred data in results: OFF');
|
|
99
99
|
});
|
|
100
100
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {SparqlEditorSteps} from "../../../steps/sparql-editor-steps";
|
|
2
2
|
import {YasqeSteps} from "../../../steps/yasgui/yasqe-steps";
|
|
3
|
-
import {
|
|
4
|
-
import {RepositoriesStubs} from '../../../stubs/repositories/repositories-stubs.js';
|
|
3
|
+
import {RepositoriesStub} from "../../../stubs/repositories-stub";
|
|
5
4
|
|
|
6
5
|
describe('Expand results over owl:sameAs', () => {
|
|
7
6
|
|
|
@@ -9,10 +8,9 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
9
8
|
|
|
10
9
|
beforeEach(() => {
|
|
11
10
|
repositoryId = 'sparql-editor-' + Date.now();
|
|
12
|
-
cy.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
AutocompleteStubs.stubAutocompleteEnabled(false);
|
|
11
|
+
cy.setLocalStorage("ls.repository-id", repositoryId);
|
|
12
|
+
RepositoriesStub.stubOntopRepository(repositoryId);
|
|
13
|
+
RepositoriesStub.stubNameSpaces(repositoryId);
|
|
16
14
|
});
|
|
17
15
|
|
|
18
16
|
it('should not be able to toggle the sameAs button state if repository is virtual', () => {
|
|
@@ -20,14 +18,14 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
20
18
|
SparqlEditorSteps.visitSparqlEditorPage();
|
|
21
19
|
|
|
22
20
|
// Then I expect sameAs button to be on.
|
|
23
|
-
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', '
|
|
21
|
+
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: ON');
|
|
24
22
|
YasqeSteps.getExpandResultsOverSameAsButton().should('have.class', 'icon-same-as-on');
|
|
25
23
|
|
|
26
24
|
// When I click on inferred button
|
|
27
25
|
YasqeSteps.getExpandResultsOverSameAsButton().click({force: true});
|
|
28
26
|
|
|
29
27
|
// Then I expect sameAs button to not be toggled.
|
|
30
|
-
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', '
|
|
28
|
+
YasqeSteps.getExpandResultsOverSameAsButtonTooltip().should('have.attr', 'data-tooltip', 'Expand results over owl:sameAs: ON');
|
|
31
29
|
YasqeSteps.getExpandResultsOverSameAsButton().should('have.class', 'icon-same-as-on');
|
|
32
30
|
});
|
|
33
31
|
|
|
@@ -36,14 +34,14 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
36
34
|
SparqlEditorSteps.visitSparqlEditorPage();
|
|
37
35
|
|
|
38
36
|
// Then I expect inferred button to be on.
|
|
39
|
-
YasqeSteps.getActionButtonTooltip(3).should('have.attr', '
|
|
37
|
+
YasqeSteps.getActionButtonTooltip(3).should('have.attr', 'data-tooltip', 'Include inferred data in results: ON');
|
|
40
38
|
YasqeSteps.getActionButton(3).should('have.class', 'icon-inferred-on');
|
|
41
39
|
|
|
42
40
|
// When I click on inferred button
|
|
43
41
|
YasqeSteps.getActionButton(3).click({force: true});
|
|
44
42
|
|
|
45
43
|
// Then I expect inferred button to not be toggled.
|
|
46
|
-
YasqeSteps.getActionButtonTooltip(3).should('have.attr', '
|
|
44
|
+
YasqeSteps.getActionButtonTooltip(3).should('have.attr', 'data-tooltip', 'Include inferred data in results: ON');
|
|
47
45
|
YasqeSteps.getActionButton(3).should('have.class', 'icon-inferred-on');
|
|
48
46
|
});
|
|
49
47
|
});
|
|
@@ -30,7 +30,12 @@ describe('Show saved queries', () => {
|
|
|
30
30
|
SavedQueriesDialog.getSavedQueries().should('have.length.gt', 0);
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
it('Should be able to select a query from the list',
|
|
33
|
+
it('Should be able to select a query from the list', {
|
|
34
|
+
retries: {
|
|
35
|
+
runMode: 1,
|
|
36
|
+
openMode: 0
|
|
37
|
+
}
|
|
38
|
+
}, () => {
|
|
34
39
|
// Given I have opened the saved queries popup
|
|
35
40
|
YasguiSteps.showSavedQueries();
|
|
36
41
|
SavedQueriesDialog.getSavedQueriesPopup().should('be.visible');
|
|
@@ -39,7 +39,7 @@ describe('Abort query', () => {
|
|
|
39
39
|
YasqeSteps.hoverOverAbortQueryButton();
|
|
40
40
|
|
|
41
41
|
// Then I expect to see tooltip that describes what happen if click on it.
|
|
42
|
-
|
|
42
|
+
cy.get('div[data-tippy-root]').contains('Click to abort query');
|
|
43
43
|
|
|
44
44
|
// When I click on the button.
|
|
45
45
|
YasqeSteps.getAbortQueryButton().realClick();
|
|
@@ -4,7 +4,6 @@ import {QueryStubs} from "../../../stubs/yasgui/query-stubs";
|
|
|
4
4
|
import {SavedQuery} from "../../../steps/yasgui/saved-query";
|
|
5
5
|
import {SavedQueriesDialog} from "../../../steps/yasgui/saved-queries-dialog";
|
|
6
6
|
import {SaveQueryDialog} from "../../../steps/yasgui/save-query-dialog";
|
|
7
|
-
import {RepositorySelectorSteps} from "../../../steps/repository-selector-steps";
|
|
8
7
|
|
|
9
8
|
describe('Edit saved queries', () => {
|
|
10
9
|
|
|
@@ -20,7 +19,7 @@ describe('Edit saved queries', () => {
|
|
|
20
19
|
QueryStubs.stubDefaultQueryResponse(repositoryId);
|
|
21
20
|
|
|
22
21
|
SparqlEditorSteps.visitSparqlEditorPage();
|
|
23
|
-
|
|
22
|
+
YasguiSteps.getYasgui().should('be.visible');
|
|
24
23
|
});
|
|
25
24
|
|
|
26
25
|
afterEach(() => {
|
|
@@ -55,7 +54,8 @@ describe('Edit saved queries', () => {
|
|
|
55
54
|
SaveQueryDialog.closeSaveQueryDialog();
|
|
56
55
|
});
|
|
57
56
|
|
|
58
|
-
|
|
57
|
+
// TODO skipped until .env can be updated with BE version, which includes the API changes
|
|
58
|
+
it.skip('should allow renaming saved query', () => {
|
|
59
59
|
// Given I have created a query
|
|
60
60
|
SavedQuery.create(savedQueryName);
|
|
61
61
|
// When I open the saved queries popup
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import {SparqlEditorSteps} from
|
|
2
|
-
import {YasguiSteps} from
|
|
3
|
-
import {QueryStubs} from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import {SparqlEditorSteps} from "../../../steps/sparql-editor-steps";
|
|
2
|
+
import {YasguiSteps} from "../../../steps/yasgui/yasgui-steps";
|
|
3
|
+
import {QueryStubs} from "../../../stubs/yasgui/query-stubs";
|
|
4
|
+
import {UserAndAccessSteps} from "../../../steps/setup/user-and-access-steps";
|
|
5
|
+
import {SavedQuery} from "../../../steps/yasgui/saved-query";
|
|
6
|
+
import {SavedQueriesDialog} from "../../../steps/yasgui/saved-queries-dialog";
|
|
7
|
+
import {LoginSteps} from "../../../steps/login-steps";
|
|
7
8
|
|
|
8
9
|
const USER_NAME = 'saved_query_user';
|
|
9
10
|
const USER_ADMINISTRATOR = 'admin';
|
|
10
11
|
const PASSWORD = 'root';
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Skipped because this type of implementation is not ideal. If the test fails and the `afterEach` hook
|
|
15
|
+
* fails to toggle security, all remaining tests will fail because security remains enabled.
|
|
16
|
+
*
|
|
17
|
+
* Tests like this should be refactored to use stubs or other alternative implementations.
|
|
18
|
+
*/
|
|
19
|
+
describe.skip('Readonly saved query', () => {
|
|
13
20
|
|
|
14
21
|
let repositoryId;
|
|
15
22
|
|
|
@@ -20,21 +27,23 @@ describe('Readonly saved query', () => {
|
|
|
20
27
|
cy.presetRepository(repositoryId);
|
|
21
28
|
QueryStubs.stubDefaultQueryResponse(repositoryId);
|
|
22
29
|
cy.createUser({username: USER_NAME, password: PASSWORD});
|
|
23
|
-
|
|
30
|
+
UserAndAccessSteps.visit();
|
|
31
|
+
UserAndAccessSteps.toggleSecurity();
|
|
24
32
|
});
|
|
25
33
|
|
|
26
34
|
afterEach(() => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
LoginSteps.logout();
|
|
36
|
+
cy.deleteRepository(repositoryId);
|
|
37
|
+
UserAndAccessSteps.visit();
|
|
38
|
+
LoginSteps.loginWithUser(USER_ADMINISTRATOR, PASSWORD);
|
|
39
|
+
UserAndAccessSteps.toggleSecurity();
|
|
40
|
+
cy.deleteUser(USER_NAME);
|
|
32
41
|
});
|
|
33
42
|
|
|
34
43
|
it('Should not allow modifying a saved query if it is readonly', () => {
|
|
35
|
-
SparqlEditorSteps.visitSparqlEditorPage()
|
|
36
44
|
// Given: There is a public saved query created by a user.
|
|
37
45
|
LoginSteps.loginWithUser(USER_NAME, PASSWORD);
|
|
46
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
38
47
|
YasguiSteps.getYasgui().should('be.visible');
|
|
39
48
|
const savedQueryName = SavedQuery.generateQueryName();
|
|
40
49
|
SavedQuery.create(savedQueryName);
|
|
@@ -42,8 +51,8 @@ describe('Readonly saved query', () => {
|
|
|
42
51
|
|
|
43
52
|
// When: I log in with another user
|
|
44
53
|
LoginSteps.loginWithUser(USER_ADMINISTRATOR, PASSWORD);
|
|
45
|
-
SparqlEditorSteps.visitSparqlEditorPage();
|
|
46
54
|
// and open the popup with the saved query.
|
|
55
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
47
56
|
YasguiSteps.showSavedQueries();
|
|
48
57
|
|
|
49
58
|
// Then: I expect:
|
|
@@ -5,8 +5,6 @@ import {QueryStubs} from "../../../stubs/yasgui/query-stubs";
|
|
|
5
5
|
import {DEFAULT_QUERY, SavedQuery} from "../../../steps/yasgui/saved-query";
|
|
6
6
|
import {SavedQueriesDialog} from "../../../steps/yasgui/saved-queries-dialog";
|
|
7
7
|
import {ShareSavedQueryDialog} from "../../../steps/yasgui/share-saved-query-dialog";
|
|
8
|
-
import {SaveQueryDialog} from "../../../steps/yasgui/save-query-dialog.js";
|
|
9
|
-
|
|
10
8
|
|
|
11
9
|
describe('Share saved queries', () => {
|
|
12
10
|
|
|
@@ -37,10 +35,7 @@ describe('Share saved queries', () => {
|
|
|
37
35
|
// Then I expect that share query dialog will be opened
|
|
38
36
|
ShareSavedQueryDialog.getDialog().should('be.visible');
|
|
39
37
|
ShareSavedQueryDialog.getShareLink().then((shareLink) => {
|
|
40
|
-
|
|
41
|
-
expect(url.pathname).to.equal('/sparql');
|
|
42
|
-
expect(url.searchParams.get('repositoryId')).to.equal(repositoryId);
|
|
43
|
-
expect(url.searchParams.get('savedQueryName')).to.equal(savedQueryName);
|
|
38
|
+
expect(shareLink).to.have.string(`/sparql?savedQueryName=${encodeURIComponent(savedQueryName)}`);
|
|
44
39
|
});
|
|
45
40
|
// When I click copy button
|
|
46
41
|
ShareSavedQueryDialog.copyLink();
|
|
@@ -49,7 +44,6 @@ describe('Share saved queries', () => {
|
|
|
49
44
|
ApplicationSteps.getSuccessNotifications().should('be.visible');
|
|
50
45
|
});
|
|
51
46
|
|
|
52
|
-
// FIX: Skipped because the functionality is not working. There is a bug in the application https://graphwise.atlassian.net/browse/GDB-12633
|
|
53
47
|
it('Should be able to open a share link in a new editor tab', () => {
|
|
54
48
|
// Given I have created a query
|
|
55
49
|
YasguiSteps.getTabs().should('have.length', 1);
|
|
@@ -81,29 +75,4 @@ describe('Share saved queries', () => {
|
|
|
81
75
|
// YasguiSteps.getTabQuery(0).should('contain', DEFAULT_QUERY);
|
|
82
76
|
});
|
|
83
77
|
});
|
|
84
|
-
|
|
85
|
-
it('should send correct payload when saving a shared query', () => {
|
|
86
|
-
const savedQueryName = SavedQuery.generateQueryName();
|
|
87
|
-
const queryBody = 'select *';
|
|
88
|
-
QueryStubs.interceptSavedQueryCreation();
|
|
89
|
-
|
|
90
|
-
YasguiSteps.createSavedQuery();
|
|
91
|
-
SaveQueryDialog.clearQueryNameField();
|
|
92
|
-
SaveQueryDialog.writeQueryName(savedQueryName);
|
|
93
|
-
SaveQueryDialog.clearQueryField();
|
|
94
|
-
SaveQueryDialog.writeQuery(queryBody);
|
|
95
|
-
SaveQueryDialog.getIsPublicField().should('not.be.checked');
|
|
96
|
-
SaveQueryDialog.toggleIsPublic();
|
|
97
|
-
|
|
98
|
-
SaveQueryDialog.saveQuery();
|
|
99
|
-
|
|
100
|
-
cy.wait('@saveQuery').then(({request, response}) => {
|
|
101
|
-
expect(request.body).to.deep.equal({
|
|
102
|
-
name: savedQueryName,
|
|
103
|
-
body: queryBody,
|
|
104
|
-
shared: true
|
|
105
|
-
});
|
|
106
|
-
expect(response.statusCode).to.eq(201);
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
78
|
});
|
|
@@ -46,7 +46,12 @@ describe('Yasgui tabs', () => {
|
|
|
46
46
|
YasguiSteps.getCurrentTabTitle().should('have.text', 'Unnamed');
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
it('Should ask for confirmation on tab close through tab context menu',
|
|
49
|
+
it('Should ask for confirmation on tab close through tab context menu', {
|
|
50
|
+
retries: {
|
|
51
|
+
runMode: 1,
|
|
52
|
+
openMode: 0
|
|
53
|
+
}
|
|
54
|
+
}, () => {
|
|
50
55
|
// Given I have opened yasgui with a single opened tab
|
|
51
56
|
SparqlEditorSteps.visitSparqlEditorPage();
|
|
52
57
|
// And I have created a second tab
|
|
@@ -63,7 +68,12 @@ describe('Yasgui tabs', () => {
|
|
|
63
68
|
YasguiSteps.getCurrentTabTitle().should('have.text', 'Unnamed');
|
|
64
69
|
});
|
|
65
70
|
|
|
66
|
-
it('Should ask for confirmation on close other tabs action',
|
|
71
|
+
it('Should ask for confirmation on close other tabs action', {
|
|
72
|
+
retries: {
|
|
73
|
+
runMode: 1,
|
|
74
|
+
openMode: 0
|
|
75
|
+
}
|
|
76
|
+
}, () => {
|
|
67
77
|
// Given I have opened yasgui with a single opened tab
|
|
68
78
|
SparqlEditorSteps.visitSparqlEditorPage();
|
|
69
79
|
// And I have created more tabs
|
|
@@ -39,14 +39,18 @@ describe('Yasr result pagination', () => {
|
|
|
39
39
|
YasrSteps.getPagination().should('not.be.visible');
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
it('should not be visible when results of query are less than configured page size',
|
|
42
|
+
it('should not be visible when results of query are less than configured page size', {
|
|
43
|
+
retries: {
|
|
44
|
+
runMode: 1,
|
|
45
|
+
openMode: 0
|
|
46
|
+
}
|
|
47
|
+
}, () => {
|
|
43
48
|
// When I visit a page with "ontotext-yasgui" component in it,
|
|
44
49
|
// and execute a query which returns results less than page size.
|
|
45
50
|
const queryDescription = new QueryStubDescription()
|
|
46
51
|
.setRepositoryId(repositoryId)
|
|
47
52
|
.setTotalElements(3);
|
|
48
53
|
QueryStubs.stubQueryResults(queryDescription);
|
|
49
|
-
YasqeSteps.getExecuteQueryButton().should('be.visible');
|
|
50
54
|
YasqeSteps.executeQuery();
|
|
51
55
|
|
|
52
56
|
// Then I expect pagination to not be visible
|
|
@@ -57,7 +61,6 @@ describe('Yasr result pagination', () => {
|
|
|
57
61
|
.setRepositoryId(repositoryId)
|
|
58
62
|
.setTotalElements(1000);
|
|
59
63
|
QueryStubs.stubQueryResults(queryDescription);
|
|
60
|
-
YasqeSteps.getExecuteQueryButton().should('be.visible');
|
|
61
64
|
YasqeSteps.executeQuery();
|
|
62
65
|
|
|
63
66
|
// Then I expect pagination to not be visible
|
|
@@ -107,7 +110,12 @@ describe('Yasr result pagination', () => {
|
|
|
107
110
|
YasrSteps.getResultLink(0, 2).should('have.text', 'ontogen:page_2-row_1-column_2');
|
|
108
111
|
});
|
|
109
112
|
|
|
110
|
-
it('should change page when clink on next or previous page button',
|
|
113
|
+
it('should change page when clink on next or previous page button', {
|
|
114
|
+
retries: {
|
|
115
|
+
runMode: 1,
|
|
116
|
+
openMode: 0
|
|
117
|
+
}
|
|
118
|
+
}, () => {
|
|
111
119
|
// When I visit a page with "ontotext-yasgui" component in it,
|
|
112
120
|
// and execute a query which returns results more than page size.
|
|
113
121
|
const queryDescription = new QueryStubDescription()
|
|
@@ -143,7 +151,12 @@ describe('Yasr result pagination', () => {
|
|
|
143
151
|
YasrSteps.getResultLink(0, 2).should('have.text', 'ontogen:page_1-row_1-column_2');
|
|
144
152
|
});
|
|
145
153
|
|
|
146
|
-
it('should should render pages in pager properly',
|
|
154
|
+
it('should should render pages in pager properly', {
|
|
155
|
+
retries: {
|
|
156
|
+
runMode: 1,
|
|
157
|
+
openMode: 1
|
|
158
|
+
}
|
|
159
|
+
}, () => {
|
|
147
160
|
// When I visit a page with "ontotext-yasgui" component in it,
|
|
148
161
|
// and execute a query which results are on 6 pages.
|
|
149
162
|
const queryDescription = new QueryStubDescription()
|
|
@@ -21,7 +21,12 @@ describe('Yasr Table plugin', () => {
|
|
|
21
21
|
|
|
22
22
|
describe('Results formatting', () => {
|
|
23
23
|
|
|
24
|
-
it('Should format all resources as short uris when results are of type uri',
|
|
24
|
+
it('Should format all resources as short uris when results are of type uri', {
|
|
25
|
+
retries: {
|
|
26
|
+
runMode: 1,
|
|
27
|
+
openMode: 0
|
|
28
|
+
}
|
|
29
|
+
}, () => {
|
|
25
30
|
// When I execute a query which return results and results type is uri.
|
|
26
31
|
QueryStubs.stubDefaultQueryResponse();
|
|
27
32
|
YasqeSteps.executeQuery();
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {SparqlEditorSteps} from "../../../../steps/sparql-editor-steps";
|
|
2
|
+
import {YasqeSteps} from "../../../../steps/yasgui/yasqe-steps";
|
|
3
|
+
import {YasrSteps} from "../../../../steps/yasgui/yasr-steps";
|
|
4
|
+
import {QueryStubs} from "../../../../stubs/yasgui/query-stubs";
|
|
5
|
+
|
|
6
|
+
describe('Visual graph button when user execute a CONSTRUCT query', () => {
|
|
7
|
+
let repositoryId;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
repositoryId = 'sparql-editor-' + Date.now();
|
|
11
|
+
QueryStubs.stubQueryCountResponse();
|
|
12
|
+
cy.createRepository({id: repositoryId});
|
|
13
|
+
cy.presetRepository(repositoryId);
|
|
14
|
+
// Given I visit a page with "ontotex-yasgu-web-component" in it.
|
|
15
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
afterEach(() => {
|
|
19
|
+
cy.deleteRepository(repositoryId);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('Should display a "Visual" graph button configured by user', {
|
|
23
|
+
retries: {
|
|
24
|
+
runMode: 1,
|
|
25
|
+
openMode: 0
|
|
26
|
+
}
|
|
27
|
+
}, () => {
|
|
28
|
+
// When I visit a page with "ontotext-yasgui-web-component" on it,
|
|
29
|
+
// and select a CONSTRUCT query.
|
|
30
|
+
YasqeSteps.executeQuery();
|
|
31
|
+
|
|
32
|
+
// Then I expect "Visual" button to not be visible.
|
|
33
|
+
YasrSteps.getVisualButton().should('not.be.visible');
|
|
34
|
+
|
|
35
|
+
// When I execute a CONSTRUCT query.
|
|
36
|
+
YasqeSteps.pasteQuery(
|
|
37
|
+
'PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>' +
|
|
38
|
+
'PREFIX onto: <http://www.ontotext.com/>' +
|
|
39
|
+
'CONSTRUCT {' +
|
|
40
|
+
'?source rdf:type ?destination .' +
|
|
41
|
+
'} WHERE {' +
|
|
42
|
+
'?bag rdf:type ?source .' +
|
|
43
|
+
'?flight rdf:type ?destination' +
|
|
44
|
+
'}');
|
|
45
|
+
YasqeSteps.executeQuery();
|
|
46
|
+
|
|
47
|
+
// Then I expect "Visual" button to be visible.
|
|
48
|
+
YasrSteps.getVisualButton().should('be.visible');
|
|
49
|
+
|
|
50
|
+
// When I execute SELECT query again.
|
|
51
|
+
YasqeSteps.pasteQuery('select * where {?s ?p ?o.}');
|
|
52
|
+
YasqeSteps.executeQuery();
|
|
53
|
+
|
|
54
|
+
// Then I expect "Visual" button to not be visible.
|
|
55
|
+
YasrSteps.getVisualButton().should('not.be.visible');
|
|
56
|
+
});
|
|
57
|
+
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {TTYGViewSteps} from "../../steps/ttyg/ttyg-view-steps";
|
|
2
2
|
import {TTYGStubs} from "../../stubs/ttyg/ttyg-stubs";
|
|
3
3
|
import {RepositoriesStubs} from "../../stubs/repositories/repositories-stubs";
|
|
4
|
-
import {
|
|
4
|
+
import {RepositoriesStub} from "../../stubs/repositories-stub";
|
|
5
5
|
|
|
6
6
|
describe('TTYG agent list', () => {
|
|
7
7
|
beforeEach(() => {
|
|
8
8
|
RepositoriesStubs.stubRepositories(0, '/repositories/get-ttyg-repositories.json');
|
|
9
|
-
|
|
9
|
+
RepositoriesStub.stubBaseEndpoints('starwars');
|
|
10
10
|
cy.presetRepository('starwars');
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -73,55 +73,4 @@ describe('TTYG agent list', () => {
|
|
|
73
73
|
{name: 'Databricks-biomarkers', repositoryId: 'biomarkers', isRepositoryDeleted: false}
|
|
74
74
|
]);
|
|
75
75
|
});
|
|
76
|
-
|
|
77
|
-
it('should filter agent actions based on compatibility', () => {
|
|
78
|
-
TTYGStubs.stubAgentListWithIncompatibleGet();
|
|
79
|
-
// When: I visit the ttyg page with incompatible agents
|
|
80
|
-
TTYGViewSteps.visit();
|
|
81
|
-
// Then: Only the delete action should be available for incompatible agents
|
|
82
|
-
TTYGViewSteps.expandAgentsSidebar();
|
|
83
|
-
TTYGViewSteps.getAgentsPanel(0).should('be.visible');
|
|
84
|
-
TTYGViewSteps.getOpenAgentActionsButton(0).should('be.visible');
|
|
85
|
-
TTYGViewSteps.toggleAgentActionMenu(0);
|
|
86
|
-
TTYGViewSteps.getDeleteAgentButton(0).should('be.visible');
|
|
87
|
-
TTYGViewSteps.getCloneAgentButton(0).should('not.exist');
|
|
88
|
-
TTYGViewSteps.getEditAgentButton(0).should('not.exist');
|
|
89
|
-
TTYGViewSteps.toggleAgentActionMenu(0);
|
|
90
|
-
// And: All actions should be available for compatible agents
|
|
91
|
-
TTYGViewSteps.toggleAgentActionMenu(1);
|
|
92
|
-
TTYGViewSteps.getDeleteAgentButton(1).should('be.visible');
|
|
93
|
-
TTYGViewSteps.getCloneAgentButton(1).should('be.visible');
|
|
94
|
-
TTYGViewSteps.getEditAgentButton(1).should('be.visible');
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it('should allow copy of External integration configuration from agent list', () => {
|
|
98
|
-
TTYGStubs.stubAgentListGet('/ttyg/agent/get-agent-list-autocomplete-query.json');
|
|
99
|
-
TTYGStubs.getExternalUrl();
|
|
100
|
-
// Given I have opened the ttyg page
|
|
101
|
-
TTYGViewSteps.visit();
|
|
102
|
-
cy.wait('@get-agent-list');
|
|
103
|
-
// When I select an agent from the sidebar
|
|
104
|
-
TTYGViewSteps.expandAgentsSidebar();
|
|
105
|
-
TTYGViewSteps.toggleAgentActionMenu(0);
|
|
106
|
-
TTYGViewSteps.getExternalIntegrationConfigButton(0).should('be.visible');
|
|
107
|
-
TTYGViewSteps.openExternalIntegrationConfigButton(0);
|
|
108
|
-
cy.wait('@external-url');
|
|
109
|
-
// The url dialog should open
|
|
110
|
-
TtygAgentSettingsModalSteps.getExternalIntegrationModal().should('be.visible');
|
|
111
|
-
// The dialog should have all the fields
|
|
112
|
-
TtygAgentSettingsModalSteps.getAgentUrlField().invoke('val')
|
|
113
|
-
.then((val) => {
|
|
114
|
-
expect(val).to.equal('asst_G8EtHyT8kAGeDmCa3Nh6y74v');
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
TtygAgentSettingsModalSteps.getMethodUrlField().invoke('val')
|
|
118
|
-
.then((val) => {
|
|
119
|
-
expect(val).to.equal('http://user-pc:7200/rest/llm/tool/ttyg/asst_G8EtHyT8kAGeDmCa3Nh6y74v');
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
TtygAgentSettingsModalSteps.getDifyUrlField().invoke('val')
|
|
123
|
-
.then((val) => {
|
|
124
|
-
expect(val).to.equal('http://user-pc:7200/rest/llm/ttyg/asst_G8EtHyT8kAGeDmCa3Nh6y74v/dify');
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
76
|
});
|