graphdb-workbench-tests 2.0.3-TR1 → 2.1.0-RC2
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/fixtures/locale-en.json +4 -0
- package/fixtures/repo-template.json +10 -0
- package/integration/explore/class.hierarchy.spec.js +12 -5
- package/integration/home/language-change.spec.js +1 -1
- package/integration/repository/repositories.spec.js +14 -1
- package/integration/sparql/main.menu.spec.js +5 -0
- package/package.json +1 -1
package/fixtures/locale-en.json
CHANGED
|
@@ -537,6 +537,8 @@
|
|
|
537
537
|
"menu.sparql.label": "SPARQL",
|
|
538
538
|
"menu.monitor.label": "Monitor",
|
|
539
539
|
"menu.queries.and.updates.label": "Queries and Updates",
|
|
540
|
+
"menu.fts.label": "Enable full-text search",
|
|
541
|
+
"menu.ftsLanguages.label": "Languages for full-text search",
|
|
540
542
|
"menu.resources.label": "Resources",
|
|
541
543
|
"menu.setup.label": "Setup",
|
|
542
544
|
"menu.repositories.label": "Repositories",
|
|
@@ -963,6 +965,8 @@
|
|
|
963
965
|
"repoTooltips.throwQueryEvaluationExceptionOnTimeout": "Repository throws QueryEvaluationException when the duration of a query execution exceeds the timeout parameter.",
|
|
964
966
|
"repoTooltips.queryLimitResults": "Sets the maximum number of results returned from a query after which the evaluation of a query will be terminated; values less than or equal to zero mean no limit.",
|
|
965
967
|
"repoTooltips.nonInterpretablePredicates": "Semicolon-delimited list of predicates (full URIs) that GraphDB will not try to process with the registered GraphDB plugins.",
|
|
968
|
+
"repoTooltips.fts": "Enable full-text search.",
|
|
969
|
+
"repoTooltips.ftsLanguages": "White space-delimited list of languages that should have specific index with appropriate analyzer for full-text search.",
|
|
966
970
|
"repoTooltips.ontop.driverType": "Determines the type of SQL database to connect to.",
|
|
967
971
|
"repoTooltips.ontop.propertiesFile": "Describes the JDBC configuration such as hostname and database name to connect to.",
|
|
968
972
|
"repoTooltips.ontop.hostName": "The JDBC hostname to connect to.",
|
|
@@ -76,6 +76,16 @@
|
|
|
76
76
|
"name": "entityIdSize",
|
|
77
77
|
"value": "32"
|
|
78
78
|
},
|
|
79
|
+
"fts": {
|
|
80
|
+
"label": "Enable full-text search",
|
|
81
|
+
"name": "fts",
|
|
82
|
+
"value": "true"
|
|
83
|
+
},
|
|
84
|
+
"ftsLanguages": {
|
|
85
|
+
"label": "Enter language for full-text search",
|
|
86
|
+
"name": "ftsLanguages",
|
|
87
|
+
"value": ""
|
|
88
|
+
},
|
|
79
89
|
"throwQueryEvaluationExceptionOnTimeout": {
|
|
80
90
|
"label": "Throw exception on query time-out",
|
|
81
91
|
"name": "throwQueryEvaluationExceptionOnTimeout",
|
|
@@ -65,7 +65,9 @@ describe('Class hierarchy screen validation', () => {
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
it('Test focus on diagram', () => {
|
|
68
|
-
|
|
68
|
+
// This must not be a top-level class and it must have no children,
|
|
69
|
+
// otherwise asserting the zooming becomes tricky
|
|
70
|
+
let className = ':SweetRiesling';
|
|
69
71
|
findClassByName(className);
|
|
70
72
|
cy.get('@classInHierarchy').then(verifyClassIsNotExpanded);
|
|
71
73
|
|
|
@@ -140,8 +142,9 @@ describe('Class hierarchy screen validation', () => {
|
|
|
140
142
|
.should('be.visible')
|
|
141
143
|
.and('length.be.gt', 0);
|
|
142
144
|
|
|
143
|
-
// Click on a
|
|
144
|
-
|
|
145
|
+
// Click on a specific element that isn't a top-level one and has children,
|
|
146
|
+
// otherwise it gets tricky to assert whether it was zoomed
|
|
147
|
+
cy.get('#search_input_dropdown').contains('WineColor')
|
|
145
148
|
.then(($el) => {
|
|
146
149
|
let selectedClassName = $el.text().trim();
|
|
147
150
|
|
|
@@ -247,11 +250,15 @@ describe('Class hierarchy screen validation', () => {
|
|
|
247
250
|
}
|
|
248
251
|
|
|
249
252
|
function verifyClassIsNotExpanded($element) {
|
|
250
|
-
|
|
253
|
+
// This works well only for classes that aren't top level and have no children
|
|
254
|
+
return cy.wrap($element)
|
|
255
|
+
.should('have.css', 'display').and('eq', 'none');
|
|
251
256
|
}
|
|
252
257
|
|
|
253
258
|
function verifyClassIsExpanded($element) {
|
|
254
|
-
|
|
259
|
+
// This works well only for classes that aren't top level and have no children
|
|
260
|
+
return cy.wrap($element)
|
|
261
|
+
.should('have.css', 'display').and('not.eq', 'none');
|
|
255
262
|
}
|
|
256
263
|
|
|
257
264
|
function verifyCounterValue(classCount) {
|
|
@@ -37,7 +37,7 @@ describe('Home screen language validation', () => {
|
|
|
37
37
|
|
|
38
38
|
// The text in the labels should change
|
|
39
39
|
HomeSteps.getViewResourceAsLabel().should('have.text', 'Voir la ressource');
|
|
40
|
-
HomeSteps.getActiveRepoAsLabel().should('have.text', '
|
|
40
|
+
HomeSteps.getActiveRepoAsLabel().should('have.text', 'Dépôt actif');
|
|
41
41
|
HomeSteps.getSavedSparqlQueriesAsLabel().should('have.text', 'Requêtes SPARQL sauvegardées');
|
|
42
42
|
HomeSteps.getLicenseAsLabel().should('have.text', 'Licence');
|
|
43
43
|
});
|
|
@@ -215,6 +215,9 @@ describe('Repositories', () => {
|
|
|
215
215
|
getRepositoryRulesetMenu().should('have.value', '4');
|
|
216
216
|
getRepositoryDisableSameAsCheckbox().should('not.be.checked');
|
|
217
217
|
getRepositoryContextIndexCheckbox().should('be.checked');
|
|
218
|
+
|
|
219
|
+
// TODO uncomment and refactor when FTS configuration is with clear ON or OFF status
|
|
220
|
+
// getRepositoryFtsCheckbox().should('be.checked');
|
|
218
221
|
});
|
|
219
222
|
|
|
220
223
|
it('should allow to switch between repositories', () => {
|
|
@@ -311,6 +314,9 @@ describe('Repositories', () => {
|
|
|
311
314
|
typeRepositoryTitle(newTitle);
|
|
312
315
|
getRepositoryContextIndexCheckbox().check();
|
|
313
316
|
|
|
317
|
+
// TODO uncomment and refactor when FTS configuration is with clear ON or OFF status
|
|
318
|
+
// getRepositoryFtsCheckbox().check();
|
|
319
|
+
|
|
314
320
|
getSaveRepositoryButton()
|
|
315
321
|
.click()
|
|
316
322
|
.then(() => {
|
|
@@ -326,6 +332,9 @@ describe('Repositories', () => {
|
|
|
326
332
|
|
|
327
333
|
getRepositoryTitleField().should('have.value', newTitle);
|
|
328
334
|
getRepositoryContextIndexCheckbox().should('be.checked');
|
|
335
|
+
|
|
336
|
+
// TODO uncomment and refactor when FTS configuration is with clear ON or OFF status
|
|
337
|
+
// getRepositoryFtsCheckbox().should('be.checked');
|
|
329
338
|
});
|
|
330
339
|
|
|
331
340
|
it('should allow to delete existing repository', () => {
|
|
@@ -660,7 +669,7 @@ describe('Repositories', () => {
|
|
|
660
669
|
.should('have.length.greaterThan', 0)
|
|
661
670
|
.then(() => {
|
|
662
671
|
assertRepositoryStatus(repositoryId, "RUNNING");
|
|
663
|
-
})
|
|
672
|
+
});
|
|
664
673
|
|
|
665
674
|
//Restart the repository
|
|
666
675
|
restartRepository(repositoryId);
|
|
@@ -837,6 +846,10 @@ describe('Repositories', () => {
|
|
|
837
846
|
return getRepositoryCreateForm().find('#enableContextIndex');
|
|
838
847
|
}
|
|
839
848
|
|
|
849
|
+
function getRepositoryFtsCheckbox() {
|
|
850
|
+
return getRepositoryCreateForm().find('#fts');
|
|
851
|
+
}
|
|
852
|
+
|
|
840
853
|
function getSaveRepositoryButton() {
|
|
841
854
|
return cy.get('#addSaveRepository');
|
|
842
855
|
}
|