graphdb-workbench-tests 4.0.0-TR1 → 4.0.0-TR11
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-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 +202 -0
- package/e2e-legacy/graph-navigator/graph-navigator.spec.js +291 -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/import/import-server-files-batch-operations.spec.js +5 -5
- package/e2e-legacy/import/import-server-files.spec.js +21 -23
- package/e2e-legacy/import/import-user-data-file-upload.spec.js +47 -22
- package/e2e-legacy/import/import-user-data-text-snippet.spec.js +6 -45
- package/e2e-legacy/import/import-user-data-url.spec.js +9 -6
- package/e2e-legacy/import/import-view.spec.js +2 -2
- package/e2e-legacy/rdf-version/rdf-version-accept-header.spec.js +145 -0
- package/e2e-legacy/repository/rename-repository-restrictions.spec.js +129 -0
- package/e2e-legacy/repository/repositories.spec.js +3 -3
- package/e2e-legacy/resource/resource.spec.js +176 -39
- 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/settings/my-settings-initial-state.spec.js +5 -11
- package/e2e-legacy/setup/settings/my-settings.spec.js +25 -15
- package/e2e-legacy/setup/users-and-access/user-and-access.spec.js +44 -24
- package/e2e-legacy/sparql-editor/yasr/download-as.spec.js +4 -7
- package/e2e-legacy/ttyg/create-agent.spec.js +111 -0
- 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/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/graphdb-import/wine.rdf +279 -285
- package/fixtures/repositories/get-repositories-with-unsupported-graphql-types.json +46 -0
- 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/error-steps.js +1 -1
- package/steps/explore/graphs-overview-steps.js +44 -0
- package/steps/graph-navigator-steps.js +120 -0
- package/steps/import/import-steps.js +65 -12
- package/steps/import/import-test-constants.js +1 -1
- package/steps/main-menu-steps.js +14 -14
- package/steps/page-restrictions-steps.js +24 -0
- package/steps/repository-picker-list-steps.js +38 -0
- package/steps/repository-steps.js +4 -0
- package/steps/resource/resource-steps.js +72 -5
- package/steps/setup/acl-management-steps.js +3 -23
- package/steps/setup/settings-steps.js +46 -0
- package/steps/setup/user-and-access-steps.js +44 -19
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +16 -0
- package/steps/yasgui/yasr-steps.js +8 -0
- package/stubs/cluster/cluster-stubs.js +15 -1
- package/stubs/repositories/repositories-stubs.js +4 -0
- 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
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import {GraphNavigatorSteps} from '../../steps/graph-navigator-steps.js';
|
|
2
|
+
import {LanguageSelectorSteps} from '../../steps/language-selector-steps.js';
|
|
3
|
+
import {RepositorySelectorSteps} from '../../steps/repository-selector-steps.js';
|
|
4
|
+
import {MainMenuSteps} from '../../steps/main-menu-steps.js';
|
|
5
|
+
import {YasqeSteps} from '../../steps/yasgui/yasqe-steps.js';
|
|
6
|
+
import {YasrSteps} from '../../steps/yasgui/yasr-steps.js';
|
|
7
|
+
import {ToasterSteps} from '../../steps/toaster-steps.js';
|
|
8
|
+
|
|
9
|
+
const FILE_TO_IMPORT = 'resource-test-data.ttl';
|
|
10
|
+
const SEED_RESOURCE_ENCODED = 'http:%2F%2Fexample.com%2Fontology%23CustomerLoyalty';
|
|
11
|
+
const SEED_RESOURCE_LABEL = 'CustomerLoyalty';
|
|
12
|
+
|
|
13
|
+
const CONSTRUCT_QUERY = 'CONSTRUCT { <http://example.com/ontology#CustomerLoyalty> ?p ?o } WHERE { <http://example.com/ontology#CustomerLoyalty> ?p ?o }';
|
|
14
|
+
const CONSTRUCT_TARGET_LABEL = 'Metric';
|
|
15
|
+
|
|
16
|
+
describe('Graph Navigator', () => {
|
|
17
|
+
let repositoryId;
|
|
18
|
+
|
|
19
|
+
beforeEach(() => {
|
|
20
|
+
repositoryId = 'repository-' + Date.now();
|
|
21
|
+
cy.createRepository({id: repositoryId});
|
|
22
|
+
cy.presetRepository(repositoryId);
|
|
23
|
+
cy.importServerFile(repositoryId, FILE_TO_IMPORT);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
afterEach(() => {
|
|
27
|
+
cy.deleteRepository(repositoryId);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should mount the Graph Navigator workspace when a repository is active', () => {
|
|
31
|
+
// Given I open the Graph Navigator view without a start resource.
|
|
32
|
+
GraphNavigatorSteps.visit();
|
|
33
|
+
|
|
34
|
+
// Then I expect the Graph Navigator workspace and its canvas to be rendered.
|
|
35
|
+
GraphNavigatorSteps.getWorkspace().should('exist');
|
|
36
|
+
GraphNavigatorSteps.getCanvas().should('exist');
|
|
37
|
+
|
|
38
|
+
// And I expect the canvas to start empty because no start resource was provided.
|
|
39
|
+
GraphNavigatorSteps.getElements().should('not.exist');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('should place the start resource on the canvas as a seed', () => {
|
|
43
|
+
// Given I open the Graph Navigator view with a start resource.
|
|
44
|
+
GraphNavigatorSteps.visit(SEED_RESOURCE_ENCODED);
|
|
45
|
+
|
|
46
|
+
// Then I expect the start resource to be placed on the canvas as a seed element.
|
|
47
|
+
GraphNavigatorSteps.getElements().should('have.length', 1);
|
|
48
|
+
GraphNavigatorSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it('should seed the canvas with the graph computed from a CONSTRUCT query', () => {
|
|
52
|
+
// Given I open the Graph Navigator view with a CONSTRUCT query, as sent from the SPARQL editor.
|
|
53
|
+
GraphNavigatorSteps.visitWithQuery(CONSTRUCT_QUERY);
|
|
54
|
+
|
|
55
|
+
// Then I expect the computed graph to be seeded on the canvas: the subject and its related resource.
|
|
56
|
+
GraphNavigatorSteps.getElements().should('have.length', 2);
|
|
57
|
+
GraphNavigatorSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
58
|
+
GraphNavigatorSteps.getElement(CONSTRUCT_TARGET_LABEL).should('exist');
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('should unmount and mount the diagram component without errors', () => {
|
|
62
|
+
// Given I have opened the Graph Navigator view, so its diagram component is already loaded.
|
|
63
|
+
GraphNavigatorSteps.visit();
|
|
64
|
+
GraphNavigatorSteps.getWorkspace().should('exist');
|
|
65
|
+
// And I have navigated to the SPARQL editor and executed a CONSTRUCT query.
|
|
66
|
+
MainMenuSteps.clickOnSparqlMenu();
|
|
67
|
+
YasqeSteps.getEditor().should('be.visible');
|
|
68
|
+
YasqeSteps.pasteQuery(CONSTRUCT_QUERY);
|
|
69
|
+
YasqeSteps.executeQuery();
|
|
70
|
+
|
|
71
|
+
// When I click on the "Graph Navigator" button.
|
|
72
|
+
YasrSteps.visualizeInGraphNavigator();
|
|
73
|
+
|
|
74
|
+
// Then I expect to be navigated to the Graph Navigator view, so it renders a second time
|
|
75
|
+
GraphNavigatorSteps.getComponent().should('exist');
|
|
76
|
+
// And I expect the computed graph to be seeded on the canvas: the subject and its related resource.
|
|
77
|
+
GraphNavigatorSteps.getElements().should('have.length', 2);
|
|
78
|
+
GraphNavigatorSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
79
|
+
GraphNavigatorSteps.getElement(CONSTRUCT_TARGET_LABEL).should('exist');
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('should keep the displayed resources when the language is switched', () => {
|
|
83
|
+
// Given the Graph Navigator view is opened with a start resource that gets seeded on the canvas.
|
|
84
|
+
GraphNavigatorSteps.visit(SEED_RESOURCE_ENCODED);
|
|
85
|
+
GraphNavigatorSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
86
|
+
GraphNavigatorSteps.getElements().should('have.length', 1);
|
|
87
|
+
|
|
88
|
+
// When I switch the language.
|
|
89
|
+
LanguageSelectorSteps.switchToFr();
|
|
90
|
+
|
|
91
|
+
// Then I expect the same resources to remain visible because the layout is carried across the remount.
|
|
92
|
+
GraphNavigatorSteps.getElements().should('have.length', 1);
|
|
93
|
+
GraphNavigatorSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it('should keep the diagram on refresh but clear it when navigating away and back', () => {
|
|
97
|
+
// Given the Graph Navigator view is opened with a start resource that gets seeded on the canvas.
|
|
98
|
+
GraphNavigatorSteps.visit(SEED_RESOURCE_ENCODED);
|
|
99
|
+
GraphNavigatorSteps.getElements().should('have.length', 1);
|
|
100
|
+
GraphNavigatorSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
101
|
+
|
|
102
|
+
// When I refresh the page.
|
|
103
|
+
cy.reload();
|
|
104
|
+
|
|
105
|
+
// Then I expect the diagram state to be preserved across the refresh.
|
|
106
|
+
GraphNavigatorSteps.getElements().should('have.length', 1);
|
|
107
|
+
GraphNavigatorSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
108
|
+
|
|
109
|
+
// When I navigate to another view via the navigation bar.
|
|
110
|
+
MainMenuSteps.clickOnSparqlMenu();
|
|
111
|
+
GraphNavigatorSteps.getComponent().should('not.exist');
|
|
112
|
+
|
|
113
|
+
// Wait for the SPARQL Query & Update view to be loaded before continuing.
|
|
114
|
+
// Without this wait, Cypress may try to click the Graph Navigator menu item before the page is fully loaded,
|
|
115
|
+
// causing the test to fail intermittently with the error:
|
|
116
|
+
// "This element `<li.sub-menu-item>` is not visible because it has CSS property: `display: none`"
|
|
117
|
+
// when trying to click the Graph Navigator submenu.
|
|
118
|
+
YasqeSteps.getEditor().should('be.visible');
|
|
119
|
+
// And I return to the Graph Navigator view via the navigation bar.
|
|
120
|
+
MainMenuSteps.clickOnGraphNavigator();
|
|
121
|
+
|
|
122
|
+
// Then I expect the canvas to be cleared, because leaving the view drops the persisted diagram state.
|
|
123
|
+
GraphNavigatorSteps.getWorkspace().should('exist');
|
|
124
|
+
GraphNavigatorSteps.getElements().should('not.exist');
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// These run against the in-code REST stub. TODO: GDB-15242 switch to intercepts when the endpoints are available.
|
|
128
|
+
describe('Settings', () => {
|
|
129
|
+
it('should open the settings popover', () => {
|
|
130
|
+
// Given I open the Graph Navigator view.
|
|
131
|
+
GraphNavigatorSteps.visit();
|
|
132
|
+
|
|
133
|
+
// When I click the Settings button.
|
|
134
|
+
GraphNavigatorSteps.openSettings();
|
|
135
|
+
|
|
136
|
+
// Then I expect the settings popover to be open.
|
|
137
|
+
GraphNavigatorSteps.getSettingsPopover().should('be.visible');
|
|
138
|
+
GraphNavigatorSteps.getBrowseButton().should('contain', 'Browse');
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
it('should not offer reset when the default settings are in use', () => {
|
|
142
|
+
// Given I open the settings of a repository without uploaded settings.
|
|
143
|
+
GraphNavigatorSteps.visit();
|
|
144
|
+
GraphNavigatorSteps.openSettings();
|
|
145
|
+
|
|
146
|
+
// Then I expect no reset action, because there is nothing to reset to.
|
|
147
|
+
GraphNavigatorSteps.getSettingsPopover().should('be.visible');
|
|
148
|
+
GraphNavigatorSteps.getResetButton().should('not.exist');
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it('should cancel a selected file', () => {
|
|
152
|
+
// Given I have selected a settings file.
|
|
153
|
+
GraphNavigatorSteps.visit();
|
|
154
|
+
GraphNavigatorSteps.openSettings();
|
|
155
|
+
GraphNavigatorSteps.selectSettingsFile();
|
|
156
|
+
GraphNavigatorSteps.getSelectedSettingsFile().should('exist');
|
|
157
|
+
|
|
158
|
+
// When I cancel it.
|
|
159
|
+
GraphNavigatorSteps.clickCancelFile();
|
|
160
|
+
|
|
161
|
+
// Then I expect the file to be removed.
|
|
162
|
+
GraphNavigatorSteps.getSettingsPopover().should('not.contain', 'settings.ttl');
|
|
163
|
+
GraphNavigatorSteps.getUploadButton().should('be.disabled');
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
it('should ask for confirmation before uploading', () => {
|
|
167
|
+
// Given I have selected a settings file.
|
|
168
|
+
GraphNavigatorSteps.visit();
|
|
169
|
+
GraphNavigatorSteps.openSettings();
|
|
170
|
+
GraphNavigatorSteps.selectSettingsFile();
|
|
171
|
+
|
|
172
|
+
// When I upload it.
|
|
173
|
+
GraphNavigatorSteps.clickUpload();
|
|
174
|
+
|
|
175
|
+
// Then I expect a confirmation that warns the diagram may behave unexpectedly.
|
|
176
|
+
GraphNavigatorSteps.getConfirmDialog().should('be.visible')
|
|
177
|
+
.and('contain', 'The diagram might behave unexpectedly with the new settings.');
|
|
178
|
+
|
|
179
|
+
// When I cancel.
|
|
180
|
+
GraphNavigatorSteps.cancelDialog();
|
|
181
|
+
|
|
182
|
+
// Then I expect the popover to stay open with the file still selected.
|
|
183
|
+
GraphNavigatorSteps.getSettingsPopover().should('be.visible');
|
|
184
|
+
GraphNavigatorSteps.getSelectedSettingsFile().should('exist');
|
|
185
|
+
|
|
186
|
+
// When I upload and confirm.
|
|
187
|
+
GraphNavigatorSteps.clickUpload();
|
|
188
|
+
GraphNavigatorSteps.confirmDialog();
|
|
189
|
+
|
|
190
|
+
// Then I expect a success message and the diagram to be rendered.
|
|
191
|
+
ToasterSteps.verifySuccess('The settings were uploaded');
|
|
192
|
+
GraphNavigatorSteps.getWorkspace().should('exist');
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
it('should ask for confirmation before resetting', () => {
|
|
196
|
+
// Given the repository has uploaded settings.
|
|
197
|
+
GraphNavigatorSteps.visit();
|
|
198
|
+
GraphNavigatorSteps.openSettings();
|
|
199
|
+
GraphNavigatorSteps.selectSettingsFile();
|
|
200
|
+
GraphNavigatorSteps.clickUpload();
|
|
201
|
+
GraphNavigatorSteps.confirmDialog();
|
|
202
|
+
ToasterSteps.verifySuccess('The settings were uploaded');
|
|
203
|
+
|
|
204
|
+
// When I click outside the settings.
|
|
205
|
+
GraphNavigatorSteps.closeSettings();
|
|
206
|
+
|
|
207
|
+
// Then I expect the popover to close.
|
|
208
|
+
GraphNavigatorSteps.getSettingsPopover().should('not.exist');
|
|
209
|
+
|
|
210
|
+
// When I reset them.
|
|
211
|
+
GraphNavigatorSteps.openSettings();
|
|
212
|
+
GraphNavigatorSteps.getResetButton().should('be.visible');
|
|
213
|
+
GraphNavigatorSteps.clickReset();
|
|
214
|
+
|
|
215
|
+
// Then I expect a confirmation that warns the diagram may behave unexpectedly.
|
|
216
|
+
GraphNavigatorSteps.getConfirmDialog().should('be.visible')
|
|
217
|
+
.and('contain', 'The diagram might behave unexpectedly with the default settings.');
|
|
218
|
+
|
|
219
|
+
// When I confirm.
|
|
220
|
+
GraphNavigatorSteps.confirmDialog();
|
|
221
|
+
|
|
222
|
+
// Then I expect a success message and the diagram to be rendered.
|
|
223
|
+
ToasterSteps.verifySuccess('The settings were reset to the defaults');
|
|
224
|
+
GraphNavigatorSteps.getWorkspace().should('exist');
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
it('should export the current settings as a .ttl file', () => {
|
|
228
|
+
// Given I open the settings.
|
|
229
|
+
GraphNavigatorSteps.visit();
|
|
230
|
+
GraphNavigatorSteps.openSettings();
|
|
231
|
+
|
|
232
|
+
// When I export them.
|
|
233
|
+
GraphNavigatorSteps.clickExport();
|
|
234
|
+
|
|
235
|
+
// Then I expect a .ttl file named after the repository to be downloaded.
|
|
236
|
+
GraphNavigatorSteps.verifyFileDownloaded(`graph-navigator-settings-${repositoryId}.ttl`);
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
describe('Repository switch', () => {
|
|
241
|
+
let secondRepositoryId;
|
|
242
|
+
|
|
243
|
+
beforeEach(() => {
|
|
244
|
+
secondRepositoryId = 'repository-second-' + Date.now();
|
|
245
|
+
cy.createRepository({id: secondRepositoryId});
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
afterEach(() => {
|
|
249
|
+
cy.deleteRepository(secondRepositoryId);
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
it('should clear the canvas when the repository is switched', () => {
|
|
253
|
+
// Given the Graph Navigator view is opened with a start resource that gets seeded on the canvas.
|
|
254
|
+
GraphNavigatorSteps.visit(SEED_RESOURCE_ENCODED);
|
|
255
|
+
GraphNavigatorSteps.getElements().should('have.length', 1);
|
|
256
|
+
|
|
257
|
+
// When I switch to another repository.
|
|
258
|
+
RepositorySelectorSteps.selectRepository(secondRepositoryId);
|
|
259
|
+
|
|
260
|
+
// Then I expect a confirmation that warns the diagram will be cleared.
|
|
261
|
+
GraphNavigatorSteps.getConfirmDialog().should('be.visible')
|
|
262
|
+
.and('contain', 'The diagram will be cleared.');
|
|
263
|
+
|
|
264
|
+
// When I cancel.
|
|
265
|
+
GraphNavigatorSteps.cancelDialog();
|
|
266
|
+
|
|
267
|
+
// Then I expect the repository, the canvas and the start resource in the URL to be kept.
|
|
268
|
+
GraphNavigatorSteps.getElements().should('have.length', 1);
|
|
269
|
+
GraphNavigatorSteps.verifyStartResourceUri(decodeURIComponent(SEED_RESOURCE_ENCODED));
|
|
270
|
+
|
|
271
|
+
// When I switch to another repository and confirm.
|
|
272
|
+
RepositorySelectorSteps.selectRepository(secondRepositoryId);
|
|
273
|
+
GraphNavigatorSteps.confirmDialog();
|
|
274
|
+
|
|
275
|
+
// Then I expect the workspace to still be mounted, but the canvas to be cleared.
|
|
276
|
+
GraphNavigatorSteps.getWorkspace().should('exist');
|
|
277
|
+
GraphNavigatorSteps.getElements().should('not.exist');
|
|
278
|
+
|
|
279
|
+
// And I expect the URL to hold only the new repository.
|
|
280
|
+
GraphNavigatorSteps.verifyOnlyRepositoryParam(secondRepositoryId);
|
|
281
|
+
|
|
282
|
+
// When I refresh the page.
|
|
283
|
+
cy.reload();
|
|
284
|
+
|
|
285
|
+
// Then I expect the canvas to stay empty, because the start resource is no longer in the URL.
|
|
286
|
+
GraphNavigatorSteps.getWorkspace().should('exist');
|
|
287
|
+
GraphNavigatorSteps.getElements().should('not.exist');
|
|
288
|
+
GraphNavigatorSteps.verifyOnlyRepositoryParam(secondRepositoryId);
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
});
|
|
@@ -33,7 +33,7 @@ describe('Confirm duplicate RDF file', () => {
|
|
|
33
33
|
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file');
|
|
34
34
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Import button.');
|
|
35
35
|
ImportSettingsDialogSteps.import();
|
|
36
|
-
ImportUserDataSteps.
|
|
36
|
+
ImportUserDataSteps.checkImportedResourceByIndex(0, GUIDE_RESOURCE_FILE);
|
|
37
37
|
|
|
38
38
|
// WHEN: I run a guide that includes the Import RDF File step.
|
|
39
39
|
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 1/6');
|
|
@@ -106,17 +106,13 @@ describe('Main Menu Guide steps', () => {
|
|
|
106
106
|
BaseSteps.validateUrl('/sparql');
|
|
107
107
|
|
|
108
108
|
// TTYG
|
|
109
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/
|
|
110
|
-
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Talk to Your Graph view to create an
|
|
109
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/2');
|
|
110
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Talk to Your Graph view to create an agent.');
|
|
111
111
|
GuideDialogSteps.clickOnNextButton();
|
|
112
112
|
|
|
113
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/
|
|
114
|
-
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
|
|
115
|
-
MainMenuSteps.clickOnMenuLab();
|
|
116
|
-
|
|
117
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 3/3');
|
|
113
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/2');
|
|
118
114
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Talk to Your Graph menu.');
|
|
119
|
-
MainMenuSteps.
|
|
115
|
+
MainMenuSteps.clickOnMenuTTYG();
|
|
120
116
|
BaseSteps.validateUrl('/ttyg');
|
|
121
117
|
|
|
122
118
|
// Autocomplete
|
|
@@ -249,15 +245,11 @@ describe('Main Menu Guide steps', () => {
|
|
|
249
245
|
BaseSteps.validateUrl('/sparql');
|
|
250
246
|
|
|
251
247
|
// TTYG
|
|
252
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/
|
|
248
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/2');
|
|
253
249
|
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Talk to Your Graph view to create an agen');
|
|
254
250
|
GuideDialogSteps.clickOnNextButton();
|
|
255
251
|
|
|
256
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/
|
|
257
|
-
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
|
|
258
|
-
GuideDialogSteps.clickOnNextButton();
|
|
259
|
-
|
|
260
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 3/3');
|
|
252
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/2');
|
|
261
253
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Talk to Your Graph menu.');
|
|
262
254
|
GuideDialogSteps.clickOnNextButton();
|
|
263
255
|
BaseSteps.validateUrl('/ttyg');
|
|
@@ -33,116 +33,112 @@ describe('ttyg configure agent guide', () => {
|
|
|
33
33
|
})
|
|
34
34
|
|
|
35
35
|
it('should create and configure TTYG agent with actions', () => {
|
|
36
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/
|
|
36
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/29');
|
|
37
37
|
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Talk to Your Graph view to create an agent.');
|
|
38
38
|
GuideDialogSteps.clickOnNextButton();
|
|
39
39
|
|
|
40
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/
|
|
41
|
-
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
|
|
42
|
-
MainMenuSteps.clickOnMenuLab();
|
|
43
|
-
|
|
44
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 3/30');
|
|
40
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/29');
|
|
45
41
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Talk to Your Graph menu.');
|
|
46
|
-
MainMenuSteps.
|
|
42
|
+
MainMenuSteps.clickOnMenuTTYG();
|
|
47
43
|
|
|
48
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent —
|
|
44
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 4/29');
|
|
49
45
|
GuideDialogSteps.assertDialogWithContentIsVisible('An agent is a helpful assistant that can answer your queries. You need to configure an agent in order to ask anything of Talk to Your Graph.');
|
|
50
46
|
GuideDialogSteps.clickOnNextButton();
|
|
51
47
|
|
|
52
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent —
|
|
48
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 6/29');
|
|
53
49
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create agent button to create a new agent.');
|
|
54
50
|
TTYGViewSteps.clickCreateAgentButton();
|
|
55
51
|
|
|
56
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent —
|
|
52
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 8/29');
|
|
57
53
|
GuideDialogSteps.assertDialogWithContentIsVisible('Type a name for the agent. You will refer to it later.');
|
|
58
54
|
TtygAgentSettingsModalSteps.typeAgentName('MyAgent');
|
|
59
55
|
GuideDialogSteps.clickOnNextButton();
|
|
60
56
|
|
|
61
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent —
|
|
57
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 9/29');
|
|
62
58
|
GuideDialogSteps.assertDialogWithContentIsVisible('Here you can type the name of the OpenAI model to be used.');
|
|
63
59
|
TtygAgentSettingsModalSteps.clearLLMModel();
|
|
64
60
|
TtygAgentSettingsModalSteps.typeLLMModel('gpt-3.5-turbo');
|
|
65
61
|
GuideDialogSteps.clickOnNextButton();
|
|
66
62
|
|
|
67
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph —
|
|
63
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 10/29');
|
|
68
64
|
GuideDialogSteps.assertDialogWithContentIsVisible('Sets the sampling temperature of the agent. Lower values result in more consistent, repetitive responses generated by the agent and higher values result in a wider variety of responses');
|
|
69
65
|
TtygAgentSettingsModalSteps.setTemperature(0.8);
|
|
70
66
|
GuideDialogSteps.clickOnNextButton();
|
|
71
67
|
|
|
72
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph —
|
|
68
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 11/29');
|
|
73
69
|
GuideDialogSteps.assertDialogWithContentIsVisible('Sets the nucleus sampling of the agent');
|
|
74
70
|
TtygAgentSettingsModalSteps.setTopP(0.9);
|
|
75
71
|
GuideDialogSteps.clickOnNextButton();
|
|
76
72
|
|
|
77
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
73
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 12/29');
|
|
78
74
|
GuideDialogSteps.assertDialogWithContentIsVisible('Enabling SPARQL search allows the agent to answers questions by performing a SPARQL query.');
|
|
79
75
|
GuideDialogSteps.clickOnNextButton();
|
|
80
76
|
|
|
81
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
77
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 13/29');
|
|
82
78
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable SPARQL search query method.');
|
|
83
79
|
TtygAgentSettingsModalSteps.enableSparqlExtractionMethod();
|
|
84
80
|
|
|
85
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
81
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 14/29');
|
|
86
82
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable providing an ontology in a named graph.');
|
|
87
83
|
TtygAgentSettingsModalSteps.selectSparqlMethodOntologyGraph();
|
|
88
84
|
|
|
89
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
85
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 15/29');
|
|
90
86
|
GuideDialogSteps.assertDialogWithContentIsVisible('Type http://example.org/some/test/ontology as the named graph which contains the ontology.');
|
|
91
87
|
TtygAgentSettingsModalSteps.clearSparqlMethodOntologyGraphField();
|
|
92
88
|
TtygAgentSettingsModalSteps.typeSparqlMethodOntologyGraphField('http://example.org/some/test/ontology');
|
|
93
89
|
GuideDialogSteps.clickOnNextButton();
|
|
94
90
|
|
|
95
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method —
|
|
91
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 16/29');
|
|
96
92
|
GuideDialogSteps.assertDialogWithContentIsVisible('Check to automatically add missing namespaces.');
|
|
97
93
|
TtygAgentSettingsModalSteps.toggleAddMissingNamespacesCheckbox();
|
|
98
94
|
|
|
99
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method —
|
|
95
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 17/29');
|
|
100
96
|
GuideDialogSteps.assertDialogWithContentIsVisible('Enabling FTS search allows the agent to answer questions by using full-text search in literals and IRIs.');
|
|
101
97
|
GuideDialogSteps.clickOnNextButton();
|
|
102
98
|
|
|
103
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method —
|
|
99
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 18/29');
|
|
104
100
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable FTS search query method.');
|
|
105
101
|
TtygAgentSettingsModalSteps.enableFtsExtractionMethod();
|
|
106
102
|
|
|
107
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method —
|
|
103
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 19/29');
|
|
108
104
|
GuideDialogSteps.assertDialogWithContentIsVisible('Type 100 as the maximum number of triples to retrieve per call.');
|
|
109
105
|
TtygAgentSettingsModalSteps.setFtsSearchMaxTriples(100);
|
|
110
106
|
GuideDialogSteps.clickOnNextButton();
|
|
111
107
|
|
|
112
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method —
|
|
108
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 20/29');
|
|
113
109
|
GuideDialogSteps.assertDialogWithContentIsVisible('Enabling Similarity search allows the agent to answer questions by using Similarity search.');
|
|
114
110
|
GuideDialogSteps.clickOnNextButton();
|
|
115
111
|
|
|
116
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method —
|
|
112
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 21/29');
|
|
117
113
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable Similarity search query method.');
|
|
118
114
|
TtygAgentSettingsModalSteps.enableSimilaritySearchMethodPanel();
|
|
119
115
|
|
|
120
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method —
|
|
116
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 22/29');
|
|
121
117
|
GuideDialogSteps.assertDialogWithContentIsVisible('Select the index to use for Similarity search.');
|
|
122
118
|
TtygAgentSettingsModalSteps.selectSimilarityIndex(0);
|
|
123
119
|
GuideDialogSteps.clickOnNextButton();
|
|
124
120
|
|
|
125
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph —
|
|
121
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 23/29');
|
|
126
122
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable Full-text search in labels for IRI discovery');
|
|
127
123
|
TtygAgentSettingsModalSteps.checkIriDiscoverySearchCheckbox();
|
|
128
124
|
|
|
129
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph —
|
|
125
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 24/29');
|
|
130
126
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable Autocomplete for IRI discovery.');
|
|
131
127
|
TtygAgentSettingsModalSteps.checkAutocompleteSearchCheckbox();
|
|
132
128
|
|
|
133
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph —
|
|
129
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 25/29');
|
|
134
130
|
GuideDialogSteps.assertDialogWithContentIsVisible('Set the Max number of results (IRIs) per call to 15');
|
|
135
131
|
TtygAgentSettingsModalSteps.setAutocompleteMaxResults(15);
|
|
136
132
|
GuideDialogSteps.clickOnNextButton();
|
|
137
133
|
|
|
138
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph —
|
|
134
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 26/29');
|
|
139
135
|
GuideDialogSteps.assertDialogWithContentIsVisible('Set Context Size to 4096 so the model can use the ontology and conversation history to answer correctly');
|
|
140
136
|
TtygAgentSettingsModalSteps.getContextSizeField().focus();
|
|
141
137
|
TtygAgentSettingsModalSteps.clearContextSize();
|
|
142
138
|
TtygAgentSettingsModalSteps.enterContextSize(4096);
|
|
143
139
|
GuideDialogSteps.clickOnNextButton();
|
|
144
140
|
|
|
145
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent —
|
|
141
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 27/29');
|
|
146
142
|
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following in the input:');
|
|
147
143
|
TtygAgentSettingsModalSteps.clearUserInstructions();
|
|
148
144
|
TtygAgentSettingsModalSteps.getCodeToCopy().then(code => {
|
|
@@ -150,7 +146,7 @@ describe('ttyg configure agent guide', () => {
|
|
|
150
146
|
GuideDialogSteps.clickOnNextButton();
|
|
151
147
|
});
|
|
152
148
|
|
|
153
|
-
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 29
|
|
149
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 28/29');
|
|
154
150
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the agent settings');
|
|
155
151
|
TtygAgentSettingsModalSteps.saveAgent();
|
|
156
152
|
});
|
|
@@ -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');
|
|
@@ -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
|
|
@@ -97,8 +97,8 @@ describe('Import server files - Batch operations', () => {
|
|
|
97
97
|
// Then the files should be imported
|
|
98
98
|
// We send only the files in the folder for import
|
|
99
99
|
// ImportServerFilesSteps.checkImportedResource(0, 'more-files');
|
|
100
|
-
ImportServerFilesSteps.
|
|
101
|
-
ImportServerFilesSteps.
|
|
100
|
+
ImportServerFilesSteps.checkImportedResourceByName('jsonld-file.jsonld');
|
|
101
|
+
ImportServerFilesSteps.checkImportedResourceByName('rdfxml.rdf');
|
|
102
102
|
ImportServerFilesSteps.deselectFileByName('more-files');
|
|
103
103
|
// When I select the folder and click on the batch reset button
|
|
104
104
|
ImportServerFilesSteps.selectFileByName('more-files');
|
|
@@ -116,7 +116,7 @@ describe('Import server files - Batch operations', () => {
|
|
|
116
116
|
// Then the files should be imported
|
|
117
117
|
// We send only the files in the folder for import
|
|
118
118
|
// ImportServerFilesSteps.checkImportedResource(0, 'more-files');
|
|
119
|
-
ImportServerFilesSteps.
|
|
120
|
-
ImportServerFilesSteps.
|
|
119
|
+
ImportServerFilesSteps.checkImportedResourceByName('jsonld-file.jsonld');
|
|
120
|
+
ImportServerFilesSteps.checkImportedResourceByName('rdfxml.rdf');
|
|
121
121
|
});
|
|
122
122
|
});
|