graphdb-workbench-tests 4.0.0-TR2 → 4.0.0-TR21
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/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/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +27 -0
- package/e2e-legacy/cluster/edit-cluster-nodes-modal.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 +447 -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 +26 -30
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +12 -20
- 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 +47 -22
- 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-view.spec.js +2 -2
- package/e2e-legacy/monitor/global-operation-statuses-component.spec.js +13 -17
- 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 +5 -1
- package/e2e-legacy/repository/repositories.spec.js +3 -3
- 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 -25
- 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 +1 -1
- package/e2e-legacy/ttyg/create-agent.spec.js +6 -4
- package/e2e-legacy/ttyg/create-chat.spec.js +1 -1
- package/e2e-legacy/ttyg/edit-agent.spec.js +57 -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/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/fixtures/cluster/3-nodes-cluster-group-status-no-leader.json +41 -0
- package/fixtures/cluster/cluster-config-with-tag.json +17 -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/npm-shrinkwrap.json +1283 -1643
- package/package.json +10 -1
- package/steps/base-steps.js +4 -0
- package/steps/cluster/cluster-configuration-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 +145 -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 +88 -17
- package/steps/import/import-test-constants.js +1 -1
- package/steps/import/import-user-data-steps.js +24 -24
- 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/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 +48 -9
- package/steps/resource/resource-steps.js +76 -9
- package/steps/setup/acl-management-steps.js +4 -24
- package/steps/setup/settings-steps.js +42 -0
- package/steps/setup/user-and-access-steps.js +18 -14
- package/steps/toaster-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 +3 -1
- package/steps/yasgui/yasr-steps.js +8 -0
- package/stubs/browser-stubs.js +40 -0
- package/stubs/cluster/cluster-stubs.js +15 -1
- package/stubs/graph-navigator-stubs.js +27 -0
- package/stubs/license-stubs.js +11 -3
- package/stubs/repositories/repositories-stubs.js +44 -0
- package/stubs/yasgui/query-stubs.js +5 -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
|
@@ -28,15 +28,11 @@ describe('Edit TTYG agent guide', () => {
|
|
|
28
28
|
it('should end guide when no api key is present', () => {
|
|
29
29
|
TTYGStubs.stubAgentListGetError('Set the config property \'graphdb.llm.api-key\' to your LLM API key');
|
|
30
30
|
|
|
31
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 1/
|
|
32
|
-
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
|
|
33
|
-
MainMenuSteps.clickOnMenuLab();
|
|
34
|
-
|
|
35
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 2/18');
|
|
31
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 1/17');
|
|
36
32
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Talk to Your Graph menu.');
|
|
37
|
-
MainMenuSteps.
|
|
33
|
+
MainMenuSteps.clickOnMenuTTYG();
|
|
38
34
|
|
|
39
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Missing OpenAI key —
|
|
35
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Missing OpenAI key — 2/17');
|
|
40
36
|
GuideDialogSteps.assertDialogWithContentIsVisible('To use Talk to Your Graph, GraphDB must first be configured to work with LLM API.');
|
|
41
37
|
GuideDialogSteps.clickOnCloseButton();
|
|
42
38
|
});
|
|
@@ -48,39 +44,35 @@ describe('Edit TTYG agent guide', () => {
|
|
|
48
44
|
TTYGStubs.stubAgentEdit();
|
|
49
45
|
RepositoriesStubs.stubRepositoryModel(repositoryId);
|
|
50
46
|
|
|
51
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 1/
|
|
52
|
-
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
|
|
53
|
-
MainMenuSteps.clickOnMenuLab();
|
|
54
|
-
|
|
55
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 2/18');
|
|
47
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 1/17');
|
|
56
48
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Talk to Your Graph menu.');
|
|
57
|
-
MainMenuSteps.
|
|
49
|
+
MainMenuSteps.clickOnMenuTTYG();
|
|
58
50
|
|
|
59
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent —
|
|
51
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 3/17');
|
|
60
52
|
GuideDialogSteps.assertDialogWithContentIsVisible('An agent\'s configuration such as the extraction methods can be reconfigured at any time');
|
|
61
53
|
GuideDialogSteps.clickOnNextButton();
|
|
62
54
|
|
|
63
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent —
|
|
55
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 10/17');
|
|
64
56
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the edit agent button to edit the configuration of the selected agent.');
|
|
65
57
|
TTYGViewSteps.editCurrentAgent();
|
|
66
58
|
|
|
67
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
59
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 12/17');
|
|
68
60
|
GuideDialogSteps.assertDialogWithContentIsVisible('Enabling SPARQL search allows the agent to answers questions by performing a SPARQL query');
|
|
69
61
|
GuideDialogSteps.clickOnNextButton();
|
|
70
62
|
|
|
71
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
63
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 13/17');
|
|
72
64
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable SPARQL search query method.');
|
|
73
65
|
TtygAgentSettingsModalSteps.enableSparqlExtractionMethod();
|
|
74
66
|
|
|
75
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
67
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 14/17');
|
|
76
68
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable providing an ontology in a named graph.');
|
|
77
69
|
TtygAgentSettingsModalSteps.selectSparqlMethodOntologyGraph();
|
|
78
70
|
|
|
79
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
71
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 15/17');
|
|
80
72
|
GuideDialogSteps.assertDialogWithContentIsVisible('Type http://example.com as the named graph which contains the ontology.');
|
|
81
73
|
GuideDialogSteps.clickOnNextButton();
|
|
82
74
|
|
|
83
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 17
|
|
75
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 16/17');
|
|
84
76
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the agent settings.');
|
|
85
77
|
TtygAgentSettingsModalSteps.saveAgent();
|
|
86
78
|
ModalDialogSteps.getDialog().should('not.exist');
|
|
@@ -33,7 +33,9 @@ describe('Home page: without repositories', () => {
|
|
|
33
33
|
HomeSteps.getRepositoryErrorsWidget().should('be.visible');
|
|
34
34
|
RepositoryErrorsWidgetSteps.getInfoMessage().should('contain', 'Some functionalities are not available because you are not connected to any repository.');
|
|
35
35
|
RepositoryErrorsWidgetSteps.getCreateRepositoryBtn().should('be.visible');
|
|
36
|
-
|
|
36
|
+
// There are no repositories to filter.
|
|
37
|
+
RepositoryErrorsWidgetSteps.getRepositoryFilter().should('not.exist');
|
|
38
|
+
RepositoryErrorsWidgetSteps.getLocalOnlyCheckbox().should('not.exist');
|
|
37
39
|
});
|
|
38
40
|
|
|
39
41
|
it('should render license widget', () => {
|
|
@@ -29,7 +29,8 @@ describe('Home page: without selected repository', () => {
|
|
|
29
29
|
HomeSteps.getRepositoryErrorsWidget().should('be.visible');
|
|
30
30
|
RepositoryErrorsWidgetSteps.getInfoMessage().should('contain', 'Some functionalities are not available because you are not connected to any repository.');
|
|
31
31
|
RepositoryErrorsWidgetSteps.getCreateRepositoryBtn().should('be.visible');
|
|
32
|
-
RepositoryErrorsWidgetSteps.
|
|
32
|
+
RepositoryErrorsWidgetSteps.getRepositoryFilter().should('be.visible');
|
|
33
|
+
RepositoryErrorsWidgetSteps.getLocalOnlyCheckbox().should('be.visible').and('be.checked');
|
|
33
34
|
});
|
|
34
35
|
|
|
35
36
|
// This test is unreliable with the current implementation of the license widget.
|
|
@@ -57,7 +57,7 @@ describe('Import server files - Batch operations', () => {
|
|
|
57
57
|
// precondition for the next step
|
|
58
58
|
ImportServerFilesSteps.importResourceByName(FILE_FOR_IMPORT);
|
|
59
59
|
ImportSettingsDialogSteps.import();
|
|
60
|
-
ImportServerFilesSteps.
|
|
60
|
+
ImportServerFilesSteps.checkImportedResourceByName(FILE_FOR_IMPORT);
|
|
61
61
|
// When I select Imported from the menu
|
|
62
62
|
ImportServerFilesSteps.selectImportedResources();
|
|
63
63
|
// Then I should see only imported files selected
|
|
@@ -87,6 +87,39 @@ describe('Import server files - Batch operations', () => {
|
|
|
87
87
|
ImportServerFilesSteps.getSelectedResources().should('have.length', 0);
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
+
it('Should select all displayed resources with the select all checkbox', () => {
|
|
91
|
+
// When I check the select all checkbox
|
|
92
|
+
ImportServerFilesSteps.toggleSelectAllResources();
|
|
93
|
+
// Then I should see all files selected
|
|
94
|
+
ImportServerFilesSteps.getSelectedResources().should('have.length', SERVER_FILES_COUNT);
|
|
95
|
+
ImportServerFilesSteps.getSelectAllCheckbox().should('be.checked');
|
|
96
|
+
// When I uncheck the select all checkbox
|
|
97
|
+
ImportServerFilesSteps.toggleSelectAllResources();
|
|
98
|
+
// Then I should see no files selected
|
|
99
|
+
ImportServerFilesSteps.getSelectedResources().should('have.length', 0);
|
|
100
|
+
ImportServerFilesSteps.getSelectAllCheckbox().should('not.be.checked');
|
|
101
|
+
// When I select a directory via the checkbox on the row
|
|
102
|
+
ImportServerFilesSteps.selectFileByName('more-files');
|
|
103
|
+
// Then the select all checkbox should be partially selected
|
|
104
|
+
ImportServerFilesSteps.getSelectAllCheckbox().should('have.prop', 'indeterminate', true);
|
|
105
|
+
// When I check the select all checkbox
|
|
106
|
+
ImportServerFilesSteps.toggleSelectAllResources();
|
|
107
|
+
// Then I should see all files selected
|
|
108
|
+
ImportServerFilesSteps.getSelectedResources().should('have.length', SERVER_FILES_COUNT);
|
|
109
|
+
ImportServerFilesSteps.getSelectAllCheckbox().should('be.checked').and('have.prop', 'indeterminate', false);
|
|
110
|
+
// When I deselect all and filter the files by name
|
|
111
|
+
ImportServerFilesSteps.toggleSelectAllResources();
|
|
112
|
+
ImportServerFilesSteps.typeInFilterField('bnodes');
|
|
113
|
+
ImportServerFilesSteps.getResources().should('have.length', 1);
|
|
114
|
+
// and check the select all checkbox
|
|
115
|
+
ImportServerFilesSteps.toggleSelectAllResources();
|
|
116
|
+
// Then only the displayed file should be selected
|
|
117
|
+
ImportServerFilesSteps.clearFilterField();
|
|
118
|
+
ImportServerFilesSteps.getResources().should('have.length', SERVER_FILES_COUNT);
|
|
119
|
+
ImportServerFilesSteps.getSelectedResources().should('have.length', 1);
|
|
120
|
+
ImportServerFilesSteps.getSelectedResourceName(0).should('contain', 'bnodes.ttl');
|
|
121
|
+
});
|
|
122
|
+
|
|
90
123
|
it('Should perform batch import and reset of selected server files with changing settings', () => {
|
|
91
124
|
// Given I have opened the server files tab
|
|
92
125
|
// When I select couple of files for import
|
|
@@ -97,8 +130,8 @@ describe('Import server files - Batch operations', () => {
|
|
|
97
130
|
// Then the files should be imported
|
|
98
131
|
// We send only the files in the folder for import
|
|
99
132
|
// ImportServerFilesSteps.checkImportedResource(0, 'more-files');
|
|
100
|
-
ImportServerFilesSteps.
|
|
101
|
-
ImportServerFilesSteps.
|
|
133
|
+
ImportServerFilesSteps.checkImportedResourceByName('jsonld-file.jsonld');
|
|
134
|
+
ImportServerFilesSteps.checkImportedResourceByName('rdfxml.rdf');
|
|
102
135
|
ImportServerFilesSteps.deselectFileByName('more-files');
|
|
103
136
|
// When I select the folder and click on the batch reset button
|
|
104
137
|
ImportServerFilesSteps.selectFileByName('more-files');
|
|
@@ -116,7 +149,7 @@ describe('Import server files - Batch operations', () => {
|
|
|
116
149
|
// Then the files should be imported
|
|
117
150
|
// We send only the files in the folder for import
|
|
118
151
|
// ImportServerFilesSteps.checkImportedResource(0, 'more-files');
|
|
119
|
-
ImportServerFilesSteps.
|
|
120
|
-
ImportServerFilesSteps.
|
|
152
|
+
ImportServerFilesSteps.checkImportedResourceByName('jsonld-file.jsonld');
|
|
153
|
+
ImportServerFilesSteps.checkImportedResourceByName('rdfxml.rdf');
|
|
121
154
|
});
|
|
122
155
|
});
|
|
@@ -87,8 +87,8 @@ describe('Import server files', () => {
|
|
|
87
87
|
// Then I expect all files to be successfully imported.
|
|
88
88
|
// TODO: this check is failing right now because the fix https://ontotext.atlassian.net/browse/GDB-10295 is not yet completed.
|
|
89
89
|
// ImportServerFilesSteps.checkImportedResource(0, 'more-files', 'Imported successfully in');
|
|
90
|
-
ImportServerFilesSteps.
|
|
91
|
-
ImportServerFilesSteps.
|
|
90
|
+
ImportServerFilesSteps.checkImportedResourceByIndex(1, 'jsonld-file.jsonld', 'Imported successfully in');
|
|
91
|
+
ImportServerFilesSteps.checkImportedResourceByIndex(2, 'rdfxml.rdf', 'Imported successfully in');
|
|
92
92
|
|
|
93
93
|
// When I try to import a directory that contains resources with incorrect rdf data.
|
|
94
94
|
ImportServerFilesSteps.importResourceByName('more-files-with-error');
|
|
@@ -119,7 +119,7 @@ describe('Import server files', () => {
|
|
|
119
119
|
ImportSettingsDialogSteps.import();
|
|
120
120
|
|
|
121
121
|
// I expect only part of the error be displayed,
|
|
122
|
-
ImportServerFilesSteps.
|
|
122
|
+
ImportServerFilesSteps.checkImportedResourceByName(importResourceName, 'RDF Parse Error: The element type ');
|
|
123
123
|
// and when click on that error
|
|
124
124
|
ImportServerFilesSteps.openErrorDialog(importResourceName);
|
|
125
125
|
|
|
@@ -152,39 +152,37 @@ describe('Import server files', () => {
|
|
|
152
152
|
ImportServerFilesSteps.orderBySize();
|
|
153
153
|
|
|
154
154
|
// Then I expect the directories to be sorted in ascending order,
|
|
155
|
-
ImportServerFilesSteps.
|
|
156
|
-
ImportServerFilesSteps.
|
|
155
|
+
ImportServerFilesSteps.getResourceTitleRow(0).should('contain', "more-files");
|
|
156
|
+
ImportServerFilesSteps.getResourceTitleRow(3).should('contain', "more-files-with-error");
|
|
157
157
|
|
|
158
158
|
// and inner files to be sorted ascending as well.
|
|
159
159
|
// checks first folder files
|
|
160
|
-
ImportServerFilesSteps.
|
|
161
|
-
ImportServerFilesSteps.
|
|
160
|
+
ImportServerFilesSteps.getResourceTitleRow(1).should('contain', "jsonld-file.jsonld");
|
|
161
|
+
ImportServerFilesSteps.getResourceTitleRow(2).should('contain', "rdfxml.rdf");
|
|
162
162
|
// checks second folder files
|
|
163
|
-
ImportServerFilesSteps.
|
|
164
|
-
ImportServerFilesSteps.
|
|
165
|
-
ImportServerFilesSteps.
|
|
163
|
+
ImportServerFilesSteps.getResourceTitleRow(4).should('contain', "import-resource-with-correct-data.jsonld");
|
|
164
|
+
ImportServerFilesSteps.getResourceTitleRow(5).should('contain', "import-resource-with-incorrect-data.rdf");
|
|
165
|
+
ImportServerFilesSteps.getResourceTitleRow(6).should('contain', "import-resource-with-long-error.rdf");
|
|
166
166
|
// checks files in root
|
|
167
|
-
ImportServerFilesSteps.
|
|
168
|
-
ImportServerFilesSteps.
|
|
169
|
-
ImportServerFilesSteps.getResource(9).should('contain', "0007-import-file.jsonld");
|
|
167
|
+
ImportServerFilesSteps.getResourceTitleRow(7).should('contain', "bnodes.ttl");
|
|
168
|
+
ImportServerFilesSteps.getResourceTitleRow(8).should('contain', "0007-import-file.jsonld");
|
|
170
169
|
|
|
171
170
|
// When I change the order by size.
|
|
172
171
|
ImportServerFilesSteps.orderBySize();
|
|
173
172
|
|
|
174
173
|
// Then I expect the directories to be sorted in descending order,
|
|
175
|
-
ImportServerFilesSteps.
|
|
176
|
-
ImportServerFilesSteps.
|
|
174
|
+
ImportServerFilesSteps.getResourceTitleRow(0).should('contain', "more-files-with-error");
|
|
175
|
+
ImportServerFilesSteps.getResourceTitleRow(4).should('contain', "more-files");
|
|
177
176
|
// checks first folder files
|
|
178
|
-
ImportServerFilesSteps.
|
|
179
|
-
ImportServerFilesSteps.
|
|
180
|
-
ImportServerFilesSteps.
|
|
177
|
+
ImportServerFilesSteps.getResourceTitleRow(1).should('contain', "import-resource-with-long-error.rdf");
|
|
178
|
+
ImportServerFilesSteps.getResourceTitleRow(2).should('contain', "import-resource-with-incorrect-data.rdf");
|
|
179
|
+
ImportServerFilesSteps.getResourceTitleRow(3).should('contain', "import-resource-with-correct-data.jsonld");
|
|
181
180
|
// checks second folder files
|
|
182
|
-
ImportServerFilesSteps.
|
|
183
|
-
ImportServerFilesSteps.
|
|
181
|
+
ImportServerFilesSteps.getResourceTitleRow(5).should('contain', "rdfxml.rdf");
|
|
182
|
+
ImportServerFilesSteps.getResourceTitleRow(6).should('contain', "jsonld-file.jsonld");
|
|
184
183
|
// checks files in root
|
|
185
|
-
ImportServerFilesSteps.
|
|
186
|
-
ImportServerFilesSteps.
|
|
187
|
-
ImportServerFilesSteps.getResource(19).should('contain', "bnodes.ttl");
|
|
184
|
+
ImportServerFilesSteps.getResourceTitleRow(15).should('contain', "0007-import-file.jsonld");
|
|
185
|
+
ImportServerFilesSteps.getResourceTitleRow(16).should('contain', "bnodes.ttl");
|
|
188
186
|
});
|
|
189
187
|
|
|
190
188
|
it('should allow importing jsonld with empty "JSON-LD Context"', () => {
|
|
@@ -208,4 +206,22 @@ describe('Import server files', () => {
|
|
|
208
206
|
// Then: I expect the import button be enabled, because the "JSON-LD Context" is not mandatory field.
|
|
209
207
|
ImportSettingsDialogSteps.getImportButton().should('be.enabled');
|
|
210
208
|
});
|
|
209
|
+
|
|
210
|
+
it('should send the DOCTYPE declarations option with the import settings', () => {
|
|
211
|
+
// Given: The server files tab is loaded and the import requests are intercepted
|
|
212
|
+
ImportServerFilesSteps.interceptServerFilesImport(repositoryId);
|
|
213
|
+
|
|
214
|
+
// When: I open the import dialog for a file,
|
|
215
|
+
ImportServerFilesSteps.importResourceByName('bnodes.ttl');
|
|
216
|
+
ImportSettingsDialogSteps.expandAdvancedSettings();
|
|
217
|
+
// Then: I expect DOCTYPE declarations to be disallowed by default.
|
|
218
|
+
ImportSettingsDialogSteps.getDisallowDoctypeDeclCheckbox().should('be.checked');
|
|
219
|
+
|
|
220
|
+
// When: I allow DOCTYPE declarations and start the import
|
|
221
|
+
ImportSettingsDialogSteps.allowDoctypeDeclarations();
|
|
222
|
+
ImportSettingsDialogSteps.import();
|
|
223
|
+
// Then: I expect DOCTYPE declarations to be allowed in the request.
|
|
224
|
+
ImportServerFilesSteps.waitForServerFilesImportSettings()
|
|
225
|
+
.its('parserSettings.disallowDoctypeDecl').should('equal', false);
|
|
226
|
+
});
|
|
211
227
|
});
|
|
@@ -46,7 +46,7 @@ describe('Import user data: File upload', () => {
|
|
|
46
46
|
ImportSettingsDialogSteps.getDialog().should('not.exist');
|
|
47
47
|
// Then I should see the uploaded file
|
|
48
48
|
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
49
|
-
ImportUserDataSteps.
|
|
49
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
50
50
|
// When I try to import the same file again
|
|
51
51
|
ImportUserDataSteps.importFile(0);
|
|
52
52
|
// Then I should not see the upload only option
|
|
@@ -56,7 +56,7 @@ describe('Import user data: File upload', () => {
|
|
|
56
56
|
ImportSettingsDialogSteps.import();
|
|
57
57
|
ImportSettingsDialogSteps.getDialog().should('not.exist');
|
|
58
58
|
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
59
|
-
ImportUserDataSteps.
|
|
59
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
it('Should be able to cancel the file upload', () => {
|
|
@@ -106,15 +106,15 @@ describe('Import user data: File upload', () => {
|
|
|
106
106
|
ImportSettingsDialogSteps.getDialog().should('be.visible');
|
|
107
107
|
ImportSettingsDialogSteps.import();
|
|
108
108
|
// Then I should see the uploaded file
|
|
109
|
-
ImportUserDataSteps.
|
|
109
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
110
110
|
// When I upload another file
|
|
111
111
|
const file2 = ImportUserDataSteps.createFile(testFiles[1], jsonld);
|
|
112
112
|
ImportUserDataSteps.selectFile(file2);
|
|
113
113
|
ImportSettingsDialogSteps.getDialog().should('be.visible');
|
|
114
114
|
ImportSettingsDialogSteps.import();
|
|
115
115
|
// Then I should see the uploaded file - it becomes first in the list
|
|
116
|
-
ImportUserDataSteps.
|
|
117
|
-
ImportUserDataSteps.
|
|
116
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'jsonld.jsonld');
|
|
117
|
+
ImportUserDataSteps.checkImportedResourceByIndex(1, 'bnodes.ttl');
|
|
118
118
|
// When I override the first file
|
|
119
119
|
const file3 = ImportUserDataSteps.createFile(testFiles[0], bnodes);
|
|
120
120
|
ImportUserDataSteps.selectFile(file3);
|
|
@@ -122,17 +122,16 @@ describe('Import user data: File upload', () => {
|
|
|
122
122
|
ImportSettingsDialogSteps.getDialog().should('be.visible');
|
|
123
123
|
ImportSettingsDialogSteps.import();
|
|
124
124
|
// Then I should see the uploaded file - it becomes first in the list
|
|
125
|
-
|
|
126
|
-
ImportUserDataSteps.
|
|
127
|
-
ImportUserDataSteps.checkImportedResource(1, 'bnodes.ttl');
|
|
125
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
126
|
+
ImportUserDataSteps.checkImportedResourceByIndex(1, 'jsonld.jsonld');
|
|
128
127
|
// When I override the second file
|
|
129
128
|
ImportUserDataSteps.selectFile(file2);
|
|
130
129
|
FileOverwriteDialogSteps.overwrite();
|
|
131
130
|
ImportSettingsDialogSteps.getDialog().should('be.visible');
|
|
132
131
|
ImportSettingsDialogSteps.import();
|
|
133
132
|
// Then I should see the uploaded file - it becomes first in the list
|
|
134
|
-
ImportUserDataSteps.
|
|
135
|
-
ImportUserDataSteps.
|
|
133
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'jsonld.jsonld');
|
|
134
|
+
ImportUserDataSteps.checkImportedResourceByIndex(1, 'bnodes.ttl');
|
|
136
135
|
});
|
|
137
136
|
|
|
138
137
|
it('should be able to only upload a single file without importing it', () => {
|
|
@@ -153,6 +152,32 @@ describe('Import user data: File upload', () => {
|
|
|
153
152
|
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
154
153
|
});
|
|
155
154
|
|
|
155
|
+
it('Should give the controls on the page accessible names', () => {
|
|
156
|
+
// Given I have uploaded a file without importing it
|
|
157
|
+
const file = ImportUserDataSteps.createFile(testFiles[0], bnodes);
|
|
158
|
+
ImportUserDataSteps.selectFile(file);
|
|
159
|
+
ImportSettingsDialogSteps.uploadOnly();
|
|
160
|
+
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
161
|
+
// Then the icon-only buttons and the row checkbox should have accessible names
|
|
162
|
+
ImportUserDataSteps.getHelpToggleButton().should('have.attr', 'aria-label', 'Get help on import');
|
|
163
|
+
ImportUserDataSteps.getStatusSelectMenuToggle().should('have.attr', 'aria-label', 'Select resources by status');
|
|
164
|
+
ImportUserDataSteps.getResourceSelectCheckbox('bnodes.ttl').should('have.attr', 'aria-label', 'Select bnodes.ttl');
|
|
165
|
+
ImportUserDataSteps.getResourceImportButton('bnodes.ttl').should('have.attr', 'aria-label', 'Import bnodes.ttl');
|
|
166
|
+
ImportUserDataSteps.getResourceRemoveButton('bnodes.ttl').should('have.attr', 'aria-label', 'Remove bnodes.ttl');
|
|
167
|
+
// And no empty context link should be rendered
|
|
168
|
+
ImportUserDataSteps.getResourceContextLink('bnodes.ttl').should('not.exist');
|
|
169
|
+
// And the filter field should have a screen reader label
|
|
170
|
+
ImportUserDataSteps.getFilterFieldLabel()
|
|
171
|
+
.should('have.class', 'sr-only')
|
|
172
|
+
.and('contain.text', 'Filter by name');
|
|
173
|
+
// When I import the file
|
|
174
|
+
ImportUserDataSteps.importFile(0);
|
|
175
|
+
ImportSettingsDialogSteps.import();
|
|
176
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
177
|
+
// Then the reset status button should have an accessible name
|
|
178
|
+
ImportUserDataSteps.getResourceResetButton('bnodes.ttl').should('have.attr', 'aria-label', 'Reset status of bnodes.ttl');
|
|
179
|
+
});
|
|
180
|
+
|
|
156
181
|
it('Should be able to upload multiple unique files', () => {
|
|
157
182
|
// Given there are no files uploaded yet
|
|
158
183
|
ImportUserDataSteps.getResourcesTable().should('be.hidden');
|
|
@@ -165,8 +190,8 @@ describe('Import user data: File upload', () => {
|
|
|
165
190
|
ImportSettingsDialogSteps.import();
|
|
166
191
|
// Then I should see the uploaded file
|
|
167
192
|
ImportUserDataSteps.getResources().should('have.length', 2);
|
|
168
|
-
ImportUserDataSteps.
|
|
169
|
-
ImportUserDataSteps.
|
|
193
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'jsonld.jsonld');
|
|
194
|
+
ImportUserDataSteps.checkImportedResourceByIndex(1, 'bnodes.ttl');
|
|
170
195
|
// And the files should really be there
|
|
171
196
|
HeaderSteps.openHomePage();
|
|
172
197
|
ImportUserDataSteps.visit();
|
|
@@ -182,7 +207,7 @@ describe('Import user data: File upload', () => {
|
|
|
182
207
|
ImportSettingsDialogSteps.getDialog().should('be.visible');
|
|
183
208
|
ImportSettingsDialogSteps.import();
|
|
184
209
|
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
185
|
-
ImportUserDataSteps.
|
|
210
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
186
211
|
// When I upload a file with the same name
|
|
187
212
|
ImportUserDataSteps.selectFile(file1);
|
|
188
213
|
// Then I should see a file override confirmation dialog
|
|
@@ -193,7 +218,7 @@ describe('Import user data: File upload', () => {
|
|
|
193
218
|
ImportSettingsDialogSteps.import();
|
|
194
219
|
// Then The file should be overridden
|
|
195
220
|
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
196
|
-
ImportUserDataSteps.
|
|
221
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
197
222
|
});
|
|
198
223
|
|
|
199
224
|
it('Should be able to upload file with same name and preserve the existing file', () => {
|
|
@@ -205,7 +230,7 @@ describe('Import user data: File upload', () => {
|
|
|
205
230
|
ImportSettingsDialogSteps.getDialog().should('be.visible');
|
|
206
231
|
ImportSettingsDialogSteps.import();
|
|
207
232
|
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
208
|
-
ImportUserDataSteps.
|
|
233
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
|
|
209
234
|
// When I upload a file with the same name
|
|
210
235
|
ImportUserDataSteps.selectFile(file1);
|
|
211
236
|
// Then I should see a file override confirmation dialog
|
|
@@ -215,8 +240,8 @@ describe('Import user data: File upload', () => {
|
|
|
215
240
|
ImportSettingsDialogSteps.import();
|
|
216
241
|
// Then The file should not be overridden but prefixed instead
|
|
217
242
|
ImportUserDataSteps.getResources().should('have.length', 2);
|
|
218
|
-
ImportUserDataSteps.
|
|
219
|
-
ImportUserDataSteps.
|
|
243
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes-0.ttl');
|
|
244
|
+
ImportUserDataSteps.checkImportedResourceByIndex(1, 'bnodes.ttl');
|
|
220
245
|
// When I upload two files, one with the same name and second new one
|
|
221
246
|
const file2 = ImportUserDataSteps.createFile(testFiles[1], jsonld);
|
|
222
247
|
ImportUserDataSteps.selectFile([file1, file2]);
|
|
@@ -225,10 +250,10 @@ describe('Import user data: File upload', () => {
|
|
|
225
250
|
ImportSettingsDialogSteps.import();
|
|
226
251
|
// Then The file should not be overridden but prefixed with increased index instead
|
|
227
252
|
ImportUserDataSteps.getResources().should('have.length', 4);
|
|
228
|
-
ImportUserDataSteps.
|
|
229
|
-
ImportUserDataSteps.
|
|
230
|
-
ImportUserDataSteps.
|
|
231
|
-
ImportUserDataSteps.
|
|
253
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'jsonld.jsonld');
|
|
254
|
+
ImportUserDataSteps.checkImportedResourceByIndex(1, 'bnodes-1.ttl');
|
|
255
|
+
ImportUserDataSteps.checkImportedResourceByIndex(2, 'bnodes-0.ttl');
|
|
256
|
+
ImportUserDataSteps.checkImportedResourceByIndex(3, 'bnodes.ttl');
|
|
232
257
|
});
|
|
233
258
|
|
|
234
259
|
it('should see error message when uploaded file has invalid format', () => {
|
|
@@ -242,6 +267,6 @@ describe('Import user data: File upload', () => {
|
|
|
242
267
|
ImportSettingsDialogSteps.import();
|
|
243
268
|
// Then I should see an error message
|
|
244
269
|
ImportUserDataSteps.getResources().should('have.length', 1);
|
|
245
|
-
ImportUserDataSteps.
|
|
270
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, 'invalid-format.json', 'RDF Parse Error: Invalid file format');
|
|
246
271
|
});
|
|
247
272
|
});
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {ImportUserDataSteps} from "../../steps/import/import-user-data-steps";
|
|
2
|
+
import {ImportSettingsDialogSteps} from "../../steps/import/import-settings-dialog-steps";
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"ab:email": "richard491@hotmail.com"
|
|
12
|
-
});
|
|
4
|
+
const RDF_TEXT_SNIPPET = '<urn:s1> <urn:p1> <urn:o1>.';
|
|
5
|
+
const RDF_XML_WITH_DOCTYPE_SNIPPET = '<?xml version="1.0"?>\n' +
|
|
6
|
+
'<!DOCTYPE rdf:RDF [<!ENTITY ex "http://example.com/">]>\n' +
|
|
7
|
+
'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.com/">\n' +
|
|
8
|
+
' <rdf:Description rdf:about="&ex;subject"><ex:predicate>object</ex:predicate></rdf:Description>\n' +
|
|
9
|
+
'</rdf:RDF>';
|
|
10
|
+
const RDF_XML_FORMAT = 'RDF/XML';
|
|
11
|
+
const TEXT_SNIPPET = 'Text snippet';
|
|
13
12
|
|
|
14
13
|
describe('Import user data: Import settings dialog', () => {
|
|
15
14
|
|
|
@@ -31,6 +30,78 @@ describe('Import user data: Import settings dialog', () => {
|
|
|
31
30
|
cy.deleteRepository(repositoryId);
|
|
32
31
|
});
|
|
33
32
|
|
|
33
|
+
it('Should disallow DOCTYPE declarations by default', () => {
|
|
34
|
+
// Given I have opened the import settings dialog for a text snippet
|
|
35
|
+
ImportUserDataSteps.interceptTextSnippetImport(repositoryId);
|
|
36
|
+
ImportUserDataSteps.openTextSnippetImportSettings(RDF_TEXT_SNIPPET);
|
|
37
|
+
// When I expand the advanced settings
|
|
38
|
+
ImportSettingsDialogSteps.expandAdvancedSettings();
|
|
39
|
+
// Then the DOCTYPE declarations option should be checked
|
|
40
|
+
ImportSettingsDialogSteps.getDisallowDoctypeDeclCheckbox().should('be.checked');
|
|
41
|
+
// When I start the import
|
|
42
|
+
ImportSettingsDialogSteps.import();
|
|
43
|
+
// Then DOCTYPE declarations should be disallowed in the request
|
|
44
|
+
ImportUserDataSteps.waitForTextSnippetImportSettings()
|
|
45
|
+
.its('parserSettings.disallowDoctypeDecl').should('equal', true);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('Should allow DOCTYPE declarations when the option is unchecked', () => {
|
|
49
|
+
// Given I have opened the import settings dialog for a text snippet
|
|
50
|
+
ImportUserDataSteps.interceptTextSnippetImport(repositoryId);
|
|
51
|
+
ImportUserDataSteps.openTextSnippetImportSettings(RDF_TEXT_SNIPPET);
|
|
52
|
+
ImportSettingsDialogSteps.expandAdvancedSettings();
|
|
53
|
+
// When I uncheck the DOCTYPE declarations option and start the import
|
|
54
|
+
ImportSettingsDialogSteps.allowDoctypeDeclarations();
|
|
55
|
+
ImportSettingsDialogSteps.import();
|
|
56
|
+
// Then DOCTYPE declarations should be allowed in the request
|
|
57
|
+
ImportUserDataSteps.waitForTextSnippetImportSettings()
|
|
58
|
+
.its('parserSettings.disallowDoctypeDecl').should('equal', false);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('Should restore the DOCTYPE declarations option to its default', () => {
|
|
62
|
+
// Given I have opened the import settings dialog for a text snippet
|
|
63
|
+
ImportUserDataSteps.openTextSnippetImportSettings(RDF_TEXT_SNIPPET);
|
|
64
|
+
ImportSettingsDialogSteps.expandAdvancedSettings();
|
|
65
|
+
// And I have unchecked the DOCTYPE declarations option
|
|
66
|
+
ImportSettingsDialogSteps.allowDoctypeDeclarations();
|
|
67
|
+
ImportSettingsDialogSteps.getDisallowDoctypeDeclCheckbox().should('not.be.checked');
|
|
68
|
+
// When I restore the default settings
|
|
69
|
+
ImportSettingsDialogSteps.restoreDefaults();
|
|
70
|
+
// Then the DOCTYPE declarations option should be checked again
|
|
71
|
+
ImportSettingsDialogSteps.getDisallowDoctypeDeclCheckbox().should('be.checked');
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it('Should reject RDF/XML with a DOCTYPE declaration by default', () => {
|
|
75
|
+
// Given I have opened the import settings dialog for an RDF/XML snippet with a DOCTYPE declaration
|
|
76
|
+
ImportUserDataSteps.openTextSnippetImportSettings(RDF_XML_WITH_DOCTYPE_SNIPPET, RDF_XML_FORMAT);
|
|
77
|
+
// When I start the import with the default settings
|
|
78
|
+
ImportSettingsDialogSteps.import();
|
|
79
|
+
// Then the import should fail, because DOCTYPE declarations are disallowed
|
|
80
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, TEXT_SNIPPET, 'DOCTYPE is disallowed');
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('Should import RDF/XML with a DOCTYPE declaration when DOCTYPE declarations are allowed', () => {
|
|
84
|
+
// Given I have opened the import settings dialog for an RDF/XML snippet with a DOCTYPE declaration
|
|
85
|
+
ImportUserDataSteps.openTextSnippetImportSettings(RDF_XML_WITH_DOCTYPE_SNIPPET, RDF_XML_FORMAT);
|
|
86
|
+
ImportSettingsDialogSteps.expandAdvancedSettings();
|
|
87
|
+
// When I allow DOCTYPE declarations and start the import
|
|
88
|
+
ImportSettingsDialogSteps.allowDoctypeDeclarations();
|
|
89
|
+
ImportSettingsDialogSteps.import();
|
|
90
|
+
// Then the import should succeed
|
|
91
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, TEXT_SNIPPET);
|
|
92
|
+
|
|
93
|
+
// When I open the import settings dialog for the same snippet again
|
|
94
|
+
ImportUserDataSteps.importFile(0);
|
|
95
|
+
ImportSettingsDialogSteps.expandAdvancedSettings();
|
|
96
|
+
// Then the saved DOCTYPE declarations option should be restored
|
|
97
|
+
ImportSettingsDialogSteps.getDisallowDoctypeDeclCheckbox().should('not.be.checked');
|
|
98
|
+
|
|
99
|
+
// When I restore the default settings
|
|
100
|
+
ImportSettingsDialogSteps.restoreDefaults();
|
|
101
|
+
// Then the DOCTYPE declarations option should be reset to the backend default, not to the saved value
|
|
102
|
+
ImportSettingsDialogSteps.getDisallowDoctypeDeclCheckbox().should('be.checked');
|
|
103
|
+
});
|
|
104
|
+
|
|
34
105
|
it.skip('Should prevent import when there are missing or invalid settings', () => {
|
|
35
106
|
// Given I have uploaded a file
|
|
36
107
|
|