graphdb-workbench-tests 3.5.3 → 4.0.0-RC1
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/cypress-guides.config.js +45 -0
- package/e2e-flaky/import/import-server-files-operations.spec.js +8 -30
- package/e2e-flaky/import/import-user-data-batch-operations.spec.js +7 -7
- package/e2e-flaky/import/import-user-data-url.spec.js +1 -1
- package/e2e-flaky/sparql-editor/lucene-connector.spec.js +1 -1
- package/e2e-legacy/explore/graphs-overview/graphs.overview.spec.js +31 -2
- package/e2e-legacy/explore/visual-graph/visual.graph.spec.js +35 -4
- package/e2e-legacy/graph-navigator/graph-navigator-restrictions.spec.js +216 -0
- package/e2e-legacy/graph-navigator/graph-navigator.spec.js +520 -0
- package/e2e-legacy/guides/import-rdf-file/confirm-duplicate-rdf-file.spec.js +1 -1
- package/e2e-legacy/guides/main-menu/main-menu-guide.spec.js +6 -14
- package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +27 -32
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +12 -20
- package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-theme.spec.js +50 -0
- package/e2e-legacy/home/home-page-without-repositories.spec.js +3 -1
- package/e2e-legacy/home/home-page-without-selected-repository.spec.js +2 -1
- package/e2e-legacy/import/import-server-files-batch-operations.spec.js +38 -5
- package/e2e-legacy/import/import-server-files.spec.js +39 -23
- package/e2e-legacy/import/import-user-data-file-upload.spec.js +83 -23
- package/e2e-legacy/import/import-user-data-settings-dialog.spec.js +81 -10
- package/e2e-legacy/import/import-user-data-text-snippet.spec.js +6 -45
- package/e2e-legacy/import/import-user-data-url.spec.js +9 -5
- package/e2e-legacy/import/import-user-data.spec.js +8 -8
- package/e2e-legacy/import/import-view.spec.js +2 -2
- package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +1 -1
- package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +1 -1
- package/e2e-legacy/monitor/global-operation-statuses-component.spec.js +13 -17
- package/e2e-legacy/monitor/query-and-updates/queries-and-updates-with-repository.spec.js +16 -0
- package/e2e-legacy/rdf-version/rdf-version-accept-header.spec.js +145 -0
- package/e2e-legacy/repository/attach-remote-location.spec.js +7 -15
- package/e2e-legacy/repository/fedx-deprecation.spec.js +178 -0
- package/e2e-legacy/repository/ontop-repository.spec.js +25 -34
- package/e2e-legacy/repository/rename-repository-restrictions.spec.js +129 -0
- package/e2e-legacy/repository/repositories.spec.js +27 -10
- package/e2e-legacy/repository/repository-picker-tooltip.spec.js +72 -0
- package/e2e-legacy/repository/repository-selector-tooltip.spec.js +55 -0
- package/e2e-legacy/resource/resource.spec.js +177 -40
- package/e2e-legacy/setup/aclmanagement/create-rule.spec.js +14 -25
- package/e2e-legacy/setup/aclmanagement/delete-rule.spec.js +6 -6
- package/e2e-legacy/setup/aclmanagement/edit-rule.spec.js +15 -15
- package/e2e-legacy/setup/aclmanagement/render-rules.spec.js +1 -1
- package/e2e-legacy/setup/aclmanagement/reorder-rules.spec.js +2 -2
- package/e2e-legacy/setup/aclmanagement/revert-rules.spec.js +2 -2
- package/e2e-legacy/setup/aclmanagement/update-rules.spec.js +3 -3
- package/e2e-legacy/setup/aclmanagement/validate-uri.spec.js +152 -0
- package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +1 -1
- package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +1 -1
- package/e2e-legacy/setup/settings/my-settings.spec.js +25 -15
- package/e2e-legacy/setup/users-and-access/user-and-access.spec.js +34 -24
- package/e2e-legacy/sparql-editor/actions/expand-results-over-sameas.spec.js +8 -8
- package/e2e-legacy/sparql-editor/actions/include-inferred-statements.spec.js +4 -4
- package/e2e-legacy/sparql-editor/actions/inferred-sameas.spec.js +2 -2
- package/e2e-legacy/sparql-editor/saved-query/abort-query.spec.js +1 -1
- package/e2e-legacy/sparql-editor/sparql-editor-navigation.spec.js +219 -0
- package/e2e-legacy/sparql-editor/yasgui-tabs.spec.js +1 -1
- package/e2e-legacy/sparql-editor/yasr/download-as.spec.js +4 -7
- package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +8 -8
- package/e2e-legacy/ttyg/chat-list.spec.js +16 -1
- package/e2e-legacy/ttyg/chat-panel.spec.js +14 -0
- package/e2e-legacy/ttyg/chat-template-injection.spec.js +49 -0
- package/e2e-legacy/ttyg/create-chat.spec.js +1 -1
- package/e2e-legacy/ttyg/delete-agent.spec.js +14 -0
- package/e2e-legacy/ttyg/edit-agent.spec.js +8 -0
- package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +1 -1
- package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +1 -1
- package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +1 -1
- package/e2e-security/explore/visual-graph/graph-config-owner-actions.spec.js +52 -0
- package/e2e-security/repository/url-with-repository-id-parameter.spec.js +17 -0
- package/e2e-security/setup/home/cookie-policy.spec.js +4 -0
- package/e2e-security/setup/license/license-loading.spec.js +57 -0
- package/e2e-security/setup/license/license-logout.spec.js +38 -0
- package/e2e-security/setup/users-and-access/create-user-permissions.spec.js +1 -1
- package/e2e-security/setup/users-and-access/repo-admin-role.spec.js +1 -1
- package/e2e-security/setup/users-and-access/user-and-access.spec.js +0 -1
- package/eslint.config.js +5 -0
- package/fixtures/connectors/get-connectors.json +0 -1
- package/fixtures/graph-navigator/graph-navigator-settings-invalid.ttl +149 -0
- package/fixtures/graph-navigator/graph-navigator-settings.ttl +148 -0
- package/fixtures/graphdb-import/wine.rdf +279 -285
- package/fixtures/monitoring/get-active-queries-cluster-replicating.json +15 -0
- package/fixtures/ttyg/agent/get-agent-list-with-html-in-names.json +77 -0
- package/fixtures/ttyg/chats/get-chat-list-with-html-in-name.json +22 -0
- package/fixtures/ttyg/chats/get-chat-with-template-injection.json +27 -0
- package/npm-shrinkwrap.json +1264 -1265
- package/package.json +12 -2
- package/steps/application-steps.js +4 -0
- package/steps/base-steps.js +4 -0
- package/steps/cookie-policy/cookie-consent-banner-steps.js +2 -2
- package/steps/error-steps.js +2 -2
- package/steps/explore/graphs-overview-steps.js +44 -0
- package/steps/graph-navigator-steps.js +159 -0
- package/steps/header-steps.js +5 -1
- package/steps/home-steps.js +3 -6
- package/steps/import/import-server-files-steps.js +8 -0
- package/steps/import/import-settings-dialog-steps.js +16 -0
- package/steps/import/import-steps.js +94 -23
- package/steps/import/import-test-constants.js +1 -1
- package/steps/import/import-user-data-steps.js +26 -26
- package/steps/language-selector-steps.js +4 -0
- package/steps/layout-steps.js +6 -0
- package/steps/login-steps.js +7 -3
- package/steps/main-menu-steps.js +14 -14
- package/steps/monitoring/queries-and-updates-steps.js +9 -0
- package/steps/ontop-repository-steps.js +4 -0
- package/steps/page-restrictions-steps.js +24 -0
- package/steps/repositories/attach-repository-steps.js +2 -10
- package/steps/repository-picker-list-steps.js +58 -0
- package/steps/repository-selector-steps.js +20 -0
- package/steps/repository-steps.js +64 -9
- package/steps/resource/resource-steps.js +76 -9
- package/steps/rest-api-documentation-steps.js +23 -0
- package/steps/setup/acl-management-steps.js +4 -24
- package/steps/setup/settings-steps.js +42 -0
- package/steps/toaster-steps.js +4 -0
- package/steps/ttyg/chat-panel-steps.js +4 -0
- package/steps/ttyg/ttyg-view-steps.js +1 -14
- package/steps/visual-graph-steps.js +8 -0
- package/steps/widgets/repository-errors-widget-steps.js +15 -2
- package/steps/yasgui/yasqe-steps.js +5 -7
- package/steps/yasgui/yasr-steps.js +8 -0
- package/stubs/browser-stubs.js +40 -0
- package/stubs/graph-navigator-stubs.js +28 -0
- package/stubs/license-stubs.js +11 -3
- package/stubs/monitoring/queries-and-updates-stubs.js +5 -0
- package/stubs/repositories/repositories-stubs.js +44 -0
- package/stubs/ttyg/ttyg-stubs.js +3 -2
- package/stubs/yasgui/query-stubs.js +5 -0
- package/support/repository-commands.js +15 -0
- package/support/sparql-commands.js +2 -0
- package/support/visual-graph-commands.js +19 -0
- package/e2e-legacy/home/solr-banner/solr-banner.spec.js +0 -137
- package/fixtures/graphdb-import/test-trigstar.trigs +0 -32
- package/fixtures/graphdb-import/test_turtlestar.ttls +0 -6
- package/fixtures/graphdb-import/turtlestar-data.ttls +0 -77
- package/steps/deprecation-banner/deprecation-banner-steps.js +0 -13
- package/steps/deprecation-steps.js +0 -13
|
@@ -63,7 +63,7 @@ describe('Operations Status Component', () => {
|
|
|
63
63
|
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
it('should
|
|
66
|
+
it('should link the queries operation element to its view in a new window', () => {
|
|
67
67
|
// When I visit some page and there are running operations.
|
|
68
68
|
GlobalOperationsStatusesStub.stubGlobalOperationsStatusesResponse(repositoryId);
|
|
69
69
|
HomeSteps.visitAndWaitLoader();
|
|
@@ -71,14 +71,13 @@ describe('Operations Status Component', () => {
|
|
|
71
71
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
72
72
|
|
|
73
73
|
OperationsStatusesComponentSteps.openOperationStatusesDialog();
|
|
74
|
-
//
|
|
75
|
-
// Then I expect to be redirected to "Query and Update monitoring" view.
|
|
74
|
+
// Then I expect "Running query" operation element to link to "Query and Update monitoring" view in a new window.
|
|
76
75
|
checkOperationElementUrl('monitor/queries', 3);
|
|
77
76
|
// Then I expect "Global Operations Component" to still be displayed.
|
|
78
77
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
79
78
|
});
|
|
80
79
|
|
|
81
|
-
it('should
|
|
80
|
+
it('should link the updates operation element to its view in a new window', () => {
|
|
82
81
|
// When I visit some page and there are running operations.
|
|
83
82
|
GlobalOperationsStatusesStub.stubGlobalOperationsStatusesResponse(repositoryId);
|
|
84
83
|
HomeSteps.visitAndWaitLoader();
|
|
@@ -86,14 +85,13 @@ describe('Operations Status Component', () => {
|
|
|
86
85
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
87
86
|
|
|
88
87
|
OperationsStatusesComponentSteps.openOperationStatusesDialog();
|
|
89
|
-
//
|
|
90
|
-
// Then I expect to be redirected to "Query and Update monitoring" view.
|
|
88
|
+
// Then I expect "Running updates" operation element to link to "Query and Update monitoring" view in a new window.
|
|
91
89
|
checkOperationElementUrl('monitor/queries', 4);
|
|
92
90
|
// Then I expect "Global Operations Component" to still be displayed.
|
|
93
91
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
94
92
|
});
|
|
95
93
|
|
|
96
|
-
it('should
|
|
94
|
+
it('should link the imports operation element to its view in a new window', () => {
|
|
97
95
|
// When I visit some page and there are running operations.
|
|
98
96
|
GlobalOperationsStatusesStub.stubGlobalOperationsStatusesResponse(repositoryId);
|
|
99
97
|
HomeSteps.visitAndWaitLoader();
|
|
@@ -101,14 +99,13 @@ describe('Operations Status Component', () => {
|
|
|
101
99
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
102
100
|
|
|
103
101
|
OperationsStatusesComponentSteps.openOperationStatusesDialog();
|
|
104
|
-
//
|
|
105
|
-
// Then I expect to be redirected to "Query and Update monitoring" view.
|
|
102
|
+
// Then I expect "Running imports" operation element to link to "Import" view in a new window.
|
|
106
103
|
checkOperationElementUrl('import', 2);
|
|
107
104
|
// Then I expect "Global Operations Component" to still be displayed.
|
|
108
105
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
109
106
|
});
|
|
110
107
|
|
|
111
|
-
it('should
|
|
108
|
+
it('should link the backup and restore operation element to its view in a new window', () => {
|
|
112
109
|
// When I visit some page and there are running operations.
|
|
113
110
|
GlobalOperationsStatusesStub.stubGlobalOperationsStatusesResponse(repositoryId);
|
|
114
111
|
HomeSteps.visitAndWaitLoader();
|
|
@@ -116,15 +113,14 @@ describe('Operations Status Component', () => {
|
|
|
116
113
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
117
114
|
|
|
118
115
|
OperationsStatusesComponentSteps.openOperationStatusesDialog();
|
|
119
|
-
//
|
|
120
|
-
// Then I expect to be redirected to "Backup and Restore" view.
|
|
116
|
+
// Then I expect "Creating backup" operation element to link to "Backup and Restore" view in a new window.
|
|
121
117
|
checkOperationElementUrl('monitor/backup-and-restore', 1);
|
|
122
118
|
// Then I expect "Global Operations Component" to still be displayed.
|
|
123
119
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
124
120
|
|
|
125
121
|
});
|
|
126
122
|
|
|
127
|
-
it('should
|
|
123
|
+
it('should link the cluster operation element to its view in a new window', () => {
|
|
128
124
|
// When I visit some page and there are running operations.
|
|
129
125
|
GlobalOperationsStatusesStub.stubGlobalOperationsStatusesResponse(repositoryId);
|
|
130
126
|
HomeSteps.visitAndWaitLoader();
|
|
@@ -132,8 +128,7 @@ describe('Operations Status Component', () => {
|
|
|
132
128
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
133
129
|
|
|
134
130
|
OperationsStatusesComponentSteps.openOperationStatusesDialog();
|
|
135
|
-
//
|
|
136
|
-
// Then I expect to be redirected to "Cluster Monitoring" view.
|
|
131
|
+
// Then I expect "Unavailable nodes" operation element to link to "Cluster Monitoring" view in a new window.
|
|
137
132
|
checkOperationElementUrl('cluster', 0);
|
|
138
133
|
// Then I expect "Global Operations Component" to still be displayed.
|
|
139
134
|
OperationsStatusesComponentSteps.getOperationsStatusesComponent().should('exist');
|
|
@@ -141,8 +136,9 @@ describe('Operations Status Component', () => {
|
|
|
141
136
|
});
|
|
142
137
|
|
|
143
138
|
function checkOperationElementUrl(expectedUrl, operationIndex = 0) {
|
|
144
|
-
BrowserStubs.
|
|
139
|
+
BrowserStubs.captureLinkClicks();
|
|
145
140
|
OperationsStatusesComponentSteps.getOperationStatuses().eq(operationIndex).click();
|
|
146
|
-
|
|
141
|
+
// The page must leave the click to the browser, which opens the link in a new window.
|
|
142
|
+
cy.get(BrowserStubs.LINK_CLICKS_ALIAS()).should('deep.equal', [{href: expectedUrl, target: '_blank', defaultPrevented: false}]);
|
|
147
143
|
}
|
|
148
144
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import HomeSteps from "../../../steps/home-steps";
|
|
2
2
|
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
3
3
|
import {QueriesAndUpdatesSteps} from "../../../steps/monitoring/queries-and-updates-steps";
|
|
4
|
+
import {ApplicationSteps} from "../../../steps/application-steps";
|
|
5
|
+
import {QueriesAndUpdatesStubs} from "../../../stubs/monitoring/queries-and-updates-stubs";
|
|
4
6
|
|
|
5
7
|
describe('Queries and Updates with selected repository', () => {
|
|
6
8
|
let repositoryId;
|
|
@@ -30,6 +32,20 @@ describe('Queries and Updates with selected repository', () => {
|
|
|
30
32
|
verifyInitialStateWithSelectedRepository();
|
|
31
33
|
});
|
|
32
34
|
|
|
35
|
+
it('should not allow aborting an update while it is replicated to the cluster', () => {
|
|
36
|
+
// Given an update is being replicated to the cluster
|
|
37
|
+
QueriesAndUpdatesStubs.stubGetActiveQueries(repositoryId, '/monitoring/get-active-queries-cluster-replicating.json');
|
|
38
|
+
// When I open the Queries and Updates page
|
|
39
|
+
QueriesAndUpdatesSteps.visit();
|
|
40
|
+
cy.wait('@getActiveQueries');
|
|
41
|
+
|
|
42
|
+
// Then I expect Abort to be disabled
|
|
43
|
+
QueriesAndUpdatesSteps.getAbortButtons().eq(0).should('be.disabled');
|
|
44
|
+
// And its popover to say why
|
|
45
|
+
QueriesAndUpdatesSteps.hoverAbortButton(0);
|
|
46
|
+
ApplicationSteps.getPopover().should('contain.text', 'Update cannot be aborted while being replicated to the cluster');
|
|
47
|
+
});
|
|
48
|
+
|
|
33
49
|
const verifyInitialStateWithSelectedRepository = () => {
|
|
34
50
|
QueriesAndUpdatesSteps.getQueryAndUpdatePage().should('be.visible');
|
|
35
51
|
QueriesAndUpdatesSteps.getPauseButton().should('be.visible');
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import {SparqlEditorSteps} from "../../steps/sparql-editor-steps";
|
|
2
|
+
import {YasguiSteps} from "../../steps/yasgui/yasgui-steps";
|
|
3
|
+
import {YasqeSteps} from "../../steps/yasgui/yasqe-steps";
|
|
4
|
+
import {YasrSteps} from "../../steps/yasgui/yasr-steps";
|
|
5
|
+
import {QueryStubs} from "../../stubs/yasgui/query-stubs";
|
|
6
|
+
import {GraphsOverviewSteps} from "../../steps/explore/graphs-overview-steps";
|
|
7
|
+
import {JsonLdModalSteps} from "../../steps/json-ld-modal-steps";
|
|
8
|
+
|
|
9
|
+
// The workbench requests RDF 1.2 by adding the "version" media type parameter to the Accept header.
|
|
10
|
+
// The parameter must be present on every RDF media range and must precede the weight ("q"),
|
|
11
|
+
// because anything after the weight is not a media type parameter.
|
|
12
|
+
const SELECT_QUERY_ACCEPT = 'application/x-sparqlstar-results+json;version=1.2, application/sparql-results+json;version=1.2;q=0.9, */*;version=1.2;q=0.8';
|
|
13
|
+
const CONSTRUCT_QUERY_ACCEPT = 'application/x-graphdb-table-results+json;version=1.2, application/rdf+json;version=1.2;q=0.9, */*;version=1.2;q=0.8';
|
|
14
|
+
const JSONLD_EXPANDED_ACCEPT = 'application/ld+json;profile=http://www.w3.org/ns/json-ld#expanded;version=1.2';
|
|
15
|
+
|
|
16
|
+
describe('RDF version in the Accept header', () => {
|
|
17
|
+
let repositoryId;
|
|
18
|
+
|
|
19
|
+
afterEach(() => {
|
|
20
|
+
cy.deleteRepository(repositoryId);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
describe('SPARQL editor', () => {
|
|
24
|
+
beforeEach(() => {
|
|
25
|
+
repositoryId = 'rdf-version-sparql-' + Date.now();
|
|
26
|
+
QueryStubs.stubQueryCountResponse();
|
|
27
|
+
cy.createRepository({id: repositoryId});
|
|
28
|
+
cy.presetRepository(repositoryId);
|
|
29
|
+
QueryStubs.stubDefaultQueryResponse(repositoryId);
|
|
30
|
+
|
|
31
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
32
|
+
YasguiSteps.getYasgui().should('be.visible');
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('should request RDF 1.2 when executing a SELECT query', () => {
|
|
36
|
+
// Given I am about to execute the default SELECT query
|
|
37
|
+
cy.intercept('POST', `/repositories/${repositoryId}`).as('query');
|
|
38
|
+
|
|
39
|
+
// When I execute it
|
|
40
|
+
YasqeSteps.executeQuery();
|
|
41
|
+
|
|
42
|
+
// Then every media range of the Accept header should request RDF 1.2
|
|
43
|
+
verifyAcceptHeader('@query', SELECT_QUERY_ACCEPT);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('should request RDF 1.2 when executing a CONSTRUCT query', () => {
|
|
47
|
+
// Given I am about to execute a CONSTRUCT query
|
|
48
|
+
cy.intercept('POST', `/repositories/${repositoryId}`).as('query');
|
|
49
|
+
|
|
50
|
+
// When I execute it
|
|
51
|
+
pasteAndExecuteConstructQuery();
|
|
52
|
+
|
|
53
|
+
// Then every media range of the Accept header should request RDF 1.2
|
|
54
|
+
verifyAcceptHeader('@query', CONSTRUCT_QUERY_ACCEPT);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should request RDF 1.2 when downloading SELECT results', () => {
|
|
58
|
+
// Given I have executed a SELECT query
|
|
59
|
+
YasqeSteps.executeQuery();
|
|
60
|
+
cy.intercept('POST', `/repositories/${repositoryId}`).as('download');
|
|
61
|
+
|
|
62
|
+
// When I download the results as XML
|
|
63
|
+
YasrSteps.openDownloadAsDropdown();
|
|
64
|
+
YasrSteps.selectDownloadAsOption(1);
|
|
65
|
+
|
|
66
|
+
// Then the download request should ask for RDF 1.2
|
|
67
|
+
verifyAcceptHeader('@download', 'application/sparql-results+xml;version=1.2');
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('should request RDF 1.2 when downloading CONSTRUCT results as JSON-LD', () => {
|
|
71
|
+
// Given I have executed a CONSTRUCT query
|
|
72
|
+
pasteAndExecuteConstructQuery();
|
|
73
|
+
cy.intercept('POST', `/repositories/${repositoryId}`).as('download');
|
|
74
|
+
|
|
75
|
+
// When I download the results as JSON-LD with the default settings
|
|
76
|
+
YasrSteps.openDownloadAsDropdown();
|
|
77
|
+
YasrSteps.selectDownloadAsOption(1);
|
|
78
|
+
JsonLdModalSteps.clickExportJSONLD();
|
|
79
|
+
|
|
80
|
+
// Then the version should follow the JSON-LD profile
|
|
81
|
+
verifyAcceptHeader('@download', JSONLD_EXPANDED_ACCEPT);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
describe('Graphs overview', () => {
|
|
86
|
+
beforeEach(() => {
|
|
87
|
+
repositoryId = 'rdf-version-graphs-' + Date.now();
|
|
88
|
+
cy.createRepository({id: repositoryId});
|
|
89
|
+
cy.presetRepository(repositoryId);
|
|
90
|
+
cy.importRDFTextSnippet(repositoryId, '<urn:s> <urn:p> <urn:o> .');
|
|
91
|
+
|
|
92
|
+
GraphsOverviewSteps.visit();
|
|
93
|
+
GraphsOverviewSteps.getResults().should('have.length.at.least', 1);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it('should request RDF 1.2 when exporting the repository', () => {
|
|
97
|
+
// Given the export opens the download URL in a new window
|
|
98
|
+
cy.window().then((win) => {
|
|
99
|
+
cy.stub(win, 'open').returns({closed: true}).as('windowOpen');
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// When I export the repository as TriG
|
|
103
|
+
GraphsOverviewSteps.exportRepository();
|
|
104
|
+
cy.get('.export-repo-format-TriG').eq(0).click();
|
|
105
|
+
|
|
106
|
+
// Then the Accept parameter of the download URL should request RDF 1.2
|
|
107
|
+
cy.get('@windowOpen').should('have.been.calledOnce')
|
|
108
|
+
.its('firstCall.args.0')
|
|
109
|
+
.should('contain', '&Accept=' + encodeURIComponent('application/x-trig;version=1.2'));
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
it('should request RDF 1.2 when exporting the repository as JSON-LD', () => {
|
|
113
|
+
// Given I am about to export the repository
|
|
114
|
+
cy.intercept({method: 'GET', pathname: `/repositories/${repositoryId}/statements`}).as('export');
|
|
115
|
+
|
|
116
|
+
// When I export it as JSON-LD with the default settings
|
|
117
|
+
GraphsOverviewSteps.exportRepository();
|
|
118
|
+
GraphsOverviewSteps.selectJSONLDOption();
|
|
119
|
+
JsonLdModalSteps.clickExportJSONLD();
|
|
120
|
+
|
|
121
|
+
// Then the version should follow the JSON-LD profile
|
|
122
|
+
verifyAcceptHeader('@export', JSONLD_EXPANDED_ACCEPT);
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it('should request RDF 1.2 when downloading all graphs', () => {
|
|
126
|
+
// Given I am about to download all graphs
|
|
127
|
+
cy.intercept({method: 'GET', pathname: `/repositories/${repositoryId}/contexts`}).as('downloadGraphs');
|
|
128
|
+
|
|
129
|
+
// When I download them
|
|
130
|
+
GraphsOverviewSteps.clickOnDownloadAllButton();
|
|
131
|
+
|
|
132
|
+
// Then RDF 1.2 should be requested for every media range except JSON
|
|
133
|
+
verifyAcceptHeader('@downloadGraphs', 'application/json, text/plain;version=1.2, */*;version=1.2');
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
function verifyAcceptHeader(alias, expectedAccept) {
|
|
139
|
+
cy.wait(alias).its('request.headers.accept').should('equal', expectedAccept);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function pasteAndExecuteConstructQuery() {
|
|
143
|
+
YasqeSteps.pasteQuery('CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o }');
|
|
144
|
+
YasqeSteps.executeQuery();
|
|
145
|
+
}
|
|
@@ -122,7 +122,7 @@ describe('Attach remote location', () => {
|
|
|
122
122
|
RepositorySteps.getSparqlOntopicTable().should('not.exist');
|
|
123
123
|
});
|
|
124
124
|
|
|
125
|
-
it('should
|
|
125
|
+
it('should create a remote location with basic auth without an encrypt password flag', () => {
|
|
126
126
|
// Given I have a running GDB instance and I am on the Repositories view
|
|
127
127
|
RepositorySteps.visit();
|
|
128
128
|
// When I start the location creation
|
|
@@ -130,28 +130,20 @@ describe('Attach remote location', () => {
|
|
|
130
130
|
AttachRepositorySteps.enterURL(remoteLocationName);
|
|
131
131
|
// And I select basic auth type
|
|
132
132
|
AttachRepositorySteps.selectBasicRadioBtn();
|
|
133
|
-
// Then I
|
|
134
|
-
AttachRepositorySteps.
|
|
135
|
-
// And I should not see the warning for the backward compatibility issues when encrypting the password
|
|
136
|
-
AttachRepositorySteps.getBackwardCompatibilityWarning().should('not.exist');
|
|
137
|
-
// When I select to encrypt the password
|
|
138
|
-
AttachRepositorySteps.encryptPassword();
|
|
139
|
-
// Then I should see the backward compatibility warning
|
|
140
|
-
AttachRepositorySteps.getBackwardCompatibilityWarning().should('be.visible');
|
|
141
|
-
// And the unencrypted password warning should not be visible
|
|
142
|
-
AttachRepositorySteps.getUnencryptedPasswordWarning().should('not.exist');
|
|
133
|
+
// Then I should not see an option to encrypt the password
|
|
134
|
+
AttachRepositorySteps.getEncryptPasswordCheckbox().should('not.exist');
|
|
143
135
|
// When I fill in username and password
|
|
144
136
|
AttachRepositorySteps.enterUsername('locationadmin');
|
|
145
137
|
AttachRepositorySteps.enterPassword('admin123');
|
|
146
138
|
// And I save the location
|
|
147
139
|
RemoteLocationStubs.spyRemoteLocationCreate();
|
|
148
140
|
AttachRepositorySteps.attachRemoteLocation();
|
|
149
|
-
// Then encrypt password flag should be sent
|
|
141
|
+
// Then the encrypt password flag should not be sent
|
|
150
142
|
cy.wait('@add-remote-location')
|
|
151
143
|
.its('request.body')
|
|
152
|
-
.should(
|
|
153
|
-
|
|
154
|
-
|
|
144
|
+
.should((body) => {
|
|
145
|
+
expect(body).to.include({username: 'locationadmin'});
|
|
146
|
+
expect(body).not.to.have.property('encryptPassword');
|
|
155
147
|
});
|
|
156
148
|
});
|
|
157
149
|
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import HomeSteps from '../../steps/home-steps.js';
|
|
2
|
+
import {RepositorySteps} from '../../steps/repository-steps.js';
|
|
3
|
+
import {RepositorySelectorSteps} from '../../steps/repository-selector-steps.js';
|
|
4
|
+
import {RepositoryPickerListSteps} from '../../steps/repository-picker-list-steps.js';
|
|
5
|
+
import {GraphNavigatorSteps} from '../../steps/graph-navigator-steps.js';
|
|
6
|
+
import {ModalDialogSteps} from '../../steps/modal-dialog-steps.js';
|
|
7
|
+
import ImportSteps from '../../steps/import/import-steps.js';
|
|
8
|
+
import {RepositoryErrorsWidgetSteps} from '../../steps/widgets/repository-errors-widget-steps.js';
|
|
9
|
+
|
|
10
|
+
const DEPRECATION_MESSAGE = 'FedX will be removed in GraphDB 13. Migrate to SPARQL 1.1 federation.';
|
|
11
|
+
const TOOLTIP_DEPRECATION_MESSAGE = 'FedX repositories are deprecated: Will be removed in GraphDB 13. Migrate to SPARQL 1.1 federation.';
|
|
12
|
+
|
|
13
|
+
describe('FedX deprecation', () => {
|
|
14
|
+
let repositoryId;
|
|
15
|
+
let fedxRepositoryId;
|
|
16
|
+
|
|
17
|
+
beforeEach(() => {
|
|
18
|
+
repositoryId = 'fedx-deprecation-member-' + Date.now();
|
|
19
|
+
fedxRepositoryId = 'fedx-deprecation-' + Date.now();
|
|
20
|
+
cy.createRepository({id: repositoryId});
|
|
21
|
+
cy.createRepository({
|
|
22
|
+
id: fedxRepositoryId,
|
|
23
|
+
type: 'fedx',
|
|
24
|
+
params: {
|
|
25
|
+
member: {
|
|
26
|
+
name: 'member',
|
|
27
|
+
label: 'FedX repo members',
|
|
28
|
+
value: [{store: 'ResolvableRepository', repositoryName: repositoryId, respectRights: 'true', writable: 'false'}],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
afterEach(() => {
|
|
35
|
+
cy.deleteRepository(fedxRepositoryId);
|
|
36
|
+
cy.deleteRepository(repositoryId);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('should mark FedX repositories as deprecated in the repositories list', () => {
|
|
40
|
+
// When I open the repositories list
|
|
41
|
+
RepositorySteps.visit();
|
|
42
|
+
|
|
43
|
+
// Then only the FedX repository is marked as deprecated
|
|
44
|
+
RepositorySteps.getRepositoryFedxDeprecatedTag(fedxRepositoryId).should('be.visible').and('have.text', 'Deprecated');
|
|
45
|
+
RepositorySteps.getRepositoryFedxDeprecatedTag(repositoryId).should('not.exist');
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('should show the deprecation message in the tooltip of a FedX repository in the repositories list', () => {
|
|
49
|
+
// Given I open the repositories list
|
|
50
|
+
RepositorySteps.visit();
|
|
51
|
+
|
|
52
|
+
// When I hover the FedX repository
|
|
53
|
+
RepositorySteps.hoverRepositoryInList(fedxRepositoryId);
|
|
54
|
+
|
|
55
|
+
// Then its tooltip shows the deprecation message
|
|
56
|
+
RepositorySteps.getRepositoryPopoverDeprecationMessage().should('be.visible').and('contain.text', TOOLTIP_DEPRECATION_MESSAGE);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('should mark FedX repositories as deprecated in the repository selector', () => {
|
|
60
|
+
// Given I open the repository selector
|
|
61
|
+
HomeSteps.visit();
|
|
62
|
+
RepositorySelectorSteps.openRepositorySelectors();
|
|
63
|
+
|
|
64
|
+
// Then only the FedX repository is marked as deprecated
|
|
65
|
+
RepositorySelectorSteps.getRepositoryFedxDeprecatedTag(fedxRepositoryId).should('be.visible').and('have.text', 'Deprecated');
|
|
66
|
+
RepositorySelectorSteps.getRepositoryFedxDeprecatedTag(repositoryId).should('not.exist');
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('should show the deprecation message in the tooltip of a FedX repository in the repository selector', () => {
|
|
70
|
+
// Given I open the repository selector
|
|
71
|
+
HomeSteps.visit();
|
|
72
|
+
RepositorySelectorSteps.openRepositorySelectors();
|
|
73
|
+
|
|
74
|
+
// When I hover the FedX repository
|
|
75
|
+
RepositorySelectorSteps.hoverRepositoryItem(fedxRepositoryId);
|
|
76
|
+
|
|
77
|
+
// Then its tooltip shows the deprecation message
|
|
78
|
+
RepositorySelectorSteps.getRepositoryTooltipPart('deprecation').should('contain.text', TOOLTIP_DEPRECATION_MESSAGE);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('should mark FedX repositories as deprecated in the repository picker', () => {
|
|
82
|
+
// Given no repository is selected, so the view shows the repository picker
|
|
83
|
+
GraphNavigatorSteps.visit();
|
|
84
|
+
|
|
85
|
+
// Then only the FedX repository is marked as deprecated
|
|
86
|
+
RepositoryPickerListSteps.getRepositoryFedxDeprecatedTag(fedxRepositoryId).should('be.visible').and('have.text', 'Deprecated');
|
|
87
|
+
RepositoryPickerListSteps.getRepositoryFedxDeprecatedTag(repositoryId).should('not.exist');
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it('should show the deprecation message in the information of a FedX repository in the repository picker', () => {
|
|
91
|
+
// Given no repository is selected, so the view shows the repository picker
|
|
92
|
+
GraphNavigatorSteps.visit();
|
|
93
|
+
|
|
94
|
+
// When I move the keyboard focus to the FedX repository
|
|
95
|
+
RepositoryPickerListSteps.focusRepository(fedxRepositoryId);
|
|
96
|
+
|
|
97
|
+
// Then its information shows the deprecation message and a link to the migration documentation
|
|
98
|
+
RepositoryPickerListSteps.getRepositoryInfoPart('deprecation').should('contain.text', TOOLTIP_DEPRECATION_MESSAGE);
|
|
99
|
+
RepositoryPickerListSteps.getRepositoryInfoPart('fedx-migration-link').should('have.text', 'Learn more')
|
|
100
|
+
.and('have.attr', 'href').and('match', /\/sparql-federation\.html$/);
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it('should mark FedX repositories as deprecated in the Import repository list', () => {
|
|
104
|
+
// When I open the Import view with no repository selected
|
|
105
|
+
ImportSteps.visit();
|
|
106
|
+
|
|
107
|
+
// Then only the FedX repository is marked as deprecated
|
|
108
|
+
RepositoryErrorsWidgetSteps.getRepositoryFedxDeprecatedTag(fedxRepositoryId).should('be.visible').and('have.text', 'Deprecated');
|
|
109
|
+
RepositoryErrorsWidgetSteps.getRepositoryFedxDeprecatedTag(repositoryId).should('not.exist');
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
it('should mark the FedX repository type as deprecated', () => {
|
|
113
|
+
// When I open the repository type chooser
|
|
114
|
+
RepositorySteps.visit();
|
|
115
|
+
RepositorySteps.createRepository();
|
|
116
|
+
|
|
117
|
+
// Then only the FedX type shows the deprecation message
|
|
118
|
+
RepositorySteps.getRepositoryTypeFedxDeprecationMessage('fedx').should('be.visible').and('have.text', 'Deprecated: Will be removed in GraphDB 13.');
|
|
119
|
+
RepositorySteps.getRepositoryTypeFedxDeprecationMessage('gdb').should('not.exist');
|
|
120
|
+
RepositorySteps.getRepositoryTypeFedxDeprecationMessage('ontop').should('not.exist');
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it('should stay on the repository type chooser when the FedX creation is cancelled', () => {
|
|
124
|
+
// Given I open the repository type chooser
|
|
125
|
+
RepositorySteps.visit();
|
|
126
|
+
RepositorySteps.createRepository();
|
|
127
|
+
|
|
128
|
+
// When I choose the FedX type
|
|
129
|
+
RepositorySteps.chooseRepositoryType('fedx');
|
|
130
|
+
|
|
131
|
+
// Then a dialog asks me to confirm the creation of a deprecated repository
|
|
132
|
+
ModalDialogSteps.verifyDialogBody(DEPRECATION_MESSAGE);
|
|
133
|
+
ModalDialogSteps.verifyDialogBody('Create a FedX repository anyway?');
|
|
134
|
+
RepositorySteps.getFedxDeprecationDialogMigrationLink().should('have.text', 'Learn more in the GraphDB documentation')
|
|
135
|
+
.and('have.attr', 'href').and('match', /\/sparql-federation\.html$/);
|
|
136
|
+
ModalDialogSteps.getDialogBody().should('not.contain.text', '<br>');
|
|
137
|
+
|
|
138
|
+
// When I cancel
|
|
139
|
+
ModalDialogSteps.clickOnCancelButton();
|
|
140
|
+
|
|
141
|
+
// Then I stay on the repository type chooser
|
|
142
|
+
ModalDialogSteps.getDialog().should('not.exist');
|
|
143
|
+
cy.url().should('match', /\/repository\/create$/);
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
it('should show the deprecation warning when a FedX repository is created', () => {
|
|
147
|
+
// Given I open the repository type chooser
|
|
148
|
+
RepositorySteps.visit();
|
|
149
|
+
RepositorySteps.createRepository();
|
|
150
|
+
|
|
151
|
+
// When I choose the FedX type and confirm
|
|
152
|
+
RepositorySteps.chooseRepositoryType('fedx');
|
|
153
|
+
ModalDialogSteps.clickOnConfirmButton();
|
|
154
|
+
|
|
155
|
+
// Then the FedX create page shows the deprecation warning with a link to the migration guide
|
|
156
|
+
cy.url().should('include', '/repository/create/fedx');
|
|
157
|
+
RepositorySteps.getFedxDeprecationWarning().should('be.visible').and('contain.text', DEPRECATION_MESSAGE);
|
|
158
|
+
RepositorySteps.getFedxMigrationLink().should('have.attr', 'href').and('match', /\/sparql-federation\.html$/);
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it('should show the deprecation warning when a FedX repository is edited', () => {
|
|
162
|
+
// When I edit the FedX repository
|
|
163
|
+
RepositorySteps.visitEditPage(fedxRepositoryId);
|
|
164
|
+
|
|
165
|
+
// Then the edit page shows the deprecation warning with a link to the migration guide
|
|
166
|
+
RepositorySteps.getFedxDeprecationWarning().should('be.visible').and('contain.text', DEPRECATION_MESSAGE);
|
|
167
|
+
RepositorySteps.getFedxMigrationLink().should('have.attr', 'href').and('match', /\/sparql-federation\.html$/);
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it('should not show the deprecation warning when another repository is edited', () => {
|
|
171
|
+
// When I edit a GraphDB repository
|
|
172
|
+
RepositorySteps.visitEditPage(repositoryId);
|
|
173
|
+
|
|
174
|
+
// Then the edit page shows no deprecation warning
|
|
175
|
+
RepositorySteps.getRepositoryPage().should('be.visible');
|
|
176
|
+
RepositorySteps.getFedxDeprecationWarning().should('not.exist');
|
|
177
|
+
});
|
|
178
|
+
});
|
|
@@ -245,49 +245,43 @@ describe('Ontop repositories', () => {
|
|
|
245
245
|
context('Repository maintenance permission', () => {
|
|
246
246
|
|
|
247
247
|
const PASSWORD = 'root';
|
|
248
|
-
|
|
249
|
-
const REPOSITORY_MANAGER_USERNAME = 'repoManager';
|
|
248
|
+
let repositoryMaintainerUsername;
|
|
250
249
|
|
|
251
250
|
beforeEach(() => {
|
|
252
|
-
|
|
253
|
-
username: REPOSITORY_MAINTAINER_USERNAME,
|
|
254
|
-
password: PASSWORD,
|
|
255
|
-
grantedAuthorities: [
|
|
256
|
-
`READ_REPO_${repositoryId}`,
|
|
257
|
-
`MAINTAIN_REPO_${repositoryId}`,
|
|
258
|
-
`WRITE_REPO_${repositoryId}`
|
|
259
|
-
]
|
|
260
|
-
});
|
|
261
|
-
cy.createUser({
|
|
262
|
-
username: REPOSITORY_MANAGER_USERNAME,
|
|
263
|
-
password: PASSWORD,
|
|
264
|
-
grantedAuthorities: [
|
|
265
|
-
'ROLE_USER',
|
|
266
|
-
'ROLE_MONITORING',
|
|
267
|
-
'ROLE_REPO_MANAGER'
|
|
268
|
-
]
|
|
269
|
-
});
|
|
270
|
-
cy.switchOnSecurity();
|
|
251
|
+
repositoryMaintainerUsername = 'repo-maintainer-' + Date.now();
|
|
271
252
|
});
|
|
272
253
|
|
|
273
254
|
afterEach(() => {
|
|
274
255
|
cy.loginAsAdmin()
|
|
275
256
|
.then(() => {
|
|
276
|
-
cy.deleteUser(
|
|
277
|
-
cy.deleteUser(REPOSITORY_MANAGER_USERNAME, true);
|
|
257
|
+
cy.deleteUser(repositoryMaintainerUsername, true);
|
|
278
258
|
cy.switchOffSecurity(true);
|
|
279
259
|
});
|
|
280
260
|
});
|
|
281
261
|
it('should allow a repository maintainer to edit an Ontop repository', () => {
|
|
282
262
|
RepositoryStubs.spyGetJDBCProperties();
|
|
283
263
|
// GIVEN: An Ontop repository exists
|
|
284
|
-
cy.loginAs(REPOSITORY_MANAGER_USERNAME, PASSWORD);
|
|
285
264
|
OntopRepositorySteps.visitCreate();
|
|
286
265
|
createOntopRepository(repositoryId);
|
|
266
|
+
RepositorySteps.waitUntilRepositoriesPageIsLoaded();
|
|
267
|
+
RepositorySteps.getRepositoryFromList(repositoryId).should('exist');
|
|
268
|
+
|
|
269
|
+
// AND: A user with maintenance permission for it is created after the repository,
|
|
270
|
+
// because creating a repository removes the permissions already granted for its ID.
|
|
271
|
+
cy.createUser({
|
|
272
|
+
username: repositoryMaintainerUsername,
|
|
273
|
+
password: PASSWORD,
|
|
274
|
+
grantedAuthorities: [
|
|
275
|
+
`READ_REPO_${repositoryId}`,
|
|
276
|
+
`MAINTAIN_REPO_${repositoryId}`,
|
|
277
|
+
`WRITE_REPO_${repositoryId}`
|
|
278
|
+
]
|
|
279
|
+
});
|
|
280
|
+
cy.switchOnSecurity();
|
|
287
281
|
|
|
288
282
|
// WHEN: I log in as a user with maintenance permission
|
|
289
|
-
cy.loginAs(
|
|
290
|
-
RepositorySteps.visit(
|
|
283
|
+
cy.loginAs(repositoryMaintainerUsername, PASSWORD);
|
|
284
|
+
RepositorySteps.visit();
|
|
291
285
|
|
|
292
286
|
// THEN: The repository is visible because the user can maintain it
|
|
293
287
|
RepositorySteps.getRepositoryFromList(repositoryId).should('exist');
|
|
@@ -312,7 +306,7 @@ describe('Ontop repositories', () => {
|
|
|
312
306
|
ModalDialogSteps.clickOnConfirmButton();
|
|
313
307
|
|
|
314
308
|
// THEN: The changes are persisted
|
|
315
|
-
RepositorySteps.visit(
|
|
309
|
+
RepositorySteps.visit();
|
|
316
310
|
RepositorySteps.getRepositoryFromList(repositoryId).should('exist');
|
|
317
311
|
RepositorySteps.editRepository(repositoryId);
|
|
318
312
|
cy.wait('@getJDBCProperties');
|
|
@@ -326,8 +320,7 @@ describe('Ontop repositories', () => {
|
|
|
326
320
|
.should('contain.value', 'ontop.cardinalityMode=LOOSE');
|
|
327
321
|
// Saving of the OBDA file verifies that the repository maintainer can access rest/repositories/file/upload
|
|
328
322
|
OntopRepositorySteps.editOBDAFile();
|
|
329
|
-
|
|
330
|
-
.find('textarea')
|
|
323
|
+
OntopRepositorySteps.getFileContentEditor()
|
|
331
324
|
.invoke('val')
|
|
332
325
|
.should('include', 'edited ODBA file');
|
|
333
326
|
ModalDialogSteps.close();
|
|
@@ -339,8 +332,7 @@ describe('Ontop repositories', () => {
|
|
|
339
332
|
ModalDialogSteps.getDialogHeader()
|
|
340
333
|
.should('contain', 'Edit "OBDA or R2RML file" contents');
|
|
341
334
|
|
|
342
|
-
|
|
343
|
-
.find('textarea')
|
|
335
|
+
OntopRepositorySteps.getFileContentEditor()
|
|
344
336
|
.type('{moveToStart}Add commentary for testing purpose');
|
|
345
337
|
|
|
346
338
|
ModalDialogSteps.clickOKButton();
|
|
@@ -348,14 +340,13 @@ describe('Ontop repositories', () => {
|
|
|
348
340
|
ModalDialogSteps.clickOnConfirmButton();
|
|
349
341
|
|
|
350
342
|
// THEN: The OBDA file changes are persisted
|
|
351
|
-
RepositorySteps.visit(
|
|
343
|
+
RepositorySteps.visit();
|
|
352
344
|
RepositorySteps.getRepositoryFromList(repositoryId).should('exist');
|
|
353
345
|
RepositorySteps.editRepository(repositoryId);
|
|
354
346
|
cy.wait('@getJDBCProperties');
|
|
355
347
|
OntopRepositorySteps.editOBDAFile();
|
|
356
348
|
|
|
357
|
-
|
|
358
|
-
.find('textarea')
|
|
349
|
+
OntopRepositorySteps.getFileContentEditor()
|
|
359
350
|
.invoke('val')
|
|
360
351
|
.should('include', 'Add commentary for testing purpose');
|
|
361
352
|
});
|