graphdb-workbench-tests 2.3.0-TR7 → 2.3.0-TR8

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.
@@ -66,7 +66,7 @@ describe('Repositories', () => {
66
66
  }
67
67
 
68
68
  it('create repository page should list available repository types options', () => {
69
- let expectedRepoTypes = ['GraphDB Repository', 'Ontop Virtual SPARQL', 'FedX Virtual SPARQL'];
69
+ const expectedRepoTypes = ['GraphDB Repository', 'Ontop Virtual SPARQL', 'FedX Virtual SPARQL'];
70
70
  createRepository();
71
71
  cy.url().should('include', '/repository/create');
72
72
 
@@ -241,7 +241,7 @@ describe('Repositories', () => {
241
241
 
242
242
  // Wait for redirection to previous '/repository'
243
243
  cy.waitUntil(() =>
244
- cy.url().then(url => url === (Cypress.config('baseUrl') + '/repository')));
244
+ cy.url().then((url) => url === (Cypress.config('baseUrl') + '/repository')));
245
245
 
246
246
  // Connect to the first repo via the connection icon
247
247
  // Note: Not using within() because the whole row will be re-rendered & detached
@@ -465,7 +465,7 @@ describe('Repositories', () => {
465
465
  additionalProperties: {
466
466
  "label": "Additional Ontop/JDBC properties",
467
467
  "name": "additionalProperties",
468
- "value": ""
468
+ "value": "prop1=value1\nprop2=value2"
469
469
  }
470
470
  }
471
471
  };
@@ -478,6 +478,12 @@ describe('Repositories', () => {
478
478
 
479
479
  cy.reload(); //refresh page as the virtual repo is not visible in the UI when created with the request
480
480
 
481
+ editRepository(virtualRepoName);
482
+
483
+ // Additional Ontop Properties field should be visible and populated correctly
484
+ getAdditionalPropertiesTextArea().should('be.visible');
485
+ getAdditionalPropertiesTextArea().should('have.value', 'prop2=value2\nprop1=value1');
486
+
481
487
  //Check workbench restricted sections when connected to an Ontop repository
482
488
  selectRepoFromDropdown(virtualRepoName);
483
489
  cy.visit("/import");
@@ -694,8 +700,8 @@ describe('Repositories', () => {
694
700
  getRepositoryFromList(repositoryId)
695
701
  .should('be.visible')
696
702
  .find('.repository-status .text-secondary')
697
- .then($el => $el)
698
- .then($el => $el && $el.text() === status));
703
+ .then(($el) => $el)
704
+ .then(($el) => $el && $el.text() === status));
699
705
  }
700
706
 
701
707
  function getRepositoriesList() {
@@ -795,6 +801,10 @@ describe('Repositories', () => {
795
801
  return getRepositoryCreateForm().find('#ruleset');
796
802
  }
797
803
 
804
+ function getAdditionalPropertiesTextArea() {
805
+ return getRepositoryCreateForm().find('#additionalProperties');
806
+ }
807
+
798
808
  function getRepositoryDisableSameAsCheckbox() {
799
809
  return getRepositoryCreateForm().find('#disableSameAs');
800
810
  }
@@ -905,7 +915,7 @@ describe('Repositories', () => {
905
915
  return cy.get('#ontop-content');
906
916
  }
907
917
 
908
- function getDatabaseDriver(){
918
+ function getDatabaseDriver() {
909
919
  return cy.get('#driverType');
910
920
  }
911
921
 
@@ -953,13 +963,13 @@ describe('Repositories', () => {
953
963
  compareDriverDownloadUrl(downloadLink);
954
964
  }
955
965
 
956
- function compareDriverDownloadUrl(expectedUrl){
966
+ function compareDriverDownloadUrl(expectedUrl) {
957
967
  cy.get('.uri')
958
968
  .should('be.visible')
959
969
  .and('have.attr', 'href', expectedUrl);
960
970
  }
961
971
 
962
- function getSHACLRepositoryCheckbox(){
972
+ function getSHACLRepositoryCheckbox() {
963
973
  return cy.get('#isShacl');
964
974
  }
965
975
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.3.0-TR7",
3
+ "version": "2.3.0-TR8",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "start": "cypress open",