graphdb-workbench-tests 3.1.0-TR1 → 3.1.0-WBM-2
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 +5 -3
- 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}/setup/users-and-access/security-and-free-access.spec.js +4 -1
- package/{integration-flaky → e2e-flaky}/sparql-editor/yasr/table-plugin.spec.js +2 -1
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +4 -1
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +4 -1
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration.spec.js +4 -1
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.js +42 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.js +43 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.js +30 -0
- package/{integration/explore → e2e-legacy/explore/class-hierarchy}/class.hierarchy.spec.js +3 -2
- 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 +5 -4
- 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/{integration → e2e-legacy}/explore/visual-graph/graphs-config.spec.js +18 -5
- 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 +3 -2
- package/{integration → e2e-legacy}/graphql/activate-deactivate-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/create-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/delete-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/edit-graphql-enpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/export-graphql-endpoint-definition.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 +1 -1
- 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 +2 -2
- package/{integration → e2e-legacy}/graphql/import-graphql-endpoint-definitions.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/set-default-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/guides/movies-interactive-guide.spec.js +5 -1
- package/{integration → e2e-legacy}/guides/star-wars-interactive-guide.js +6 -1
- package/{integration → e2e-legacy}/home/cookie-policy.spec.js +5 -1
- package/{integration → e2e-legacy}/home/create-repository.spec.js +6 -2
- package/{integration → e2e-legacy}/home/documentation-link.spec.js +4 -1
- package/e2e-legacy/home/home-page-with-selected-repository.spec.js +66 -0
- package/e2e-legacy/home/home-page-without-repositories.spec.js +91 -0
- package/e2e-legacy/home/home-page-without-selected-repository.spec.js +59 -0
- package/{integration → e2e-legacy}/home/language-change.spec.js +6 -3
- package/{integration → e2e-legacy}/home/language-selector.spec.js +4 -1
- package/{integration → e2e-legacy}/home/rdf-resource-search.spec.js +4 -1
- package/{integration → e2e-legacy}/home/view-resource-autocomplete.spec.js +6 -2
- package/{integration → e2e-legacy}/import/import-server-files-batch-operations.spec.js +2 -1
- package/{integration → e2e-legacy}/import/import-server-files.spec.js +2 -1
- package/{integration → e2e-legacy}/import/import-user-data-file-upload.spec.js +10 -3
- package/{integration → e2e-legacy}/import/import-user-data-text-snippet.spec.js +30 -8
- package/{integration → e2e-legacy}/import/import-user-data-url.spec.js +2 -1
- package/{integration → e2e-legacy}/import/import-user-data.spec.js +2 -1
- package/{integration → e2e-legacy}/import/import-view.spec.js +2 -1
- 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/{integration → e2e-legacy}/monitor/global-operation-statuses-component.spec.js +4 -1
- package/{integration → e2e-legacy}/monitor/monitor.queries.spec.js +4 -1
- package/{integration → e2e-legacy}/monitor/monitor.resources.spec.js +2 -1
- package/{integration → e2e-legacy}/repository/attach-remote-location.spec.js +4 -1
- package/{integration → e2e-legacy}/repository/ontop-repository.spec.js +12 -3
- package/{integration → e2e-legacy}/repository/repositories.spec.js +1 -1
- package/{integration → e2e-legacy}/resource/resource.spec.js +10 -3
- package/{integration → e2e-legacy}/setup/aclmanagement/create-rule.spec.js +3 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/edit-rule.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/reorder-rules.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/revert-rules.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/scopes.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/update-rules.spec.js +16 -4
- package/{integration → e2e-legacy}/setup/autocomplete.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/connectors-lucene.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/my-settings.spec.js +4 -2
- package/{integration → e2e-legacy}/setup/namespaces.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/plugins.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/rdf-rank.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/sparql-template-create.js +18 -5
- package/{integration → e2e-legacy}/setup/sparql-templates.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/user-and-access.spec.js +9 -5
- package/{integration → e2e-legacy}/sparql-editor/actions/inferred-sameas.spec.js +3 -1
- package/{integration → e2e-legacy}/sparql-editor/internationalization.spec.js +4 -1
- package/{integration → e2e-legacy}/sparql-editor/saved-query/edit-query.spec.js +3 -0
- package/{integration → e2e-legacy}/sparql-editor/saved-query/share-query.spec.js +5 -1
- package/{integration → e2e-legacy}/sparql-editor/sparql-editor.spec.js +4 -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}/sparql-editor/yasgui-tabs.spec.js +4 -1
- package/{integration → e2e-legacy}/ttyg/agent-list.spec.js +4 -1
- package/{integration → e2e-legacy}/ttyg/chat-list.spec.js +2 -1
- package/{integration → e2e-legacy}/ttyg/create-agent.spec.js +10 -3
- package/{integration → e2e-legacy}/ttyg/edit-agent.spec.js +1 -1
- package/e2e-legacy/ttyg/ttyg-permission.spec.js +69 -0
- package/{integration → e2e-legacy}/ttyg/ttyg-view.spec.js +2 -1
- package/fixtures/ttyg/autocomplete-response.json +154 -0
- package/npm-shrinkwrap.json +3540 -3815
- package/package.json +42 -42
- package/steps/class-views-steps.js +16 -0
- 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/home-steps.js +103 -13
- package/steps/import/import-user-data-steps.js +4 -0
- package/steps/language-selector-steps.js +2 -2
- package/steps/main-menu-steps.js +44 -6
- package/steps/repository-selector-steps.js +3 -3
- package/steps/repository-steps.js +7 -1
- package/steps/setup/user-and-access-steps.js +5 -1
- package/steps/visual-graph-steps.js +4 -0
- package/steps/widgets/active-repository-widget-steps.js +13 -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/repositories/repositories-stubs.js +4 -0
- package/stubs/repositories-stub.js +6 -6
- package/stubs/saved-queries-stubs.js +5 -0
- package/support/commands.js +19 -0
- package/support/repository-commands.js +6 -3
- package/Dockerfile +0 -11
- package/fixtures/repositories/get-remote-and-local-repositories.json +0 -34
- 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/workbench.home.spec.js +0 -30
- package/integration/setup/jdbc/jdbc-create.spec.js +0 -329
- package/integration/setup/jdbc/jdbc.spec.js +0 -161
- /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-properties.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}/cluster/edit-cluster-nodes-modal.spec.js +0 -0
- /package/{integration → e2e-legacy}/explore/visual-graph/visual-graph-node-labels.spec.js +0 -0
- /package/{integration → e2e-legacy}/help/system-information.spec.js +0 -0
- /package/{integration → e2e-legacy}/home/google-analytics.spec.js +0 -0
- /package/{integration → e2e-legacy}/import/import-user-data-settings-dialog.spec.js +0 -0
- /package/{integration → e2e-legacy}/license/license.spec.js +0 -0
- /package/{integration → e2e-legacy}/monitor/monitor.backup-and-restore.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/render-rules.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/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/saved-query/readonly-query.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/agent-select-menu.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/chat-panel.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/clone-agent.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/create-chat.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/delete-agent.spec.js +0 -0
- /package/support/{index.js → e2e.js} +0 -0
package/package.json
CHANGED
|
@@ -1,44 +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
|
-
|
|
2
|
+
"name": "graphdb-workbench-tests",
|
|
3
|
+
"version": "3.1.0-WBM-2",
|
|
4
|
+
"description": "Cypress tests for GraphDB workbench",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"prepack": "npm shrinkwrap",
|
|
7
|
+
"postpack": "mv npm-shrinkwrap.json package-lock.json",
|
|
8
|
+
"cy:open": "cypress open",
|
|
9
|
+
"cy:open-legacy": "cypress open --config-file cypress-legacy.config.js",
|
|
10
|
+
"cy:open-flaky": "cypress open --config-file cypress-flaky.config.js",
|
|
11
|
+
"cy:run": "npm run cy:run-legacy && cypress run",
|
|
12
|
+
"cy:run:partial": "cypress run --config-file cypress-legacy.config.js --spec \"e2e-legacy/graphql/graphql-endpoint-management-view.spec.js\" --browser chrome",
|
|
13
|
+
"cy:run-legacy": "cypress run --config-file cypress-legacy.config.js --browser chrome",
|
|
14
|
+
"cy:run-flaky": "cypress run --config-file cypress-flaky.config.js --browser chrome",
|
|
15
|
+
"test": "npm run cy:run-legacy",
|
|
16
|
+
"test:core": "cypress run --spec e2e-broken/repository/**,integration/import/**,integration/sparql-editor/**,integration/monitor/**,integration/cluster/**,integration/ttyg/**"
|
|
17
|
+
},
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Ontotext AD",
|
|
20
|
+
"url": "https://www.ontotext.com/"
|
|
21
|
+
},
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"graphdb",
|
|
25
|
+
"workbench"
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/Ontotext-AD/graphdb-workbench.git"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"cypress": "^13.17.0",
|
|
33
|
+
"cypress-failed-log": "^2.10.0",
|
|
34
|
+
"cypress-file-upload": "^5.0.8",
|
|
35
|
+
"cypress-localstorage-commands": "^2.2.7",
|
|
36
|
+
"cypress-multi-reporters": "^2.0.4",
|
|
37
|
+
"cypress-real-events": "^1.13.0",
|
|
38
|
+
"cypress-terminal-report": "^7.1.0",
|
|
39
|
+
"cypress-wait-until": "^3.0.2",
|
|
40
|
+
"del": "^5.1.0",
|
|
41
|
+
"minimist": "^1.2.8",
|
|
42
|
+
"mocha-junit-reporter": "^2.2.1"
|
|
43
|
+
}
|
|
44
44
|
}
|
|
@@ -21,6 +21,14 @@ class ClassViewsSteps {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
static getClassViewsComponent() {
|
|
25
|
+
return cy.get('.explore');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static getExploreResults() {
|
|
29
|
+
return this.getClassViewsComponent().find('.explore_results');
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
static getClassChart() {
|
|
25
33
|
return cy.get('#classChart');
|
|
26
34
|
}
|
|
@@ -186,6 +194,14 @@ class ClassViewsSteps {
|
|
|
186
194
|
static reloadDiagram() {
|
|
187
195
|
cy.get('.reload-diagram-btn').click();
|
|
188
196
|
}
|
|
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
|
+
}
|
|
189
205
|
}
|
|
190
206
|
|
|
191
207
|
export default ClassViewsSteps;
|
package/steps/error-steps.js
CHANGED
|
@@ -6,4 +6,19 @@ export class ErrorSteps {
|
|
|
6
6
|
static verifyError(errorMessage) {
|
|
7
7
|
ErrorSteps.getErrorElement().contains(errorMessage);
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
static getRepositoryErrors() {
|
|
11
|
+
return cy.get('.card.repository-errors')
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static getNoConnectedRepoMessage() {
|
|
15
|
+
return this.getRepositoryErrors().find('.alert.lead.alert-info');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static verifyNoConnectedRepoMessage() {
|
|
19
|
+
this.getRepositoryErrors().should('be.visible');
|
|
20
|
+
this.getNoConnectedRepoMessage()
|
|
21
|
+
.should('be.visible')
|
|
22
|
+
.and('contain', 'Some functionalities are not available because you are not connected to any repository.');
|
|
23
|
+
}
|
|
9
24
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export class ClassRelationshipsSteps {
|
|
2
|
+
static visit() {
|
|
3
|
+
cy.visit('/relationships');
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
static getFilterField() {
|
|
7
|
+
return cy.get('.search-filter-field');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static filterByClass(name) {
|
|
11
|
+
this.getFilterField().type(name);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static getDirectionFilter() {
|
|
15
|
+
return cy.get('.direction-filter');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static verifySelectedDirectionFilter(name) {
|
|
19
|
+
this.getDirectionFilter().find('input[type=radio]:checked').should('have.value', name);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static getRelationsToolbar() {
|
|
23
|
+
return cy.get('.relations-toolbar');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static verifyRelationsToolbarContent() {
|
|
27
|
+
this.getRelationsToolbar().should('be.visible');
|
|
28
|
+
this.removeAllClassesButton().should('be.visible');
|
|
29
|
+
this.getReloadDiagramButton().should('be.visible');
|
|
30
|
+
this.getExportDiagramButton().should('be.visible');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static getDependenciesList() {
|
|
34
|
+
return cy.get('#wb-dependencies-classInClasses');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static verifyListLength(count) {
|
|
38
|
+
this.getDependenciesList().find('.item .row').should('have.length', count);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static getNoDataWarning() {
|
|
42
|
+
return cy.get('div.alert.alert-warning');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static getReloadDiagramButton() {
|
|
46
|
+
return cy.get('.reload-diagram-btn');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static getExportDiagramButton() {
|
|
50
|
+
return this.getRelationsToolbar().find('.export-diagram-btn');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static removeAllClassesButton() {
|
|
54
|
+
return this.getRelationsToolbar().find('.remove-all-classes-btn');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static getDependenciesDiagram() {
|
|
58
|
+
return cy.get('#dependencies-chord');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static getAvailableDependenciesLabel() {
|
|
62
|
+
return cy.get('.available-dependencies-label');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -10,8 +10,16 @@ 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
|
+
|
|
13
21
|
static getResults() {
|
|
14
|
-
return
|
|
22
|
+
return this.getResultsElement().find('tbody tr');
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
static getResult(row = 0) {
|
|
@@ -73,4 +81,16 @@ export class GraphsOverviewSteps {
|
|
|
73
81
|
static clickOnDownloadAllButton() {
|
|
74
82
|
this.getDownloadAllButtons().click();
|
|
75
83
|
}
|
|
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
|
+
}
|
|
76
96
|
}
|
package/steps/home-steps.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import {LicenseWidgetSteps} from "./widgets/license-widget-steps";
|
|
2
|
+
import {RepositoryErrorsWidgetSteps} from "./widgets/repository-errors-widget-steps";
|
|
3
|
+
import {ActiveRepositoryWidgetSteps} from "./widgets/active-repository-widget-steps";
|
|
4
|
+
import {SavedSparqlQueriesWidgetSteps} from "./widgets/saved-sparql-queries-widget-steps";
|
|
5
|
+
|
|
1
6
|
class HomeSteps {
|
|
2
7
|
|
|
3
8
|
static visit() {
|
|
4
9
|
cy.visit('/');
|
|
10
|
+
HomeSteps.getTutorialPanel().should('be.visible');
|
|
5
11
|
}
|
|
6
12
|
|
|
7
13
|
static visitAndWaitLoader(stubNewWindow) {
|
|
@@ -17,25 +23,109 @@ class HomeSteps {
|
|
|
17
23
|
|
|
18
24
|
cy.window();
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
// TODO: Fix me. Broken due to migration (The issue GDB-10501 not implemented)
|
|
27
|
+
// cy.get('.ot-splash').should('not.be.visible');
|
|
28
|
+
// return cy.get('.ot-loader-new-content').should('not.exist');
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
static
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
static getView() {
|
|
32
|
+
return cy.get('.wb-layout');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static getTutorialPanel() {
|
|
36
|
+
return cy.get('.tutorial-container');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static hideTutorial() {
|
|
40
|
+
this.getTutorialPanel().find('.decline-tutorial').click();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static showTutorialPanel() {
|
|
44
|
+
this.getView().find('.show-tutorial').click();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static getNavigationMenu() {
|
|
48
|
+
return this.getView().find('.wb-navbar');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static getPageHeader() {
|
|
52
|
+
return this.getView().find('.wb-header');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// ===========================
|
|
56
|
+
// RDF search box
|
|
57
|
+
// ===========================
|
|
58
|
+
|
|
59
|
+
static getRDFSearchButton() {
|
|
60
|
+
return this.getPageHeader().find('.rdf-search-button i');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// ===========================
|
|
64
|
+
// Repository selector
|
|
65
|
+
// ===========================
|
|
66
|
+
|
|
67
|
+
static getRepositorySelector() {
|
|
68
|
+
return this.getPageHeader().find('onto-repository-selector');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static getSelectedRepository() {
|
|
72
|
+
return this.getRepositorySelector().find('.onto-dropdown-button');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ===========================
|
|
76
|
+
// Language selector
|
|
77
|
+
// ===========================
|
|
78
|
+
|
|
79
|
+
static getLanguageSelector() {
|
|
80
|
+
return this.getPageHeader().find('onto-language-selector');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static getSelectedLanguage() {
|
|
84
|
+
return this.getLanguageSelector().find('.onto-dropdown-button');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ===========================
|
|
88
|
+
// Active repository widget
|
|
89
|
+
// ===========================
|
|
90
|
+
|
|
91
|
+
static getActiveRepositoryWidget() {
|
|
92
|
+
return ActiveRepositoryWidgetSteps.getWidget();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// ===========================
|
|
96
|
+
// License widget
|
|
97
|
+
// ===========================
|
|
98
|
+
|
|
99
|
+
static getLicenseWidget() {
|
|
100
|
+
return LicenseWidgetSteps.getWidget();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// ===========================
|
|
104
|
+
// Repository errors widget
|
|
105
|
+
// ===========================
|
|
106
|
+
|
|
107
|
+
static getRepositoryErrorsWidget() {
|
|
108
|
+
return RepositoryErrorsWidgetSteps.getWidget();
|
|
32
109
|
}
|
|
33
110
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
111
|
+
// ===========================
|
|
112
|
+
// Saved SPARQL queries widget
|
|
113
|
+
// ===========================
|
|
114
|
+
|
|
115
|
+
static getSavedSparqlQueriesWidget() {
|
|
116
|
+
return SavedSparqlQueriesWidgetSteps.getWidget();
|
|
37
117
|
}
|
|
38
118
|
|
|
119
|
+
// ===========================
|
|
120
|
+
// Page footer
|
|
121
|
+
// ===========================
|
|
122
|
+
|
|
123
|
+
static getPageFooter() {
|
|
124
|
+
return cy.get('.footer-component');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// ==========================
|
|
128
|
+
|
|
39
129
|
static selectSPARQLQueryToExecute(query) {
|
|
40
130
|
cy.contains('ul.saved-queries li', query)
|
|
41
131
|
.should('be.visible')
|
|
@@ -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/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() {
|
|
@@ -28,6 +28,24 @@ export class MainMenuSteps {
|
|
|
28
28
|
return MainMenuSteps.getMenuButton('SPARQL');
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
static clickOnSparqlMenu() {
|
|
32
|
+
MainMenuSteps.getMenuSparql().click();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static openGraphQlMenu() {
|
|
36
|
+
return this.clickOnSubmenuTriggerElement('GraphQL');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static clickOnEndpointManagement() {
|
|
40
|
+
this.openGraphQlMenu();
|
|
41
|
+
this.clickOnSubMenu('Endpoint Management');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static clickOnGraphQLPlayground() {
|
|
45
|
+
this.openGraphQlMenu();
|
|
46
|
+
this.clickOnSubMenu('GraphQL Playground');
|
|
47
|
+
}
|
|
48
|
+
|
|
31
49
|
static getSubmenuAutocomplete() {
|
|
32
50
|
return MainMenuSteps.getSubMenuButton("Autocomplete");
|
|
33
51
|
}
|
|
@@ -45,20 +63,24 @@ export class MainMenuSteps {
|
|
|
45
63
|
MainMenuSteps.getMenuButton(menuName).click({force: true});
|
|
46
64
|
}
|
|
47
65
|
|
|
66
|
+
static clickOnSubmenuTriggerElement(menuName) {
|
|
67
|
+
MainMenuSteps.getMainMenu().find('.menu-element-root').contains(menuName).parent().click();
|
|
68
|
+
}
|
|
69
|
+
|
|
48
70
|
static clickOnMenuImport() {
|
|
49
71
|
MainMenuSteps.clickOnMenu('Import');
|
|
50
72
|
}
|
|
51
73
|
|
|
52
74
|
static clickOnExplore() {
|
|
53
|
-
MainMenuSteps.
|
|
75
|
+
MainMenuSteps.clickOnSubmenuTriggerElement('Explore');
|
|
54
76
|
}
|
|
55
77
|
|
|
56
78
|
static getSubMenus() {
|
|
57
|
-
return
|
|
79
|
+
return MainMenuSteps.getMainMenu().find('.sub-menu');
|
|
58
80
|
}
|
|
59
81
|
|
|
60
|
-
static getSubMenuButton(
|
|
61
|
-
return
|
|
82
|
+
static getSubMenuButton(testId) {
|
|
83
|
+
return this.getSubMenus().getByTestId(testId);
|
|
62
84
|
}
|
|
63
85
|
|
|
64
86
|
static clickOnSubMenu(submenuName) {
|
|
@@ -66,6 +88,22 @@ export class MainMenuSteps {
|
|
|
66
88
|
}
|
|
67
89
|
|
|
68
90
|
static clickOnGraphsOverview() {
|
|
69
|
-
|
|
91
|
+
this.clickOnExplore();
|
|
92
|
+
this.getSubMenuButton('sub-menu-graph-overview').click();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static clickOnClassHierarchy() {
|
|
96
|
+
this.clickOnExplore();
|
|
97
|
+
this.getSubMenuButton('menu-class-hierarchy').click();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static clickOnVisualGraph() {
|
|
101
|
+
this.clickOnExplore();
|
|
102
|
+
this.getSubMenuButton('sub-menu-visual-graph').click();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static clickOnClassRelationships() {
|
|
106
|
+
this.clickOnExplore();
|
|
107
|
+
this.getSubMenuButton('sub-menu-class-relationships').click();
|
|
70
108
|
}
|
|
71
109
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export class RepositorySelectorSteps {
|
|
2
2
|
|
|
3
3
|
static getRepositorySelectorDropdown() {
|
|
4
|
-
return cy.get('
|
|
4
|
+
return cy.get('.onto-repository-selector');
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
static getRepositorySelectorsButton() {
|
|
8
|
-
return RepositorySelectorSteps.getRepositorySelectorDropdown().find('
|
|
8
|
+
return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.onto-dropdown-button .selector-button');
|
|
9
9
|
}
|
|
10
10
|
static openRepositorySelectors() {
|
|
11
11
|
RepositorySelectorSteps.getRepositorySelectorsButton().click();
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
static getRepositorySelectorButton(repositoryId) {
|
|
15
|
-
return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.dropdown-
|
|
15
|
+
return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.repository-selector-dropdown-item .repository-id').contains(repositoryId);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
static selectRepository(repositoryId) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import {REPOSITORIES_URL} from "../support/repository-commands";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
5
|
+
*/
|
|
3
6
|
export class RepositorySteps {
|
|
4
7
|
|
|
5
8
|
static visit() {
|
|
@@ -22,7 +25,10 @@ export class RepositorySteps {
|
|
|
22
25
|
|
|
23
26
|
static waitUntilRepositoriesPageIsLoaded() {
|
|
24
27
|
// Workbench loading screen should not be visible
|
|
25
|
-
|
|
28
|
+
/**
|
|
29
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
30
|
+
*/
|
|
31
|
+
// cy.get('.ot-splash').should('not.be.visible');
|
|
26
32
|
|
|
27
33
|
RepositorySteps.getRepositoriesDropdown().should('not.be.disabled');
|
|
28
34
|
RepositorySteps.getCreateRepositoryButton().should('be.visible').and('not.be.disabled');
|
|
@@ -8,7 +8,7 @@ export class UserAndAccessSteps {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
static getSplashLoader() {
|
|
11
|
-
return cy.get('.ot-
|
|
11
|
+
return cy.get('.ot-loader');
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
static getCreateNewUserButton() {
|
|
@@ -159,6 +159,10 @@ export class UserAndAccessSteps {
|
|
|
159
159
|
return cy.get('.alert-danger');
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
static getPermissionError() {
|
|
163
|
+
return cy.get('.permission-banner');
|
|
164
|
+
}
|
|
165
|
+
|
|
162
166
|
static getModal() {
|
|
163
167
|
return cy.get('.modal-dialog');
|
|
164
168
|
}
|
|
@@ -19,6 +19,10 @@ export class VisualGraphSteps {
|
|
|
19
19
|
cy.visit('/graphs-visualizations?uri=http:%2F%2Fwww.w3.org%2FTR%2F2003%2FPR-owl-guide-20031209%2Fwine%23Dry');
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
static getSavedGraphsArea() {
|
|
23
|
+
return this.getGraphConfigSearchPanel().getByTestId('saved-graphs-area');
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
static openNodeLabelGraph() {
|
|
23
27
|
cy.visit('/graphs-visualizations?uri=http:%2F%2Fexample.com%2Fnode1');
|
|
24
28
|
// Wait for at least one predicate to be displayed, to ensure that the visual graph is open and ready for testing.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class ActiveRepositoryWidgetSteps {
|
|
2
|
+
static getWidget() {
|
|
3
|
+
return cy.get('.active-repo-widget');
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
static getWidgetName() {
|
|
7
|
+
return this.getWidget().find('#active-repo-label-home');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static getActiveRepository() {
|
|
11
|
+
return this.getWidget().find('.repo-info-home');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class RepositoryErrorsWidgetSteps {
|
|
2
|
+
static getWidget() {
|
|
3
|
+
return cy.get('.repository-errors-container');
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
static getCreateRepositoryBtn() {
|
|
7
|
+
return RepositoryErrorsWidgetSteps.getWidget().find('.create-repository-btn');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static getShowRemoteLocationsBtn() {
|
|
11
|
+
return RepositoryErrorsWidgetSteps.getWidget().find('.show-remote-locations-btn');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static getInfoMessage() {
|
|
15
|
+
return RepositoryErrorsWidgetSteps.getWidget().find('.info-message');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static getRepositoryList() {
|
|
19
|
+
return RepositoryErrorsWidgetSteps.getWidget().find('.repos .repository');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -11,6 +11,10 @@ export class RepositoriesStubs extends Stubs {
|
|
|
11
11
|
cy.intercept('GET', '/rest/repositories/all').as('getRepositories');
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
static spyGetActiveLocations() {
|
|
15
|
+
cy.intercept('GET', '/rest/locations/active').as('getActiveLocations');
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
static stubLocations(withDelay = 0) {
|
|
15
19
|
RepositoriesStubs.stubQueryResponse('/rest/locations', '/repositories/get-locations.json', 'get-locations', withDelay);
|
|
16
20
|
}
|