graphdb-workbench-tests 3.0.2 → 3.1.0-TR2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +17 -0
- package/cypress-flaky.config.js +15 -4
- package/cypress-legacy.config.js +32 -0
- package/cypress.config.js +8 -4
- package/{integration-flaky → e2e-flaky}/explore/visual.graph.spec.js +4 -1
- package/{integration-flaky → e2e-flaky}/import/import-server-files-operations.spec.js +1 -1
- package/{integration-flaky → e2e-flaky}/setup/sparql-template-create.js +9 -2
- package/{integration-flaky → e2e-flaky}/sparql-editor/yasr/table-plugin.spec.js +2 -1
- package/{integration → e2e-legacy}/cluster/edit-cluster-nodes-modal.spec.js +44 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.spec.js +42 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.spec.js +43 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.spec.js +30 -0
- package/{integration/explore → e2e-legacy/explore/class-hierarchy}/class.hierarchy.spec.js +1 -1
- package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js +42 -0
- package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js +39 -0
- package/e2e-legacy/explore/class-relationships/class-relationships-without-selected-repository.spec.js +21 -0
- package/{integration/explore/class.relationships.spec.js → e2e-legacy/explore/class-relationships/class-relationships.spec.js} +18 -50
- package/{integration/explore → e2e-legacy/explore/graphs-overview}/graphs.overview.spec.js +3 -3
- package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-with-selected-repository.spec.js +44 -0
- package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-without-selected-repository.spec.js +32 -0
- package/e2e-legacy/explore/similarity-index/similarity-index-with-repository.spec.js +38 -0
- package/e2e-legacy/explore/similarity-index/similarity-index-without-repository.spec.js +21 -0
- package/{integration → e2e-legacy}/explore/visual-graph/graphs-config.spec.js +1 -6
- package/e2e-legacy/explore/visual-graph/visual-graph-with-selected-repository.js +38 -0
- package/e2e-legacy/explore/visual-graph/visual-graph-without-selected-repository.js +21 -0
- package/{integration → e2e-legacy}/explore/visual-graph/visual.graph.spec.js +2 -7
- package/{integration → e2e-legacy}/graphql/create-graphql-endpoint.spec.js +0 -2
- package/{integration → e2e-legacy}/graphql/edit-graphql-enpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/filter-graphql-endpoints-on-management-view.spec.js +1 -1
- package/e2e-legacy/graphql/graphql-endpoint management-without-selected-repository.spec.js +21 -0
- package/{integration → e2e-legacy}/graphql/graphql-endpoint-management-view.spec.js +4 -4
- package/e2e-legacy/graphql/graphql-endpoint-management-with-endpoints.spec.js +43 -0
- package/e2e-legacy/graphql/graphql-endpoint-management-with-selected-repository.spec.jsx +39 -0
- package/e2e-legacy/graphql/graphql-playground-with-endpoints.spec.js +40 -0
- package/e2e-legacy/graphql/graphql-playground-with-selected-repository.spec.js +38 -0
- package/e2e-legacy/graphql/graphql-playground-without-selected-repository.spec.js +22 -0
- package/{integration → e2e-legacy}/graphql/graphql-playground.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/import-graphql-endpoint-definitions.spec.js +4 -7
- package/e2e-legacy/help/guides/guides-with-repository.spec.js +32 -0
- package/e2e-legacy/help/guides/guides-without-repository.spec.js +20 -0
- package/{integration → e2e-legacy/help}/guides/movies-interactive-guide.spec.js +3 -3
- package/{integration → e2e-legacy/help}/guides/star-wars-interactive-guide.js +3 -2
- package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-with-repository.spec.js +32 -0
- package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-without-repository.spec.js +20 -0
- package/e2e-legacy/help/system-information/system-information-with-repository.spec.js +32 -0
- package/e2e-legacy/help/system-information/system-information-without-repository.spec.js +20 -0
- package/{integration → e2e-legacy}/home/cookie-policy.spec.js +6 -7
- package/{integration → e2e-legacy}/home/documentation-link.spec.js +27 -23
- package/e2e-legacy/home/home-page-with-selected-repository.spec.js +69 -0
- package/e2e-legacy/home/home-page-without-repositories.spec.js +87 -0
- package/e2e-legacy/home/home-page-without-selected-repository.spec.js +59 -0
- package/{integration → e2e-legacy}/home/language-change.spec.js +2 -2
- package/e2e-legacy/home/rdf-resource-search.spec.js +149 -0
- package/e2e-legacy/home/view-resource-autocomplete.spec.js +65 -0
- package/{integration → e2e-legacy}/import/import-user-data-file-upload.spec.js +16 -10
- package/{integration → e2e-legacy}/import/import-user-data-text-snippet.spec.js +0 -2
- package/{integration → e2e-legacy}/import/import-user-data.spec.js +9 -2
- package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +51 -0
- package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +45 -0
- package/e2e-legacy/import/initial-state/import-page-without-selected-repository.spec.js +28 -0
- package/e2e-legacy/license/license-with-repository.spec.js +113 -0
- package/e2e-legacy/license/license-without-repository.spec.js +103 -0
- package/{integration → e2e-legacy}/license/license.spec.js +4 -4
- package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-with-repository.spec.js +36 -0
- package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-without-repository.spec.js +25 -0
- package/{integration/monitor/monitor.backup-and-restore.spec.js → e2e-legacy/monitor/backup-and-restore/backup-and-restore.spec.js} +2 -2
- package/{integration → e2e-legacy}/monitor/global-operation-statuses-component.spec.js +12 -5
- package/e2e-legacy/monitor/query-and-updates/queries-and-updates-with-repository.spec.js +39 -0
- package/e2e-legacy/monitor/query-and-updates/queries-and-updates-without-repository.spec.js +21 -0
- package/{integration/monitor → e2e-legacy/monitor/system}/monitor.resources.spec.js +3 -2
- package/e2e-legacy/monitor/system/system-monitoring-with-repository.spec.js +32 -0
- package/e2e-legacy/monitor/system/system-monitoring-without-repository.spec.js +20 -0
- package/{integration → e2e-legacy}/repository/repositories.spec.js +34 -45
- package/{integration → e2e-legacy}/resource/resource.spec.js +16 -1
- package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +40 -0
- package/e2e-legacy/setup/aclmanagement/acl-management-without-repositories.spec.js +21 -0
- package/{integration → e2e-legacy}/setup/aclmanagement/create-rule.spec.js +1 -0
- package/e2e-legacy/setup/autocomplete/autocomplete-with-repository.spec.js +40 -0
- package/e2e-legacy/setup/autocomplete/autocomplete-without-repository.spec.js +27 -0
- package/{integration/setup → e2e-legacy/setup/autocomplete}/autocomplete.spec.js +2 -2
- package/e2e-legacy/setup/cluster/cluster-initial-state-with-cluster.spec.js +34 -0
- package/e2e-legacy/setup/cluster/cluster-initial-state-without-cluster.spec.js +25 -0
- package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +41 -0
- package/e2e-legacy/setup/connectors/connectors-initial-state-without-repositories.spec.js +21 -0
- package/e2e-legacy/setup/jdbc/jdbc-with-repository.spec.js +39 -0
- package/e2e-legacy/setup/jdbc/jdbc-without-repository.spec.js +27 -0
- package/e2e-legacy/setup/namespaces/namespaces-with-repository.spec.js +44 -0
- package/e2e-legacy/setup/namespaces/namespaces-without-repository.spec.js +27 -0
- package/{integration/setup → e2e-legacy/setup/namespaces}/namespaces.spec.js +6 -5
- package/e2e-legacy/setup/plugins/plugins-with-repository.spec.js +38 -0
- package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +28 -0
- package/{integration/setup → e2e-legacy/setup/plugins}/plugins.spec.js +3 -3
- package/e2e-legacy/setup/rdf-rank/rdf-rank-with-repository.spec.js +40 -0
- package/e2e-legacy/setup/rdf-rank/rdf-rank-without-repository.spec.js +30 -0
- package/{integration/setup → e2e-legacy/setup/rdf-rank}/rdf-rank.spec.js +1 -1
- package/e2e-legacy/setup/repositories/repositories-view-with-repositories.spec.js +40 -0
- package/e2e-legacy/setup/repositories/repositories-view-without-repositories.spec.js +28 -0
- package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +86 -0
- package/{integration/setup → e2e-legacy/setup/settings}/my-settings.spec.js +5 -75
- package/{integration/setup → e2e-legacy/setup/sparql-template}/sparql-template-create.js +16 -8
- package/e2e-legacy/setup/sparql-template/sparql-template-with-repository.spec.js +39 -0
- package/e2e-legacy/setup/sparql-template/sparql-template-without-repository.spec.js +29 -0
- package/{integration/setup → e2e-legacy/setup/sparql-template}/sparql-templates.spec.js +4 -4
- package/{integration/setup → e2e-legacy/setup/users-and-access}/user-and-access.spec.js +50 -15
- package/e2e-legacy/setup/users-and-access/users-and-access-initial-state.spec.js +25 -0
- package/{integration → e2e-legacy}/sparql-editor/actions/inferred-sameas.spec.js +3 -1
- package/{integration → e2e-legacy}/sparql-editor/saved-query/edit-query.spec.js +3 -3
- package/{integration → e2e-legacy}/sparql-editor/saved-query/readonly-query.spec.js +7 -13
- package/{integration → e2e-legacy}/sparql-editor/saved-query/share-query.spec.js +3 -1
- package/e2e-legacy/sparql-editor/sparql-page-with-selected-repository.spec.js +33 -0
- package/e2e-legacy/sparql-editor/sparql-page-without-selected-repository.spec.js +26 -0
- package/{integration → e2e-legacy}/ttyg/agent-list.spec.js +20 -0
- package/{integration → e2e-legacy}/ttyg/agent-select-menu.spec.js +24 -0
- package/{integration → e2e-legacy}/ttyg/chat-panel.spec.js +29 -3
- package/{integration → e2e-legacy}/ttyg/create-chat.spec.js +3 -1
- package/{integration → e2e-legacy}/ttyg/edit-agent.spec.js +19 -9
- package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +46 -0
- package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +43 -0
- package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +21 -0
- package/e2e-legacy/ttyg/ttyg-permission.spec.js +66 -0
- package/{integration → e2e-legacy}/ttyg/ttyg-view.spec.js +1 -0
- package/fixtures/locale-en.json +22 -4
- package/fixtures/repositories/free-access.json +13 -0
- package/fixtures/ttyg/agent/get-agent-list-with-incompatible-agents.json +79 -0
- package/fixtures/ttyg/chats/ask-question.json +12 -2
- package/fixtures/ttyg/chats/get-chat.json +6 -1
- package/npm-shrinkwrap.json +3557 -3815
- package/package.json +42 -42
- package/plugins/index.js +2 -2
- package/steps/application-steps.js +1 -1
- package/steps/base-steps.js +21 -0
- package/steps/class-views-steps.js +16 -0
- package/steps/cluster/cluster-page-steps.js +12 -2
- package/steps/error-steps.js +15 -0
- package/steps/explore/class-relationships-steps.js +64 -0
- package/steps/explore/graphs-overview-steps.js +21 -1
- package/steps/explore/similarity-indexes-steps.js +12 -2
- package/steps/graphql/graphql-endpoint-management-steps.js +2 -2
- package/steps/guides/guide-steps.js +20 -1
- package/steps/home-steps.js +137 -48
- package/steps/import/import-steps.js +11 -15
- package/steps/import/import-user-data-steps.js +4 -0
- package/steps/language-selector-steps.js +2 -2
- package/steps/license-steps.js +91 -9
- package/steps/login-steps.js +3 -3
- package/steps/main-menu-steps.js +198 -13
- package/steps/modal-dialog-steps.js +20 -0
- package/steps/monitoring/backup-and-restore-steps.js +9 -3
- package/steps/monitoring/queries-and-updates-steps.js +20 -0
- package/steps/monitoring/system-monitoring-steps.js +40 -0
- package/steps/operations-statuses-component-steps.js +5 -10
- package/steps/rdf-resource-search-steps.js +55 -0
- package/steps/repository-selector-steps.js +3 -3
- package/steps/repository-steps.js +17 -12
- package/steps/resource/resource-steps.js +4 -0
- package/steps/rest-api-documentation-steps.js +15 -0
- package/steps/setup/autocomplete-steps.js +13 -6
- package/steps/setup/connectors-steps.js +19 -0
- package/steps/setup/jdbc-steps.js +18 -4
- package/steps/setup/namespace-steps.js +9 -6
- package/steps/setup/plugins-steps.js +11 -4
- package/steps/setup/rdf-rank-steps.js +22 -4
- package/steps/setup/settings-steps.js +82 -1
- package/steps/setup/sparql-templates-steps.js +19 -1
- package/steps/setup/user-and-access-steps.js +9 -1
- package/steps/system-information-steps.js +70 -0
- package/steps/ttyg/chat-panel-steps.js +1 -1
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +8 -12
- package/steps/ttyg/ttyg-view-steps.js +59 -8
- package/steps/visual-graph-steps.js +4 -0
- package/steps/widgets/active-repository-widget-steps.js +25 -0
- package/steps/widgets/license-widget-steps.js +9 -0
- package/steps/widgets/repository-errors-widget-steps.js +21 -0
- package/steps/widgets/saved-sparql-queries-widget-steps.js +9 -0
- package/stubs/autocomplete/autocomplete-stubs.js +7 -0
- package/stubs/browser-stubs.js +31 -0
- package/stubs/environment-stubs.js +9 -1
- package/stubs/license-stubs.js +51 -0
- package/stubs/repositories/repositories-stubs.js +8 -0
- package/stubs/repositories-stub.js +6 -6
- package/stubs/saved-queries-stubs.js +5 -0
- package/stubs/ttyg/ttyg-stubs.js +4 -7
- package/support/commands.js +19 -0
- package/support/repository-commands.js +20 -4
- package/Dockerfile +0 -11
- package/integration/explore/similarity-index/similarity-index-create.spec.js +0 -333
- package/integration/explore/similarity-index/similarity-index.spec.js +0 -88
- package/integration/explore/similarity-index/similarity.spec.js +0 -628
- package/integration/home/language-selector.spec.js +0 -19
- package/integration/home/rdf-resource-search.spec.js +0 -177
- package/integration/home/view-resource-autocomplete.spec.js +0 -52
- package/integration/home/workbench.home.spec.js +0 -30
- package/integration/monitor/monitor.queries.spec.js +0 -31
- package/integration-flaky/setup/users-and-access/security-and-free-access.spec.js +0 -54
- package/{integration-flaky → e2e-flaky}/import/import-user-data-batch-operations.spec.js +0 -0
- package/{integration-flaky → e2e-flaky}/import/import.server.files.spec.js +0 -0
- package/{integration-flaky → e2e-flaky}/sparql-editor/actions/execute-update-query.spec.js +0 -0
- package/{integration-flaky → e2e-flaky}/sparql-editor/actions/share-query.spec.js +0 -0
- package/{integration-flaky → e2e-flaky}/sparql-editor/lucene-connector.spec.js +0 -0
- package/{integration-flaky → e2e-flaky}/sparql-editor/plugins/error-plugin.spec.js +0 -0
- package/{integration-flaky → e2e-flaky}/ttyg/ttyg-permission.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-legend.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-states.spec.js +0 -0
- package/{integration → e2e-legacy}/explore/visual-graph/visual-graph-node-labels.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/activate-deactivate-graphql-endpoint.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/delete-graphql-endpoint.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/export-graphql-endpoint-definition.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/set-default-graphql-endpoint.spec.js +0 -0
- package/{integration/help → e2e-legacy/help/system-information}/system-information.spec.js +0 -0
- package/{integration → e2e-legacy}/home/create-repository.spec.js +0 -0
- package/{integration → e2e-legacy}/home/google-analytics.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-server-files-batch-operations.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-server-files.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-user-data-settings-dialog.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-user-data-url.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-view.spec.js +0 -0
- package/{integration → e2e-legacy}/repository/attach-remote-location.spec.js +1 -1
- /package/{integration → e2e-legacy}/repository/ontop-repository.spec.js +0 -0
- /package/{integration → e2e-legacy}/repository/repository-commands.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/delete-rule.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/edit-rule.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/render-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/reorder-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/revert-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/scopes.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/update-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/connectors-lucene.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/jdbc/jdbc-create.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/jdbc/jdbc.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/execute-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/expand-results-over-sameas.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/include-inferred-statements.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/save-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/show-saved-queries.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/internationalization.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/saved-query/abort-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/saved-query/delete-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/sparql-editor.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasgui-tabs.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/download-as.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/pagination.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/table-plugin.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/chat-list.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/clone-agent.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/create-agent.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/delete-agent.spec.js +0 -0
- /package/support/{index.js → e2e.js} +0 -0
|
@@ -23,6 +23,7 @@ class ImportSteps {
|
|
|
23
23
|
static visit() {
|
|
24
24
|
cy.visit('/import');
|
|
25
25
|
cy.url().should('include', '/import');
|
|
26
|
+
cy.get('#wb-import h1').should('be.visible');
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
static getView() {
|
|
@@ -34,15 +35,19 @@ class ImportSteps {
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
static showPageInfoPopover() {
|
|
37
|
-
return this.getPageInfoIcon().
|
|
38
|
+
return this.getPageInfoIcon().trigger('mouseover');
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
static getPageInfoPopover() {
|
|
41
42
|
return cy.get('.help-info');
|
|
42
43
|
}
|
|
43
44
|
|
|
45
|
+
static getPageInfoPopoverTitle() {
|
|
46
|
+
return cy.get('.help-info h4');
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
static hidePageInfoPopover() {
|
|
45
|
-
return
|
|
50
|
+
return this.getPageInfoIcon().trigger('mouseleave');
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
static visitUserImport(repository) {
|
|
@@ -67,13 +72,7 @@ class ImportSteps {
|
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
cy.visit('/import#' + type);
|
|
70
|
-
|
|
71
|
-
// cy.get('.ot-splash').should('not.be.visible');
|
|
72
|
-
|
|
73
75
|
cy.get('#import-' + type).should('be.visible');
|
|
74
|
-
|
|
75
|
-
// cy.get('.ot-loader').should('not.be.visible');
|
|
76
|
-
|
|
77
76
|
return this;
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -98,7 +97,6 @@ class ImportSteps {
|
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
static openUserDataTab() {
|
|
101
|
-
// cy.get('.ot-loader').should('not.be.visible');
|
|
102
100
|
return this.getTabs().eq(0).click();
|
|
103
101
|
}
|
|
104
102
|
|
|
@@ -111,7 +109,6 @@ class ImportSteps {
|
|
|
111
109
|
}
|
|
112
110
|
|
|
113
111
|
static openServerFilesTab() {
|
|
114
|
-
// cy.get('.ot-loader').should('not.be.visible');
|
|
115
112
|
return this.getTabs().eq(1).click();
|
|
116
113
|
}
|
|
117
114
|
|
|
@@ -198,7 +195,6 @@ class ImportSteps {
|
|
|
198
195
|
}
|
|
199
196
|
|
|
200
197
|
static checkImportedResource(index, resourceName, expectedStatus) {
|
|
201
|
-
if (expectedStatus === undefined) {}
|
|
202
198
|
const status = expectedStatus || 'Imported successfully';
|
|
203
199
|
this.getResourceByName(resourceName).should('contain', resourceName);
|
|
204
200
|
this.getResourceStatus(resourceName).should('contain', status);
|
|
@@ -209,7 +205,6 @@ class ImportSteps {
|
|
|
209
205
|
}
|
|
210
206
|
|
|
211
207
|
static checkUserDataUploadedResource(index, resourceName) {
|
|
212
|
-
// this.getResource(index).should('contain', resourceName);
|
|
213
208
|
this.getResourceByName(resourceName).should('contain', resourceName);
|
|
214
209
|
this.getResourceStatus(resourceName).should('be.hidden');
|
|
215
210
|
}
|
|
@@ -268,11 +263,11 @@ class ImportSteps {
|
|
|
268
263
|
}
|
|
269
264
|
|
|
270
265
|
static deleteUploadedFile(index) {
|
|
271
|
-
this.getResource(index).find('.import-resource-action-remove-btn').
|
|
266
|
+
this.getResource(index).find('.import-resource-action-remove-btn').invoke('show').trigger('click');
|
|
272
267
|
}
|
|
273
268
|
|
|
274
269
|
static importFile(index) {
|
|
275
|
-
this.getResource(index).find('.import-resource-action-import-btn').
|
|
270
|
+
this.getResource(index).find('.import-resource-action-import-btn').invoke('show').trigger('click');
|
|
276
271
|
}
|
|
277
272
|
|
|
278
273
|
static importResourceByName(name) {
|
|
@@ -296,7 +291,8 @@ class ImportSteps {
|
|
|
296
291
|
}
|
|
297
292
|
|
|
298
293
|
static selectFile(files) {
|
|
299
|
-
cy.
|
|
294
|
+
cy.wait(1000)
|
|
295
|
+
cy.get('#wb-import-uploadFile label').selectFile(files, { force: true });
|
|
300
296
|
}
|
|
301
297
|
|
|
302
298
|
static uploadFile(filePath) {
|
|
@@ -10,6 +10,10 @@ export class ImportUserDataSteps extends ImportSteps {
|
|
|
10
10
|
return this.getView().find('.user-data-import-help');
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
static getFileSizeLimitationWarningMessage() {
|
|
14
|
+
return this.getView().find('.file-size-limit-warning');
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
static openImportTextSnippetDialog() {
|
|
14
18
|
cy.get('#import-user .import-rdf-snippet-btn').click()
|
|
15
19
|
// Forces the popover to disappear as it covers the modal and Cypress refuses to continue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class LanguageSelectorSteps {
|
|
2
2
|
static getLanguageSelectorDropdown() {
|
|
3
|
-
return cy.get('
|
|
3
|
+
return cy.get('.onto-language-selector').should('be.visible');
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
static openLanguageSelectorDropdown() {
|
|
@@ -9,7 +9,7 @@ export class LanguageSelectorSteps {
|
|
|
9
9
|
|
|
10
10
|
static changeLanguage(language) {
|
|
11
11
|
LanguageSelectorSteps.openLanguageSelectorDropdown();
|
|
12
|
-
|
|
12
|
+
this.getLanguageSelectorDropdown().find(`button.${language}`).click();
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
static switchToFr() {
|
package/steps/license-steps.js
CHANGED
|
@@ -1,25 +1,107 @@
|
|
|
1
|
-
|
|
1
|
+
import {BaseSteps} from "./base-steps";
|
|
2
|
+
|
|
3
|
+
export class LicenseSteps extends BaseSteps {
|
|
2
4
|
static visit() {
|
|
3
5
|
cy.visit('/license');
|
|
4
6
|
}
|
|
5
7
|
|
|
6
|
-
static
|
|
7
|
-
return
|
|
8
|
+
static getLicensePage() {
|
|
9
|
+
return this.getByTestId('license-info-page');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
static getLicenseAlertButton() {
|
|
13
|
+
return this.getByTestId('onto-license-alert');
|
|
8
14
|
}
|
|
9
15
|
|
|
10
16
|
static getLicenseHeader() {
|
|
11
|
-
return LicenseSteps.
|
|
17
|
+
return LicenseSteps.getLicensePage().find('.card-header');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static getRemoveLicenseButton() {
|
|
21
|
+
return LicenseSteps.getLicensePage().getByTestId('remove-license-button');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static getSetNewLicenseButton() {
|
|
25
|
+
return LicenseSteps.getLicensePage().getByTestId('set-new-license-link');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static getNoValidLicenseAlert() {
|
|
29
|
+
return LicenseSteps.getLicensePage().getByTestId('no-valid-license-alert');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static getNoLicenseAlertTitle() {
|
|
33
|
+
return LicenseSteps.getLicensePage().getByTestId('no-license-title');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static getValidLicenseAlertTitle() {
|
|
37
|
+
return LicenseSteps.getLicensePage().getByTestId('valid-license-title');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static getLicenseContent() {
|
|
41
|
+
return LicenseSteps.getLicensePage().getByTestId('license-content');
|
|
12
42
|
}
|
|
13
43
|
|
|
14
44
|
static getHardcodedAlertMessage() {
|
|
15
|
-
return cy.
|
|
45
|
+
return cy.getByTestId('license-hardcoded-alert-message');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static verifyLicenseNotSet() {
|
|
49
|
+
LicenseSteps.getLicensePage().should('be.visible');
|
|
50
|
+
LicenseSteps.getLicenseAlertButton().should('exist');
|
|
51
|
+
LicenseSteps.getRemoveLicenseButton().should('be.visible').should('be.disabled');
|
|
52
|
+
LicenseSteps.getSetNewLicenseButton().should('be.visible');
|
|
53
|
+
LicenseSteps.getNoValidLicenseAlert().should('exist');
|
|
54
|
+
LicenseSteps.getNoLicenseAlertTitle().should('exist');
|
|
55
|
+
LicenseSteps.getValidLicenseAlertTitle().should('not.exist');
|
|
56
|
+
LicenseSteps.getLicenseContent().should('not.exist');
|
|
57
|
+
LicenseSteps.getHardcodedAlertMessage().should('not.exist');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static verifyNoValidLicense() {
|
|
61
|
+
LicenseSteps.getLicensePage().should('be.visible');
|
|
62
|
+
LicenseSteps.getLicenseAlertButton().should('be.visible');
|
|
63
|
+
LicenseSteps.getRemoveLicenseButton().should('exist');
|
|
64
|
+
LicenseSteps.getSetNewLicenseButton().should('be.visible');
|
|
65
|
+
LicenseSteps.getNoValidLicenseAlert().should('be.visible');
|
|
66
|
+
LicenseSteps.getNoLicenseAlertTitle().should('not.exist');
|
|
67
|
+
LicenseSteps.getValidLicenseAlertTitle().should('exist');
|
|
68
|
+
LicenseSteps.getLicenseContent().should('exist');
|
|
69
|
+
LicenseSteps.getHardcodedAlertMessage().should('not.exist');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
static verifyValidLicense() {
|
|
73
|
+
LicenseSteps.getLicensePage().should('be.visible');
|
|
74
|
+
LicenseSteps.getLicenseAlertButton().should('not.exist');
|
|
75
|
+
LicenseSteps.getRemoveLicenseButton().should('be.visible').should('be.enabled');
|
|
76
|
+
LicenseSteps.getSetNewLicenseButton().should('be.visible');
|
|
77
|
+
LicenseSteps.getNoValidLicenseAlert().should('not.exist');
|
|
78
|
+
LicenseSteps.getNoLicenseAlertTitle().should('not.exist');
|
|
79
|
+
LicenseSteps.getValidLicenseAlertTitle().should('exist');
|
|
80
|
+
LicenseSteps.getLicenseContent().should('exist');
|
|
81
|
+
LicenseSteps.getHardcodedAlertMessage().should('not.exist');
|
|
16
82
|
}
|
|
17
83
|
|
|
18
|
-
static
|
|
19
|
-
|
|
84
|
+
static verifyNoValidLicenseHardcoded() {
|
|
85
|
+
LicenseSteps.getLicensePage().should('be.visible');
|
|
86
|
+
LicenseSteps.getLicenseAlertButton().should('be.visible');
|
|
87
|
+
LicenseSteps.getRemoveLicenseButton().should('not.exist');
|
|
88
|
+
LicenseSteps.getSetNewLicenseButton().should('not.exist');
|
|
89
|
+
LicenseSteps.getNoValidLicenseAlert().should('exist');
|
|
90
|
+
LicenseSteps.getNoLicenseAlertTitle().should('not.exist');
|
|
91
|
+
LicenseSteps.getValidLicenseAlertTitle().should('exist');
|
|
92
|
+
LicenseSteps.getLicenseContent().should('exist');
|
|
93
|
+
LicenseSteps.getHardcodedAlertMessage().should('exist');
|
|
20
94
|
}
|
|
21
95
|
|
|
22
|
-
static
|
|
23
|
-
|
|
96
|
+
static verifyValidLicenseHardcoded() {
|
|
97
|
+
LicenseSteps.getLicensePage().should('be.visible');
|
|
98
|
+
LicenseSteps.getLicenseAlertButton().should('not.exist');
|
|
99
|
+
LicenseSteps.getRemoveLicenseButton().should('not.exist');
|
|
100
|
+
LicenseSteps.getSetNewLicenseButton().should('not.exist');
|
|
101
|
+
LicenseSteps.getNoValidLicenseAlert().should('not.exist');
|
|
102
|
+
LicenseSteps.getNoLicenseAlertTitle().should('not.exist');
|
|
103
|
+
LicenseSteps.getValidLicenseAlertTitle().should('exist');
|
|
104
|
+
LicenseSteps.getLicenseContent().should('exist');
|
|
105
|
+
LicenseSteps.getHardcodedAlertMessage().should('exist');
|
|
24
106
|
}
|
|
25
107
|
}
|
package/steps/login-steps.js
CHANGED
|
@@ -10,10 +10,10 @@ export class LoginSteps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
static logout() {
|
|
13
|
-
cy.get('
|
|
14
|
-
cy.get('.dropdown
|
|
13
|
+
cy.get('onto-user-menu').click();
|
|
14
|
+
cy.get('.onto-user-menu-dropdown')
|
|
15
15
|
.contains('Logout')
|
|
16
|
-
.
|
|
16
|
+
.first()
|
|
17
17
|
// Force the click because Cypress sometimes determines that the item has 0x0 dimensions
|
|
18
18
|
.click({force: true});
|
|
19
19
|
}
|
package/steps/main-menu-steps.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class MainMenuSteps {
|
|
2
2
|
|
|
3
3
|
static getMainMenu() {
|
|
4
|
-
return cy.get('.
|
|
4
|
+
return cy.get('.navbar-component');
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
static openHomePage() {
|
|
@@ -20,24 +20,38 @@ export class MainMenuSteps {
|
|
|
20
20
|
return MainMenuSteps.getMenuButton('Explore');
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
static getMenuSetup() {
|
|
24
|
-
return MainMenuSteps.getMenuButton('Setup');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
23
|
static getMenuSparql() {
|
|
28
24
|
return MainMenuSteps.getMenuButton('SPARQL');
|
|
29
25
|
}
|
|
30
26
|
|
|
27
|
+
static clickOnSparqlMenu() {
|
|
28
|
+
MainMenuSteps.getMenuSparql().click();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static openGraphQlMenu() {
|
|
32
|
+
return this.clickOnSubmenuTriggerElement('GraphQL');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static clickOnEndpointManagement() {
|
|
36
|
+
this.openGraphQlMenu();
|
|
37
|
+
this.clickOnSubMenu('Endpoint Management');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static clickOnGraphQLPlayground() {
|
|
41
|
+
this.openGraphQlMenu();
|
|
42
|
+
this.clickOnSubMenu('GraphQL Playground');
|
|
43
|
+
}
|
|
44
|
+
|
|
31
45
|
static getSubmenuAutocomplete() {
|
|
32
|
-
return MainMenuSteps.getSubMenuButton("
|
|
46
|
+
return MainMenuSteps.getSubMenuButton("sub-menu-autocomplete");
|
|
33
47
|
}
|
|
34
48
|
|
|
35
49
|
static getSubmenuClassHierarchy() {
|
|
36
|
-
return MainMenuSteps.getSubMenuButton("
|
|
50
|
+
return MainMenuSteps.getSubMenuButton("menu-class-hierarchy");
|
|
37
51
|
}
|
|
38
52
|
|
|
39
53
|
static getSubmenuVisualGraph() {
|
|
40
|
-
return MainMenuSteps.getSubMenuButton("
|
|
54
|
+
return MainMenuSteps.getSubMenuButton("sub-menu-visual-graph");
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
static clickOnMenu(menuName) {
|
|
@@ -45,20 +59,24 @@ export class MainMenuSteps {
|
|
|
45
59
|
MainMenuSteps.getMenuButton(menuName).click({force: true});
|
|
46
60
|
}
|
|
47
61
|
|
|
62
|
+
static clickOnSubmenuTriggerElement(menuName) {
|
|
63
|
+
MainMenuSteps.getMainMenu().find('.menu-element-root').contains(menuName).parent().click();
|
|
64
|
+
}
|
|
65
|
+
|
|
48
66
|
static clickOnMenuImport() {
|
|
49
67
|
MainMenuSteps.clickOnMenu('Import');
|
|
50
68
|
}
|
|
51
69
|
|
|
52
70
|
static clickOnExplore() {
|
|
53
|
-
MainMenuSteps.
|
|
71
|
+
MainMenuSteps.clickOnSubmenuTriggerElement('Explore');
|
|
54
72
|
}
|
|
55
73
|
|
|
56
74
|
static getSubMenus() {
|
|
57
|
-
return
|
|
75
|
+
return MainMenuSteps.getMainMenu().find('.sub-menu');
|
|
58
76
|
}
|
|
59
77
|
|
|
60
|
-
static getSubMenuButton(
|
|
61
|
-
return
|
|
78
|
+
static getSubMenuButton(testId) {
|
|
79
|
+
return this.getSubMenus().getByTestId(testId);
|
|
62
80
|
}
|
|
63
81
|
|
|
64
82
|
static clickOnSubMenu(submenuName) {
|
|
@@ -66,6 +84,173 @@ export class MainMenuSteps {
|
|
|
66
84
|
}
|
|
67
85
|
|
|
68
86
|
static clickOnGraphsOverview() {
|
|
69
|
-
|
|
87
|
+
this.clickOnExplore();
|
|
88
|
+
this.getSubMenuButton('sub-menu-graph-overview').click();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static clickOnClassHierarchy() {
|
|
92
|
+
this.clickOnExplore();
|
|
93
|
+
this.getSubMenuButton('menu-class-hierarchy').click();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
static clickOnVisualGraph() {
|
|
97
|
+
this.clickOnExplore();
|
|
98
|
+
this.getSubMenuButton('sub-menu-visual-graph').click();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static clickOnClassRelationships() {
|
|
102
|
+
this.clickOnExplore();
|
|
103
|
+
this.getSubMenuButton('sub-menu-class-relationships').click();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static clickOnSimilarity() {
|
|
107
|
+
this.clickOnExplore();
|
|
108
|
+
this.getSubMenuButton('sub-menu-similarity').click();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// --------------------------
|
|
112
|
+
// -- Monitoring menu --
|
|
113
|
+
// --------------------------
|
|
114
|
+
static getMenuMonitoring() {
|
|
115
|
+
return MainMenuSteps.getMainMenu().getByTestId('menu-monitoring');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
static clickOnMenuMonitoring () {
|
|
119
|
+
this.getMenuMonitoring().click();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static clickOnQueryAndUpdate() {
|
|
123
|
+
this.clickOnMenuMonitoring();
|
|
124
|
+
this.getSubMenuButton('sub-menu-queries-and-updates').click();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static clickOnBackupAndRestore() {
|
|
128
|
+
this.clickOnMenuMonitoring();
|
|
129
|
+
this.getSubMenuButton('sub-menu-backup-and-restore').click();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
static clickOnSystemMonitoring() {
|
|
134
|
+
this.clickOnMenuMonitoring();
|
|
135
|
+
this.getSubMenuButton('sub-menu-system-monitoring').click();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// --------------------------
|
|
139
|
+
// -- Setup menu --
|
|
140
|
+
// --------------------------
|
|
141
|
+
static getMenuSetup() {
|
|
142
|
+
return MainMenuSteps.getMainMenu().getByTestId('menu-setup');
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
static clickOnMenuSetup() {
|
|
146
|
+
this.getMenuSetup().click();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static clickOnRepositories() {
|
|
150
|
+
this.clickOnMenuSetup();
|
|
151
|
+
this.getSubMenuButton('sub-menu-repositories').click();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
static clickOnACLManagement() {
|
|
155
|
+
this.clickOnMenuSetup();
|
|
156
|
+
this.getSubMenuButton('sub-menu-acl-management').click();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
static clickOnUsersAndAccess() {
|
|
160
|
+
this.clickOnMenuSetup();
|
|
161
|
+
this.getSubMenuButton('sub-menu-users-and-access').click();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static clickOnLicense() {
|
|
165
|
+
this.clickOnMenuSetup();
|
|
166
|
+
this.getSubMenuButton('sub-menu-license').click();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
static clickOnSparqlTemplates() {
|
|
170
|
+
this.clickOnMenuSetup();
|
|
171
|
+
this.getSubMenuButton('sub-menu-sparql-templates').click();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
static clickOnJDBC() {
|
|
175
|
+
this.clickOnMenuSetup();
|
|
176
|
+
this.getSubMenuButton('sub-menu-jdbc').click();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
static clickOnRDFRank() {
|
|
180
|
+
this.clickOnMenuSetup();
|
|
181
|
+
this.getSubMenuButton('sub-menu-rdf-rank').click();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
static clickOnConnectors() {
|
|
185
|
+
this.clickOnMenuSetup();
|
|
186
|
+
this.getSubMenuButton('sub-menu-connectors').click();
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static clickOnMySettings() {
|
|
190
|
+
this.clickOnMenuSetup();
|
|
191
|
+
this.getSubMenuButton('sub-menu-my-settings').click();
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
static clickOnAutocomplete() {
|
|
195
|
+
this.clickOnMenuSetup();
|
|
196
|
+
this.getSubmenuAutocomplete().click();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
static clickOnNamespaces() {
|
|
200
|
+
this.clickOnMenuSetup();
|
|
201
|
+
this.getSubMenuButton('sub-menu-namespaces').click();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
static clickOnPlugins() {
|
|
205
|
+
this.clickOnMenuSetup();
|
|
206
|
+
this.getSubMenuButton('sub-menu-plugins').click();
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// --------------------------
|
|
210
|
+
// -- Help menu --
|
|
211
|
+
// --------------------------
|
|
212
|
+
|
|
213
|
+
static getMenuHelp() {
|
|
214
|
+
return MainMenuSteps.getMainMenu().getByTestId('menu-help');
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
static clickOnMenuHelp() {
|
|
218
|
+
this.getMenuHelp().click();
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
static clickOnInteractiveGuides() {
|
|
222
|
+
this.clickOnMenuHelp();
|
|
223
|
+
this.getSubMenuButton('sub-menu-guide').click();
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static clickOnRestApiDocumentation() {
|
|
227
|
+
this.clickOnMenuHelp();
|
|
228
|
+
this.getSubMenuButton('sub-menu-rest-api').click();
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
static clickOnSystemInformation() {
|
|
232
|
+
this.clickOnMenuHelp();
|
|
233
|
+
this.getSubMenuButton('sub-menu-system-information').click();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
static clickOnCluster() {
|
|
237
|
+
this.clickOnMenuSetup();
|
|
238
|
+
this.getSubMenuButton('sub-menu-cluster').click();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// --------------------------
|
|
242
|
+
// -- Lab menu --
|
|
243
|
+
// --------------------------
|
|
244
|
+
static getMenuLab() {
|
|
245
|
+
return this.getMainMenu().getByTestId('menu-lab');
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
static clickOnMenuLab() {
|
|
249
|
+
return this.getMenuLab().click();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
static clickOnTTYG() {
|
|
253
|
+
this.clickOnMenuLab();
|
|
254
|
+
this.getSubMenuButton('sub-menu-ttyg').click();
|
|
70
255
|
}
|
|
71
256
|
}
|
|
@@ -63,6 +63,26 @@ export class ModalDialogSteps {
|
|
|
63
63
|
ModalDialogSteps.getCancelButton().click();
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Get the dialog with the given body. This method is useful when there are multiple dialogs on the page.
|
|
68
|
+
*
|
|
69
|
+
* @param body - the full or partial text of the dialog body.
|
|
70
|
+
*
|
|
71
|
+
* @return {Cypress.Chainable<JQuery<HTMLElement>>}
|
|
72
|
+
*/
|
|
73
|
+
static getDialogWithBody(body) {
|
|
74
|
+
return ModalDialogSteps.getDialog().contains(body).parent().parent();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Click on the confirmation button of the dialog with the given body. This method is useful when there are multiple dialogs on the page.
|
|
79
|
+
*
|
|
80
|
+
* @param body - the full or partial text of the dialog body.
|
|
81
|
+
*/
|
|
82
|
+
static cancelDialogWithBody(body) {
|
|
83
|
+
ModalDialogSteps.getDialogWithBody(body).find('.cancel-btn').click();
|
|
84
|
+
}
|
|
85
|
+
|
|
66
86
|
static verifyUrlChangedConfirmation(verifyConfirmationDialogOptions = new VerifyConfirmationDialogOptions()) {
|
|
67
87
|
// and try to change the page
|
|
68
88
|
verifyConfirmationDialogOptions.changePageFunction();
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import {BaseSteps} from "../base-steps";
|
|
2
|
+
|
|
3
|
+
export class BackupAndRestoreSteps extends BaseSteps {
|
|
2
4
|
|
|
3
5
|
static visit() {
|
|
4
6
|
cy.visit('/monitor/backup-and-restore');
|
|
5
7
|
}
|
|
6
8
|
|
|
9
|
+
static getBackupAndRestorePage() {
|
|
10
|
+
return this.getByTestId('backup-and-restore-page');
|
|
11
|
+
}
|
|
12
|
+
|
|
7
13
|
static getInfoMessageElement() {
|
|
8
|
-
return
|
|
14
|
+
return this.getBackupAndRestorePage().getByTestId('no-running-backup-and-restore-alert');
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
static getBackupAndRestoreResults() {
|
|
12
|
-
return
|
|
18
|
+
return this.getBackupAndRestorePage().find('table tbody tr');
|
|
13
19
|
}
|
|
14
20
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {BaseSteps} from "../base-steps";
|
|
2
|
+
|
|
3
|
+
export class QueriesAndUpdatesSteps extends BaseSteps {
|
|
4
|
+
|
|
5
|
+
static visit() {
|
|
6
|
+
super.visit('/monitor/queries');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
static getQueryAndUpdatePage() {
|
|
10
|
+
return super.getByTestId('monitoring-queries-and-updates');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static getPauseButton() {
|
|
14
|
+
return this.getQueryAndUpdatePage().getByTestId('pause-button');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static getNoRunningQueriesOrUpdates() {
|
|
18
|
+
return this.getQueryAndUpdatePage().getByTestId('no-running-queries-or-updates-alert');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {BaseSteps} from "../base-steps";
|
|
2
|
+
|
|
3
|
+
export class SystemMonitoringSteps extends BaseSteps {
|
|
4
|
+
static visit() {
|
|
5
|
+
cy.visit('/monitor/system');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
static getSystemMonitoringPage() {
|
|
9
|
+
return this.getByTestId('system-monitoring-page');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
static getCPUUsageChart() {
|
|
13
|
+
return this.getSystemMonitoringPage().getByTestId('cpu-usage-chart');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static getFileDescriptorChart() {
|
|
17
|
+
return this.getSystemMonitoringPage().getByTestId('file-descriptor-chart');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static getHeapMemoryChart() {
|
|
21
|
+
return this.getSystemMonitoringPage().getByTestId('heap-memory-chart');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static getOffHeapMemoryChart() {
|
|
25
|
+
return this.getSystemMonitoringPage().getByTestId('off-heap-memory-chart');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static getDiskStorageChart() {
|
|
29
|
+
return this.getSystemMonitoringPage().getByTestId('disk-storage-chart');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static verifyInitialStateWithSelectedRepository() {
|
|
33
|
+
this.getSystemMonitoringPage().should('be.visible');
|
|
34
|
+
this.getCPUUsageChart().should('be.visible');
|
|
35
|
+
this.getFileDescriptorChart().should('be.visible');
|
|
36
|
+
this.getHeapMemoryChart().should('be.visible');
|
|
37
|
+
this.getOffHeapMemoryChart().should('be.visible');
|
|
38
|
+
this.getDiskStorageChart().should('be.visible');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {BrowserStubs} from "../stubs/browser-stubs";
|
|
2
|
+
|
|
1
3
|
export class OperationsStatusesComponentSteps {
|
|
2
4
|
|
|
3
5
|
static getOperationsStatusesComponent() {
|
|
@@ -13,15 +15,15 @@ export class OperationsStatusesComponentSteps {
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
static getQueriesOperationStatusHeaderElement() {
|
|
16
|
-
return OperationsStatusesComponentSteps.getOperationStatusHeader('.
|
|
18
|
+
return OperationsStatusesComponentSteps.getOperationStatusHeader('.fa-arrow-right-arrow-left');
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
static getBackupAndRestoreOperationStatusHeaderElement() {
|
|
20
|
-
return OperationsStatusesComponentSteps.getOperationStatusHeader('.fa
|
|
22
|
+
return OperationsStatusesComponentSteps.getOperationStatusHeader('.fa-archive');
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
static getClusterOperationStatusHeaderElement() {
|
|
24
|
-
return OperationsStatusesComponentSteps.getOperationStatusHeader('.fa
|
|
26
|
+
return OperationsStatusesComponentSteps.getOperationStatusHeader('.fa-sitemap');
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
static getOperationStatuses() {
|
|
@@ -31,11 +33,4 @@ export class OperationsStatusesComponentSteps {
|
|
|
31
33
|
static openOperationStatusesDialog() {
|
|
32
34
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().click();
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
static checkOperationElementUrl(expectedUrl, operationIndex = 0) {
|
|
36
|
-
OperationsStatusesComponentSteps.getOperationStatuses().eq(operationIndex).then(($operationElement) => {
|
|
37
|
-
expect($operationElement).to.have.attr('target', '_blank');
|
|
38
|
-
expect($operationElement).to.have.attr('href', expectedUrl);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
36
|
}
|