graphdb-workbench-tests 2.0.0-TR8 → 2.0.1
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 +1608 -0
- package/integration/explore/similarity.spec.js +3 -3
- package/integration/explore/visual.graph.spec.js +46 -12
- package/integration/help/rest-api.spec.js +1 -1
- package/integration/home/language-change.spec.js +45 -0
- package/integration/home/workbench.home.spec.js +16 -1
- package/integration/repository/repositories.spec.js +22 -16
- package/integration/setup/connectors-lucene.spec.js +5 -3
- package/integration/setup/my-settings.spec.js +3 -2
- package/integration/setup/plugins.spec.js +69 -0
- package/integration/setup/user-and-access.spec.js +69 -24
- package/integration/sparql/main.menu.spec.js +8 -13
- package/integration/sparql/sparql-language-change.spec.js +62 -0
- package/integration/sparql/sparql.menu.spec.js +102 -199
- package/package.json +4 -2
- package/plugins/index.js +9 -0
- package/steps/home-steps.js +16 -0
- package/steps/sparql-steps.js +154 -0
- package/support/import-commands.js +8 -6
- package/support/index.js +2 -0
- package/support/settings-commands.js +1 -1
- package/support/sparql-commands.js +3 -5
- package/integration/import/onto-refine.spec.js +0 -135
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import SparqlSteps from '../../steps/sparql-steps';
|
|
2
|
+
|
|
3
|
+
describe('YASQE and YASR language change validation', () => {
|
|
4
|
+
let repositoryId;
|
|
5
|
+
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
repositoryId = 'sparql-' + Date.now();
|
|
8
|
+
SparqlSteps.createRepoAndVisit(repositoryId);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
afterEach(() => {
|
|
12
|
+
// Change the language back to English
|
|
13
|
+
SparqlSteps.changeLanguage('en');
|
|
14
|
+
|
|
15
|
+
cy.deleteRepository(repositoryId);
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
context('Default language should be active and language change should affect labels', () => {
|
|
19
|
+
it('should change labels in SPARQL view', () => {
|
|
20
|
+
|
|
21
|
+
// Check some labels are in default language
|
|
22
|
+
SparqlSteps.getSparqlQueryUpdateLabel().should('contain', 'SPARQL Query & Update');
|
|
23
|
+
SparqlSteps.getDownloadBtn().should('contain', 'Download as');
|
|
24
|
+
SparqlSteps.getEditorAndResultsBtn().should('contain', 'Editor and results');
|
|
25
|
+
SparqlSteps.getResultsOnlyBtn().should('contain', 'Results only');
|
|
26
|
+
|
|
27
|
+
SparqlSteps.changeLanguage('fr');
|
|
28
|
+
|
|
29
|
+
// The text in the labels should change
|
|
30
|
+
SparqlSteps.getSparqlQueryUpdateLabel().should('contain', 'Requête et mise à jour SPARQL');
|
|
31
|
+
SparqlSteps.getDownloadBtn().should('contain', 'Téléchargement');
|
|
32
|
+
SparqlSteps.getEditorAndResultsBtn().should('contain', 'Éditeur et résultats');
|
|
33
|
+
SparqlSteps.getResultsOnlyBtn().should('contain', 'Résultats seulement');
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it('should change labels in SPARQL results view', function () {
|
|
37
|
+
SparqlSteps.selectSavedQuery('Add statements');
|
|
38
|
+
SparqlSteps.executeQuery();
|
|
39
|
+
SparqlSteps.selectSavedQuery('SPARQL Select template');
|
|
40
|
+
SparqlSteps.executeQuery();
|
|
41
|
+
|
|
42
|
+
// Go to Results only view
|
|
43
|
+
SparqlSteps.getResultsOnlyBtn().click();
|
|
44
|
+
|
|
45
|
+
// Check some labels are in default language
|
|
46
|
+
SparqlSteps.getTabWithTableText().should('contain', 'Table');
|
|
47
|
+
SparqlSteps.getTabWithRawResponseText().should('contain', 'Raw Response');
|
|
48
|
+
SparqlSteps.getTabWithPivotTableText().should('contain', 'Pivot Table');
|
|
49
|
+
SparqlSteps.getTabWithGoogleChartText().should('contain', 'Google Chart');
|
|
50
|
+
SparqlSteps.getResultsDescription().should('contain', 'Showing results from');
|
|
51
|
+
|
|
52
|
+
SparqlSteps.changeLanguage('fr');
|
|
53
|
+
|
|
54
|
+
// The text in the labels should change
|
|
55
|
+
SparqlSteps.getTabWithTableText().should('contain', 'Tableau');
|
|
56
|
+
SparqlSteps.getTabWithRawResponseText().should('contain', 'Réponse brute');
|
|
57
|
+
SparqlSteps.getTabWithPivotTableText().should('contain', 'Table de pivotement');
|
|
58
|
+
SparqlSteps.getTabWithGoogleChartText().should('contain', 'Graphique Google');
|
|
59
|
+
SparqlSteps.getResultsDescription().should('contain', 'Liste de résultats de');
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
})
|