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
package/package.json
CHANGED
|
@@ -1,60 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"cypress-failed-log": "^2.10.0",
|
|
45
|
-
"cypress-file-upload": "^5.0.8",
|
|
46
|
-
"cypress-localstorage-commands": "^2.2.7",
|
|
47
|
-
"cypress-multi-reporters": "^2.0.5",
|
|
48
|
-
"cypress-real-events": "^1.14.0",
|
|
49
|
-
"cypress-terminal-report": "^7.2.0",
|
|
50
|
-
"cypress-wait-until": "^3.0.2",
|
|
51
|
-
"del": "^8.0.0",
|
|
52
|
-
"dotenv": "^17.0.1",
|
|
53
|
-
"eslint": "^9.33.0",
|
|
54
|
-
"eslint-plugin-cypress": "^5.1.0",
|
|
55
|
-
"globals": "^17.1.0",
|
|
56
|
-
"minimist": "^1.2.8",
|
|
57
|
-
"mocha-junit-reporter": "^2.2.1",
|
|
58
|
-
"path-browserify": "^1.0.1"
|
|
59
|
-
}
|
|
2
|
+
"name": "graphdb-workbench-tests",
|
|
3
|
+
"version": "3.4.0-TR4",
|
|
4
|
+
"description": "Cypress tests for GraphDB workbench",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"prepack": "npm shrinkwrap",
|
|
7
|
+
"postpack": "mv npm-shrinkwrap.json package-lock.json",
|
|
8
|
+
"start": "cypress open",
|
|
9
|
+
"start:flaky": "cypress open --config-file cypress-flaky.config.js",
|
|
10
|
+
"test": "cypress run",
|
|
11
|
+
"test:flaky": "cypress run --config-file cypress-flaky.config.js",
|
|
12
|
+
"test:partial": "cypress run --spec \"integration/repository/**\"",
|
|
13
|
+
"test:core": "cypress run --spec integration/repository/**,integration/import/**,integration/sparql-editor/**,integration/monitor/**,integration/cluster/**,integration/ttyg/**"
|
|
14
|
+
},
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "Ontotext AD",
|
|
17
|
+
"url": "https://www.ontotext.com/"
|
|
18
|
+
},
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"graphdb",
|
|
22
|
+
"workbench"
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/Ontotext-AD/graphdb-workbench.git"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"cypress": "^14.0.3",
|
|
30
|
+
"cypress-failed-log": "^2.10.0",
|
|
31
|
+
"cypress-file-upload": "^5.0.8",
|
|
32
|
+
"cypress-localstorage-commands": "^2.2.6",
|
|
33
|
+
"cypress-multi-reporters": "^1.6.3",
|
|
34
|
+
"cypress-real-events": "^1.8.1",
|
|
35
|
+
"cypress-terminal-report": "^7.0.3",
|
|
36
|
+
"cypress-wait-until": "^3.0.2",
|
|
37
|
+
"del": "^6.1.1",
|
|
38
|
+
"minimist": "^1.2.5",
|
|
39
|
+
"mocha-junit-reporter": "^2.2.0"
|
|
40
|
+
},
|
|
41
|
+
"resolutions": {
|
|
42
|
+
"minimist": "^1.2.5"
|
|
43
|
+
}
|
|
60
44
|
}
|
package/plugins/index.js
CHANGED
|
@@ -11,20 +11,17 @@
|
|
|
11
11
|
// This function is called when a project is opened or re-opened (e.g. due to
|
|
12
12
|
// the project's config changing)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
import failed from 'cypress-failed-log/src/failed.js';
|
|
16
|
-
import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter.js';
|
|
17
|
-
|
|
14
|
+
const del = require('del');
|
|
18
15
|
const retryTracker = {};
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
module.exports = (on, config) => {
|
|
21
18
|
// `on` is used to hook into various events Cypress emits
|
|
22
19
|
// `config` is the resolved Cypress config
|
|
23
20
|
on('task', {
|
|
24
|
-
failed: failed()
|
|
21
|
+
failed: require('cypress-failed-log/src/failed')()
|
|
25
22
|
});
|
|
26
23
|
|
|
27
|
-
installLogsPrinter(on, {
|
|
24
|
+
require('cypress-terminal-report/src/installLogsPrinter')(on, {
|
|
28
25
|
logToFilesOnAfterRun: true,
|
|
29
26
|
printLogsToConsole: 'onFail',
|
|
30
27
|
outputRoot: config.projectRoot + '/logs/',
|
|
@@ -67,7 +64,7 @@ export default (on, config) => {
|
|
|
67
64
|
test.attempts.some((attempt) => attempt.state === 'failed')
|
|
68
65
|
);
|
|
69
66
|
if (!failures) {
|
|
70
|
-
return
|
|
67
|
+
return del(results.video);
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
70
|
});
|
|
@@ -98,6 +95,4 @@ export default (on, config) => {
|
|
|
98
95
|
printGroup('[FAIL] Broken tests', broken);
|
|
99
96
|
console.log('====================================================================================================\n');
|
|
100
97
|
});
|
|
101
|
-
|
|
102
|
-
return config;
|
|
103
98
|
};
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import {ToasterSteps} from "./toaster-steps";
|
|
2
|
-
|
|
3
1
|
export class ApplicationSteps {
|
|
4
2
|
|
|
5
3
|
// notifications
|
|
6
4
|
static getNotifications() {
|
|
7
|
-
return
|
|
5
|
+
return cy.get('#toast-container');
|
|
8
6
|
}
|
|
9
7
|
|
|
10
8
|
static getSuccessNotifications() {
|
|
11
|
-
return this.getNotifications().
|
|
9
|
+
return this.getNotifications().find('.toast-success');
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
static getErrorNotifications() {
|
|
15
|
-
return this.getNotifications().
|
|
13
|
+
return this.getNotifications().find('.toast-error');
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
static getInfoNotification() {
|
|
19
|
-
return this.getNotifications().
|
|
17
|
+
return this.getNotifications().find('.toast-info');
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
static getWarningNotification() {
|
|
23
|
-
return this.getNotifications().
|
|
21
|
+
return this.getNotifications().find('.toast-warning');
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
// navigation via main menu
|
|
27
25
|
static openImportPage() {
|
|
28
|
-
cy.get('
|
|
26
|
+
cy.get('.main-menu .menu-element-root[href=import]').click();
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
static geLoader() {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Reusable functions for interacting with graph dropdown on Class hierarchy and relationships pages.
|
|
3
3
|
*/
|
|
4
|
-
import {ToasterSteps} from "./toaster-steps";
|
|
5
|
-
import {BaseSteps} from './base-steps.js';
|
|
6
4
|
|
|
7
5
|
export const GRAPH_FILE = 'graphdb-news-dataset.zip';
|
|
8
6
|
export const ALL_GRAPHS = 'All graphs';
|
|
9
7
|
export const NEWS_GRAPH = 'http://example.org/news';
|
|
10
8
|
|
|
11
|
-
class ClassViewsSteps
|
|
9
|
+
class ClassViewsSteps {
|
|
12
10
|
static visit() {
|
|
13
11
|
cy.visit('/hierarchy');
|
|
14
12
|
cy.window();
|
|
@@ -23,14 +21,6 @@ class ClassViewsSteps extends BaseSteps {
|
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
static getClassViewsComponent() {
|
|
27
|
-
return cy.get('.explore');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static getExploreResults() {
|
|
31
|
-
return this.getClassViewsComponent().find('.explore_results');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
24
|
static getClassChart() {
|
|
35
25
|
return cy.get('#classChart');
|
|
36
26
|
}
|
|
@@ -116,7 +106,7 @@ class ClassViewsSteps extends BaseSteps {
|
|
|
116
106
|
}
|
|
117
107
|
|
|
118
108
|
static getReturnButton() {
|
|
119
|
-
return cy.get('.
|
|
109
|
+
return cy.get('.icon-arrow-left');
|
|
120
110
|
}
|
|
121
111
|
|
|
122
112
|
static goBack() {
|
|
@@ -132,7 +122,7 @@ class ClassViewsSteps extends BaseSteps {
|
|
|
132
122
|
}
|
|
133
123
|
|
|
134
124
|
static searchForClass() {
|
|
135
|
-
return cy.get('.toolbar-holder .search
|
|
125
|
+
return cy.get('.toolbar-holder .icon-search').click();
|
|
136
126
|
}
|
|
137
127
|
|
|
138
128
|
static getSearchInput() {
|
|
@@ -159,7 +149,7 @@ class ClassViewsSteps extends BaseSteps {
|
|
|
159
149
|
|
|
160
150
|
static selectGraphFromDropDown(graph) {
|
|
161
151
|
cy.get('#selectGraphDropdown .dropdown-item')
|
|
162
|
-
.each(($el) => {
|
|
152
|
+
.each(($el, index, $list) => {
|
|
163
153
|
if ($el.text().trim() === graph) {
|
|
164
154
|
cy.wrap($el).click();
|
|
165
155
|
}
|
|
@@ -183,7 +173,9 @@ class ClassViewsSteps extends BaseSteps {
|
|
|
183
173
|
}
|
|
184
174
|
|
|
185
175
|
static verifyDataChangedWarning() {
|
|
186
|
-
|
|
176
|
+
cy.get('#toast-container').find('.toast-title')
|
|
177
|
+
.should('be.visible')
|
|
178
|
+
.and('contain', 'Repository data has changed');
|
|
187
179
|
}
|
|
188
180
|
|
|
189
181
|
static confirmReload() {
|
|
@@ -194,26 +186,6 @@ class ClassViewsSteps extends BaseSteps {
|
|
|
194
186
|
static reloadDiagram() {
|
|
195
187
|
cy.get('.reload-diagram-btn').click();
|
|
196
188
|
}
|
|
197
|
-
|
|
198
|
-
static getNoHierarchyErrorElement() {
|
|
199
|
-
return this.getExploreResults().find('.no-hierarchy-error');
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
static getRDFClassHierarchy() {
|
|
203
|
-
return this.getExploreResults().find('.rdf-class-hierarchy');
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
static getClassElement(className) {
|
|
207
|
-
return this.getByTestId(`class-${className}`)
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
static selectClassElement(className) {
|
|
211
|
-
this.getClassElement(className).click({force: true});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
static clickInstanceCountLink() {
|
|
215
|
-
this.getByTestId('instances-count-link').click();
|
|
216
|
-
}
|
|
217
189
|
}
|
|
218
190
|
|
|
219
191
|
export default ClassViewsSteps;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class ClusterPageSteps extends BaseSteps {
|
|
1
|
+
export class ClusterPageSteps {
|
|
4
2
|
static visit() {
|
|
5
3
|
cy.visit('/cluster');
|
|
6
4
|
}
|
|
@@ -9,10 +7,6 @@ export class ClusterPageSteps extends BaseSteps {
|
|
|
9
7
|
return cy.get('.cluster-view');
|
|
10
8
|
}
|
|
11
9
|
|
|
12
|
-
static getNoClusterImage() {
|
|
13
|
-
return this.getClusterPage().find('.no-cluster')
|
|
14
|
-
}
|
|
15
|
-
|
|
16
10
|
static getCreateClusterButton() {
|
|
17
11
|
return cy.get('.cluster-zone');
|
|
18
12
|
}
|
|
@@ -53,12 +47,8 @@ export class ClusterPageSteps extends BaseSteps {
|
|
|
53
47
|
this.getPreviewClusterConfigButton().click();
|
|
54
48
|
}
|
|
55
49
|
|
|
56
|
-
static getLegendButton() {
|
|
57
|
-
return this.getByTestId('toggle-legend-button');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
50
|
static openLegend() {
|
|
61
|
-
return
|
|
51
|
+
return cy.get('.toggle-legend-btn button').click();
|
|
62
52
|
}
|
|
63
53
|
|
|
64
54
|
static getLegend() {
|
package/steps/error-steps.js
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
export class ErrorSteps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return cy.get('.card.repository-errors')
|
|
2
|
+
static getErrorElement() {
|
|
3
|
+
return cy.get('.idError');
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
static verifyError(errorMessage) {
|
|
8
|
-
ErrorSteps.
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static getNoConnectedRepoMessage() {
|
|
12
|
-
return this.getRepositoryErrors().find('.alert.lead.alert-info');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static verifyNoConnectedRepoMessage() {
|
|
16
|
-
this.getRepositoryErrors().should('be.visible');
|
|
17
|
-
this.getNoConnectedRepoMessage()
|
|
18
|
-
.should('be.visible')
|
|
19
|
-
.and('contain', 'Some functionalities are not available because you are not connected to any repository.');
|
|
7
|
+
ErrorSteps.getErrorElement().contains(errorMessage);
|
|
20
8
|
}
|
|
21
9
|
}
|
|
@@ -10,16 +10,8 @@ export class GraphsOverviewSteps {
|
|
|
10
10
|
cy.url().should('eq', `${Cypress.config('baseUrl')}${VIEW_URL}`);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
static getGraphsOverviewComponent() {
|
|
14
|
-
return cy.get('#wb-export');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
static getResultsElement() {
|
|
18
|
-
return cy.get('#export-graphs');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
13
|
static getResults() {
|
|
22
|
-
return
|
|
14
|
+
return cy.get('#export-graphs').find('tbody tr');
|
|
23
15
|
}
|
|
24
16
|
|
|
25
17
|
static getResult(row = 0) {
|
|
@@ -81,16 +73,4 @@ export class GraphsOverviewSteps {
|
|
|
81
73
|
static clickOnDownloadAllButton() {
|
|
82
74
|
this.getDownloadAllButtons().click();
|
|
83
75
|
}
|
|
84
|
-
|
|
85
|
-
static getGraphsSearchInput() {
|
|
86
|
-
return this.getGraphsOverviewComponent().find('.search-graphs');
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
static getGraphsPaginator() {
|
|
90
|
-
return this.getGraphsOverviewComponent().find('.graphs-overview-paginator');
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
static getClearRepositoryButton() {
|
|
94
|
-
return this.getGraphsOverviewComponent().find('.clear-repository-btn');
|
|
95
|
-
}
|
|
96
76
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class SimilarityIndexCreateSteps extends BaseSteps {
|
|
1
|
+
export class SimilarityIndexCreateSteps {
|
|
4
2
|
|
|
5
3
|
static visit() {
|
|
6
4
|
cy.visit('/similarity/index/create');
|
|
@@ -19,7 +17,7 @@ export class SimilarityIndexCreateSteps extends BaseSteps {
|
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
static getCreateButton() {
|
|
22
|
-
return
|
|
20
|
+
return cy.get('.create-similarity-index-btn');
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
static create() {
|
|
@@ -35,7 +33,7 @@ export class SimilarityIndexCreateSteps extends BaseSteps {
|
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
static getSimilarityIndexNameInput() {
|
|
38
|
-
return
|
|
36
|
+
return cy.get('.similarity-index-name');
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
static typeSimilarityIndexName(similarityIndexName) {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class SimilarityIndexesSteps extends BaseSteps{
|
|
1
|
+
export class SimilarityIndexesSteps {
|
|
4
2
|
|
|
5
3
|
static visit() {
|
|
6
4
|
cy.visit('/similarity');
|
|
@@ -10,12 +8,8 @@ export class SimilarityIndexesSteps extends BaseSteps{
|
|
|
10
8
|
cy.url().should('eq', `${Cypress.config('baseUrl')}/similarity`);
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
static getExistingSimilarityIndexes() {
|
|
14
|
-
return this.getByTestId('existing-indexes');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
11
|
static getSimilarityIndexRow(similarityIndexName) {
|
|
18
|
-
return
|
|
12
|
+
return cy.get('.index-row').contains(similarityIndexName).parent().parent();
|
|
19
13
|
}
|
|
20
14
|
|
|
21
15
|
static getEditButton(similarityIndexName) {
|
|
@@ -47,12 +41,4 @@ export class SimilarityIndexesSteps extends BaseSteps{
|
|
|
47
41
|
this.clickResultTypeDropdown();
|
|
48
42
|
cy.get('.dropdown-result-type .dropdown-item').contains(type).click();
|
|
49
43
|
}
|
|
50
|
-
|
|
51
|
-
static getCreateButton() {
|
|
52
|
-
return this.getExistingSimilarityIndexes().getByTestId('create-similarity-index-btn');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
static clickCreateButton() {
|
|
56
|
-
this.getCreateButton().click();
|
|
57
|
-
}
|
|
58
44
|
}
|
|
@@ -35,7 +35,7 @@ export class GraphqlEndpointManagementSteps {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
static getEndpointsInfo() {
|
|
38
|
-
|
|
38
|
+
return this.getEndpointTable().find('tbody tr');
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
static getEndpointLink(index) {
|
|
@@ -89,7 +89,7 @@ export class GraphqlEndpointManagementSteps {
|
|
|
89
89
|
const endpointInfo = data[index];
|
|
90
90
|
cy.wrap($row).within(() => {
|
|
91
91
|
const statusCheck = endpointInfo.status === 'deleted' ? 'not.exist' : 'be.visible';
|
|
92
|
-
cy.get('td').eq(
|
|
92
|
+
cy.get('td').eq(1).find('.endpoint-link').should(statusCheck);
|
|
93
93
|
cy.get('td').eq(2).should('contain', endpointInfo.id);
|
|
94
94
|
cy.get('td').eq(3).should('contain', endpointInfo.label);
|
|
95
95
|
const isDefaultCheck = endpointInfo.default ? 'be.checked' : 'not.be.checked'
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class GuideDialogSteps extends BaseSteps {
|
|
1
|
+
export class GuideDialogSteps {
|
|
4
2
|
|
|
5
3
|
static getModalDialog() {
|
|
6
4
|
return cy.get('.shepherd-content:visible');
|
|
@@ -10,50 +8,6 @@ export class GuideDialogSteps extends BaseSteps {
|
|
|
10
8
|
return GuideDialogSteps.getModalDialog().find('.shepherd-header');
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
static getCancelButton() {
|
|
14
|
-
return this.getHeader().find('.shepherd-cancel-icon');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
static clickOnCancelButton() {
|
|
18
|
-
return this.getCancelButton().click();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
static getConfirmCancelDialog() {
|
|
22
|
-
return this.getByTestId('confirm-cancel-dialog');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static getConfirmCancelDialogCloseButton() {
|
|
26
|
-
return this.getByTestId('close-dialog-btn');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static clickOnConfirmCancelDialogCloseButton() {
|
|
30
|
-
return this.getConfirmCancelDialogCloseButton().click();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
static getConfirmCancelDialogCancelButton() {
|
|
34
|
-
return this.getByTestId('cancel-btn');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
static clickConfirmCancelDialogCancelButton() {
|
|
38
|
-
return this.getConfirmCancelDialogCancelButton().click();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
static getConfirmCancelDialogDontShowAgainButton() {
|
|
42
|
-
return this.getByTestId('dont-show-again-btn');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
static clickConfirmCancelDialogDontShowAgainButton() {
|
|
46
|
-
return this.getConfirmCancelDialogDontShowAgainButton().click();
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
static getConfirmCancelDialogExitButton() {
|
|
50
|
-
return this.getByTestId('exit-btn');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
static clickConfirmCancelDialogExitButton() {
|
|
54
|
-
return this.getConfirmCancelDialogExitButton().click();
|
|
55
|
-
}
|
|
56
|
-
|
|
57
11
|
static getContent() {
|
|
58
12
|
return GuideDialogSteps.getModalDialog().find('.shepherd-text');
|
|
59
13
|
}
|
|
@@ -70,48 +24,15 @@ export class GuideDialogSteps extends BaseSteps {
|
|
|
70
24
|
return GuideDialogSteps.getFooter().find('.shepherd-button').contains('Previous');
|
|
71
25
|
}
|
|
72
26
|
|
|
73
|
-
static getCloseButton() {
|
|
74
|
-
return GuideDialogSteps.getFooter().find('.shepherd-button').contains('Close');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
static getSkipButton() {
|
|
78
|
-
return GuideDialogSteps.getFooter().find('.shepherd-button').contains('Skip');
|
|
79
|
-
}
|
|
80
|
-
|
|
81
27
|
static clickOnNextButton(forceVisible = false) {
|
|
82
|
-
|
|
28
|
+
GuideDialogSteps.getNextButton().scrollIntoView().click({force: forceVisible});
|
|
83
29
|
}
|
|
84
30
|
|
|
85
31
|
static clickOnPreviousButton(forceVisible = false) {
|
|
86
32
|
GuideDialogSteps.getPreviousButton().scrollIntoView().click({force: forceVisible});
|
|
87
33
|
}
|
|
88
34
|
|
|
89
|
-
static clickOnCloseButton() {
|
|
90
|
-
GuideDialogSteps.getCloseButton().scrollIntoView().click();
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
static clickOnSkipButton() {
|
|
94
|
-
GuideDialogSteps.getSkipButton().scrollIntoView().click();
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
static getContentLink() {
|
|
98
|
-
return GuideDialogSteps.getContent().find('a');
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
35
|
static assertDialogWithTitleIsVisible(text) {
|
|
103
36
|
GuideDialogSteps.getHeader().contains(text);
|
|
104
37
|
}
|
|
105
|
-
|
|
106
|
-
static assertDialogWithContentIsVisible(text) {
|
|
107
|
-
GuideDialogSteps.getContent().should('contain.text', text);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
static assertDialogIsClosed() {
|
|
111
|
-
GuideDialogSteps.getModalDialog().should('not.exist');
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
static copyQueryToEditor() {
|
|
115
|
-
GuideDialogSteps.getModalDialog().find('.guide-copy-to-editor-query-button').click();
|
|
116
|
-
}
|
|
117
38
|
}
|
|
@@ -4,29 +4,16 @@ import {RepositorySteps} from "../repository-steps";
|
|
|
4
4
|
import {RepositorySelectorSteps} from "../repository-selector-steps";
|
|
5
5
|
import {AutocompleteSteps} from "../setup/autocomplete-steps";
|
|
6
6
|
import ImportSteps from "../import/import-steps";
|
|
7
|
-
import {BaseSteps} from "../base-steps";
|
|
8
7
|
|
|
9
|
-
export class GuideSteps
|
|
8
|
+
export class GuideSteps {
|
|
10
9
|
static visit() {
|
|
11
10
|
cy.visit('/guides');
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
static autostartGuide(guideId) {
|
|
15
|
-
cy.visit(`/?autostartGuide=${guideId}`);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
13
|
static runGuide(guideName) {
|
|
19
14
|
cy.contains('td', guideName)
|
|
20
15
|
.parent()
|
|
21
|
-
.within(
|
|
22
|
-
cy.get('.btn').click();
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
static runFirstGuide() {
|
|
27
|
-
cy.get('tbody tr')
|
|
28
|
-
.first()
|
|
29
|
-
.within(() => {
|
|
16
|
+
.within($tr => {
|
|
30
17
|
cy.get('.btn').click();
|
|
31
18
|
});
|
|
32
19
|
}
|
|
@@ -39,18 +26,10 @@ export class GuideSteps extends BaseSteps {
|
|
|
39
26
|
cy.get(selector).should('be.visible');
|
|
40
27
|
}
|
|
41
28
|
|
|
42
|
-
static getGuidesModal() {
|
|
43
|
-
return cy.get('.shepherd-modal-is-visible');
|
|
44
|
-
}
|
|
45
|
-
|
|
46
29
|
static assertPageNotInteractive() {
|
|
47
30
|
cy.get('.shepherd-modal-is-visible');
|
|
48
31
|
}
|
|
49
32
|
|
|
50
|
-
static getModalOverlay() {
|
|
51
|
-
return cy.get('.shepherd-modal-overlay-container');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
33
|
static assertWelcomePage(guideName) {
|
|
55
34
|
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to ${guideName} — 2/2`);
|
|
56
35
|
GuideSteps.assertPageNotInteractive();
|
|
@@ -282,35 +261,4 @@ export class GuideSteps extends BaseSteps {
|
|
|
282
261
|
|
|
283
262
|
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
284
263
|
}
|
|
285
|
-
|
|
286
|
-
static getGuidesPerPageBar() {
|
|
287
|
-
return this.getByTestId('guides-per-page-bar');
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
static getGuidesPaginator() {
|
|
291
|
-
return this.getByTestId('guides-paginator');
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
static getGuidesList() {
|
|
295
|
-
return this.getByTestId('guides-list');
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
static verifyInitialState() {
|
|
299
|
-
this.getGuidesPerPageBar().should('be.visible');
|
|
300
|
-
this.getGuidesPaginator().should('exist');
|
|
301
|
-
this.verifyGuidesListExists('be.visible');
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
static verifyGuidesListExists() {
|
|
305
|
-
this.getGuidesList().should('be.visible');
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
static getDownloadResourceLink(guideRepositoryId) {
|
|
309
|
-
const downloadButtonClass = guideRepositoryId ? `.guide-${guideRepositoryId}-download-resource-link` : '.guide-download-resource-link';
|
|
310
|
-
return cy.get(downloadButtonClass);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
static downloadResource(guideRepositoryId) {
|
|
314
|
-
GuideSteps.getDownloadResourceLink(guideRepositoryId).click();
|
|
315
|
-
}
|
|
316
264
|
}
|