graphdb-workbench-tests 2.0.0-RC2 → 2.0.0-RC3
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.
|
@@ -41,8 +41,11 @@ describe('Repositories', () => {
|
|
|
41
41
|
|
|
42
42
|
beforeEach(() => {
|
|
43
43
|
repositoryId = 'repo-' + Date.now();
|
|
44
|
+
cy.intercept('/rest/locations').as('getLocations');
|
|
44
45
|
|
|
45
46
|
cy.visit('/repository');
|
|
47
|
+
waitLoader();
|
|
48
|
+
cy.wait('@getLocations');
|
|
46
49
|
cy.window();
|
|
47
50
|
|
|
48
51
|
waitUntilRepositoriesPageIsLoaded();
|
|
@@ -166,7 +169,7 @@ describe('Repositories', () => {
|
|
|
166
169
|
.and('contain', 'Repository ID cannot be empty');
|
|
167
170
|
});
|
|
168
171
|
|
|
169
|
-
it
|
|
172
|
+
it('should allow creation of repositories with custom settings', () => {
|
|
170
173
|
const repoTitle = 'Repo title for ' + repositoryId;
|
|
171
174
|
|
|
172
175
|
createRepository();
|
|
@@ -214,7 +217,7 @@ describe('Repositories', () => {
|
|
|
214
217
|
getRepositoryContextIndexCheckbox().should('be.checked');
|
|
215
218
|
});
|
|
216
219
|
|
|
217
|
-
it
|
|
220
|
+
it('should allow to switch between repositories', () => {
|
|
218
221
|
const secondRepoId = 'second-repo-' + Date.now();
|
|
219
222
|
createRepository();
|
|
220
223
|
chooseRepositoryType(GDB_REPOSITORY_TYPE);
|
|
@@ -222,6 +225,7 @@ describe('Repositories', () => {
|
|
|
222
225
|
|
|
223
226
|
typeRepositoryId(repositoryId);
|
|
224
227
|
saveRepository();
|
|
228
|
+
cy.wait('@getLocations');
|
|
225
229
|
|
|
226
230
|
createRepository();
|
|
227
231
|
chooseRepositoryType(GDB_REPOSITORY_TYPE);
|
|
@@ -275,6 +279,7 @@ describe('Repositories', () => {
|
|
|
275
279
|
// The currently selected repository is kept in local storage
|
|
276
280
|
cy.visit('/repository');
|
|
277
281
|
cy.window();
|
|
282
|
+
|
|
278
283
|
// Should automatically select the default repository
|
|
279
284
|
getRepositoriesDropdown()
|
|
280
285
|
.find('.active-repository')
|
|
@@ -286,7 +291,7 @@ describe('Repositories', () => {
|
|
|
286
291
|
});
|
|
287
292
|
});
|
|
288
293
|
|
|
289
|
-
it
|
|
294
|
+
it('should allow to edit existing repository', () => {
|
|
290
295
|
const newTitle = 'Title edit';
|
|
291
296
|
|
|
292
297
|
createRepository();
|
|
@@ -296,7 +301,7 @@ describe('Repositories', () => {
|
|
|
296
301
|
typeRepositoryId(repositoryId);
|
|
297
302
|
typeRepositoryTitle('Title');
|
|
298
303
|
saveRepository();
|
|
299
|
-
|
|
304
|
+
cy.wait('@getLocations');
|
|
300
305
|
editRepository(repositoryId);
|
|
301
306
|
|
|
302
307
|
// Some fields should be disabled
|
|
@@ -312,7 +317,7 @@ describe('Repositories', () => {
|
|
|
312
317
|
confirmModal();
|
|
313
318
|
waitLoader();
|
|
314
319
|
});
|
|
315
|
-
|
|
320
|
+
cy.wait('@getLocations');
|
|
316
321
|
// See the title is rendered in the repositories list
|
|
317
322
|
getRepositoryFromList(repositoryId).should('contain', newTitle);
|
|
318
323
|
|
|
@@ -323,14 +328,14 @@ describe('Repositories', () => {
|
|
|
323
328
|
getRepositoryContextIndexCheckbox().should('be.checked');
|
|
324
329
|
});
|
|
325
330
|
|
|
326
|
-
it
|
|
331
|
+
it('should allow to delete existing repository', () => {
|
|
327
332
|
createRepository();
|
|
328
333
|
chooseRepositoryType(GDB_REPOSITORY_TYPE);
|
|
329
334
|
cy.url().should('include', '/repository/create/');
|
|
330
335
|
|
|
331
336
|
typeRepositoryId(repositoryId);
|
|
332
337
|
saveRepository();
|
|
333
|
-
|
|
338
|
+
cy.wait('@getLocations');
|
|
334
339
|
selectRepoFromDropdown(repositoryId);
|
|
335
340
|
|
|
336
341
|
getRepositoryFromList(repositoryId)
|
|
@@ -607,7 +612,7 @@ describe('Repositories', () => {
|
|
|
607
612
|
compareDriverDownloadUrl('https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads');
|
|
608
613
|
});
|
|
609
614
|
|
|
610
|
-
it
|
|
615
|
+
it('should restart an existing repository', () => {
|
|
611
616
|
|
|
612
617
|
createRepository();
|
|
613
618
|
chooseRepositoryType(GDB_REPOSITORY_TYPE);
|
|
@@ -673,7 +678,7 @@ describe('Repositories', () => {
|
|
|
673
678
|
assertRepositoryStatus(repositoryId, "RUNNING");
|
|
674
679
|
});
|
|
675
680
|
|
|
676
|
-
it
|
|
681
|
+
it('should create SHACL repo and test shapes validation', () => {
|
|
677
682
|
//Prepare repository by enabling SHACL
|
|
678
683
|
createRepository();
|
|
679
684
|
chooseRepositoryType(GDB_REPOSITORY_TYPE);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphdb-workbench-tests",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-RC3",
|
|
4
4
|
"description": "Cypress tests for GraphDB workbench",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "cypress open",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"cypress": "^7.3.0",
|
|
25
25
|
"cypress-failed-log": "^2.5.1",
|
|
26
26
|
"cypress-localstorage-commands": "^1.4.4",
|
|
27
|
+
"cypress-terminal-report": "^4.0.1",
|
|
27
28
|
"cypress-wait-until": "^1.7.1"
|
|
28
29
|
},
|
|
29
30
|
"bin": {
|
package/plugins/index.js
CHANGED
|
@@ -17,4 +17,13 @@ module.exports = (on, config) => {
|
|
|
17
17
|
on('task', {
|
|
18
18
|
failed: require('cypress-failed-log/src/failed')()
|
|
19
19
|
});
|
|
20
|
+
|
|
21
|
+
require('cypress-terminal-report/src/installLogsPrinter')(on, {
|
|
22
|
+
logToFilesOnAfterRun: true,
|
|
23
|
+
printLogsToConsole: 'onFail',
|
|
24
|
+
outputRoot: config.projectRoot + '/logs/',
|
|
25
|
+
outputTarget: {
|
|
26
|
+
'cypress-logs|txt': 'txt'
|
|
27
|
+
}
|
|
28
|
+
});
|
|
20
29
|
};
|