graphdb-workbench-tests 2.0.0-M3-TR9 → 2.0.0-M3-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.
@@ -913,9 +913,9 @@
913
913
  "location.change.confirm": "Confirm location change",
914
914
  "location.change.confirm.warning": "Are you sure you want to change the location?",
915
915
  "location.label": "Location:",
916
- "delete.repo.warning.msg": "<p>Are you sure you want to delete the repository <strong>{{repositoryId}}</strong>?</p><p><span class=\"icon-2x icon-warning\" style=\"color: #d54a33\"/>All data in the repository will be lost.</p>",
916
+ "delete.repo.warning.msg": "<p>Are you sure you want to delete the repository <strong>{{repositoryId}}</strong>?</p><p><span class=\"icon-2x icon-warning\" style=\"color: var(--onto-orange-dark)\"/>All data in the repository will be lost.</p>",
917
917
  "confirm.restart.repo": "Confirm restart",
918
- "confirm.restart.repo.warning.msg": "<p>Are you sure you want to restart the repository <strong>{{repositoryId}}</strong>?</p><p><span class=\"icon-2x icon-warning\" style=\"color: #d54a33\"/>The repository will be shut down immediately and all running queries and updates will be cancelled.</p>",
918
+ "confirm.restart.repo.warning.msg": "<p>Are you sure you want to restart the repository <strong>{{repositoryId}}</strong>?</p><p><span class=\"icon-2x icon-warning\" style=\"color: var(--onto-orange-dark)\"/>The repository will be shut down immediately and all running queries and updates will be cancelled.</p>",
919
919
  "location.cannot.be.empty.error": "Location cannot be empty",
920
920
  "required.field": "This field is required",
921
921
  "created.repo.success.msg": "The repository {{repoId}} has been created.",
@@ -923,11 +923,12 @@
923
923
  "invalid.ruleset.file.error": "Invalid rule-set file. Please upload a valid one.",
924
924
  "wrong.repo.name.error": "Wrong repo name",
925
925
  "edit.system.repo.warning": "<b>System</b> repository can't be edited",
926
+ "edit.repo.error.not.exists": "Repo with name <b>{{repositoryId}}</b> doesn't exists",
926
927
  "edit.repo.success.msg": "The repository {{saveId}} has been edited.",
927
928
  "edit.repo.save.changes.msg": "Save changes to repository <strong>{{repoId}}</strong>?<br><br>",
928
- "edit.repo.rename.changes.msg": "<span class=\"icon-2x icon-warning\" style=\"color: #d54a33\"/>The repository will be stopped and renamed.",
929
- "edit.repo.restart.requested.msg": "<span class=\"icon-2x icon-warning\" style=\"color: #d54a33\"/>The repository will be restarted.",
930
- "edit.repo.restart.needed.msg": "<span class=\"icon-2x icon-warning\" style=\"color: #d54a33\"/>Repository restart required for changes to take effect.",
929
+ "edit.repo.rename.changes.msg": "<span class=\"icon-2x icon-warning\" style=\"color: var(--onto-orange-dark)\"/>The repository will be stopped and renamed.",
930
+ "edit.repo.restart.requested.msg": "<span class=\"icon-2x icon-warning\" style=\"color: var(--onto-orange-dark)\"/>The repository will be restarted.",
931
+ "edit.repo.restart.needed.msg": "<span class=\"icon-2x icon-warning\" style=\"color: var(--onto-orange-dark)\"/>Repository restart required for changes to take effect.",
931
932
  "edit.repo.id.warning.msg": "<p>Changing the repository ID is a dangerous operation since it renames the repository folder and enforces repository shutdown.</p>",
932
933
  "edit.repo.id.cluster.warning.msg": "<p>If your repository is in a cluster, it is your responsibility to update the cluster after renaming.</p>",
933
934
  "confirm.enable.edit": "Confirm enable edit",
@@ -1154,7 +1155,7 @@
1154
1155
  "sparql.template.delete.template.failure": "Could not delete {{templateID}} template",
1155
1156
  "sparql.template.get.template.error": "Could not get {{templateID}} template",
1156
1157
  "sparql.template.iri.constraint": "SPARQL template IRI is required",
1157
- "sparql.template.existing.template.error": "<div>SPARQL Template <strong>{{templateID}}</strong> already exists.</div><br><div><span class=\"icon-2x icon-warning\" style=\"color: #d54a33\"/> Do you want to override the template query?</div>",
1158
+ "sparql.template.existing.template.error": "<div>SPARQL Template <strong>{{templateID}}</strong> already exists.</div><br><div><span class=\"icon-2x icon-warning\" style=\"color: var(--onto-orange-dark)\"/> Do you want to override the template query?</div>",
1158
1159
  "update.sparql.template.success.msg": "Updated SPARQL template",
1159
1160
  "save.sparql.template.failure.msg": "Could not save {{templateID}} template",
1160
1161
  "sparql.template.query.constraint": "The template query must be an UPDATE query",
@@ -1552,12 +1553,10 @@
1552
1553
  "no.access.permission.to.functionality.error": "You have no permission to access this functionality with your current credentials.",
1553
1554
  "change.menu.or.user.warning": "Please choose another menu item or login as a different user.",
1554
1555
  "all.rights.reserved.label": "All rights reserved.",
1555
- "workbench.loading.warning": "GraphDB Workbench is loading...",
1556
- "workbench.loading.hint5": "GraphDB Workbench is still loading but it's taking longer than usual, please wait...",
1557
- "workbench.loading.hint10": "If the Workbench hasn't loaded yet, please try to clear your browser cache and reload the page.",
1558
1556
  "change.language.tooltip": "Change language to",
1557
+ "current.language.tooltip": "Current language",
1559
1558
  "sparql.shortcuts": "keyboard shortcuts",
1560
- "sparql.shortcuts.capital": "keyboard shortcuts",
1559
+ "sparql.shortcuts.capital": "Keyboard shortcuts",
1561
1560
  "sparql.shortcuts.trigger.autocomplete": "Trigger Autocompletion",
1562
1561
  "sparql.shortcuts.delete.line": "Delete current/selected line(s)",
1563
1562
  "sparql.shortcuts.comment.uncomment.line": "Comment or uncomment current/selected line(s)",
@@ -1605,8 +1604,5 @@
1605
1604
  "all": "all",
1606
1605
  "clear.tooltip": "Clear",
1607
1606
  "repo.page.location.label": "Location",
1608
- "repo.page.location.input.field.tooltip": "The location where to create repository. The default is the local one.",
1609
-
1610
- "menu.btn.translate.en": "English",
1611
- "menu.btn.translate.fr": "French"
1607
+ "repo.page.location.input.field.tooltip": "The location where to create repository. The default is the local one."
1612
1608
  }
@@ -13,7 +13,7 @@ describe('Home screen language validation', () => {
13
13
  cy.deleteRepository(repositoryId);
14
14
 
15
15
  // Change the language back to English
16
- SparqlSteps.changeLanguage('Anglais');
16
+ SparqlSteps.changeLanguage('en');
17
17
  });
18
18
 
19
19
  context('Language change label checks', () => {
@@ -33,7 +33,7 @@ describe('Home screen language validation', () => {
33
33
  HomeSteps.getSavedSparqlQueriesAsLabel().should('have.text', 'Saved SPARQL queries');
34
34
  HomeSteps.getLicenseAsLabel().should('have.text', 'License');
35
35
 
36
- SparqlSteps.changeLanguage('French');
36
+ SparqlSteps.changeLanguage('fr');
37
37
 
38
38
  // The text in the labels should change
39
39
  HomeSteps.getViewResourceAsLabel().should('have.text', 'Voir la ressource');
@@ -66,7 +66,7 @@ describe('Repositories', () => {
66
66
  cy.url().should('include', '/repository/create');
67
67
 
68
68
  cy.get('.create-buttons')
69
- .find('.h3.repo-type')
69
+ .find('.repo-type')
70
70
  .should('have.length', 3)
71
71
  .then((repoTypes) => {
72
72
  repoTypes.each(($index, $repoType) => {
@@ -732,6 +732,7 @@ describe('Repositories', () => {
732
732
  }
733
733
 
734
734
  function getRepositoryFromList(repository) {
735
+ waitLoader();
735
736
  return getRepositoriesList()
736
737
  .find('.repository')
737
738
  .contains(repository)
@@ -10,7 +10,7 @@ describe('YASQE and YASR language change validation', () => {
10
10
 
11
11
  afterEach(() => {
12
12
  // Change the language back to English
13
- SparqlSteps.changeLanguage('Anglais');
13
+ SparqlSteps.changeLanguage('en');
14
14
 
15
15
  cy.deleteRepository(repositoryId);
16
16
  })
@@ -24,7 +24,7 @@ describe('YASQE and YASR language change validation', () => {
24
24
  SparqlSteps.getEditorAndResultsBtn().should('contain', 'Editor and results');
25
25
  SparqlSteps.getResultsOnlyBtn().should('contain', 'Results only');
26
26
 
27
- SparqlSteps.changeLanguage('French');
27
+ SparqlSteps.changeLanguage('fr');
28
28
 
29
29
  // The text in the labels should change
30
30
  SparqlSteps.getSparqlQueryUpdateLabel().should('contain', 'Requête et mise à jour SPARQL');
@@ -49,7 +49,7 @@ describe('YASQE and YASR language change validation', () => {
49
49
  SparqlSteps.getTabWithGoogleChartText().should('contain', 'Google Chart');
50
50
  SparqlSteps.getResultsDescription().should('contain', 'Showing results from');
51
51
 
52
- SparqlSteps.changeLanguage('French');
52
+ SparqlSteps.changeLanguage('fr');
53
53
 
54
54
  // The text in the labels should change
55
55
  SparqlSteps.getTabWithTableText().should('contain', 'Tableau');
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.0.0-M3-TR9",
3
+ "version": "2.0.0-M3-RC2",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "start": "cypress open",
7
- "test": "cypress run"
7
+ "test": "cypress run",
8
+ "test:partial": "cypress run --spec \"integration/repository/**\""
8
9
  },
9
10
  "author": {
10
11
  "name": "\"Sirma AI\" JSC, trading as Ontotext",
@@ -3,7 +3,7 @@ class SparqlSteps {
3
3
  static changeLanguage(language) {
4
4
  // Change the language
5
5
  cy.get('#languageGroupDrop').should('be.visible').click();
6
- cy.get('.dropdown-menu .dropdown-item').contains(language).click();
6
+ cy.get('#lang-select-' + language).click();
7
7
  }
8
8
 
9
9
  static createRepoAndVisit(repositoryId, repoOptions = {}) {