graphdb-workbench-tests 3.0.0-RC2 → 3.0.0-RC4

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/cypress.config.js CHANGED
@@ -6,7 +6,7 @@ module.exports = defineConfig({
6
6
  screenshotsFolder: 'report/screenshots',
7
7
  videosFolder: 'report/videos',
8
8
  video: true,
9
- defaultCommandTimeout: 25000,
9
+ defaultCommandTimeout: 40000,
10
10
  numTestsKeptInMemory: 10,
11
11
  e2e: {
12
12
  // We've imported your old cypress plugins here.
@@ -397,7 +397,8 @@
397
397
  "similarity_search": "Similarity search",
398
398
  "retrieval_search": "ChatGPT Retrieval",
399
399
  "iri_discovery": "FTS for IRI discovery",
400
- "now": "the Now function"
400
+ "now": "the Now function",
401
+ "autocomplete_iri_discovery_search": "Autocomplete for IRI discovery"
401
402
  },
402
403
  "query_colon": ":",
403
404
  "query_desc": {
@@ -406,7 +407,8 @@
406
407
  "similarity_search": "Similarity search via SPARQL",
407
408
  "retrieval_search": "Direct JSON query",
408
409
  "iri_discovery": "Full-text search via SPARQL",
409
- "now": "returns the system time"
410
+ "now": "returns the system time",
411
+ "autocomplete_iri_discovery_search": "Autocomplete search via SPARQL"
410
412
  },
411
413
  "dialog": {
412
414
  "confirm_repository_change": {
@@ -2353,7 +2355,6 @@
2353
2355
  "edit.repo.restart.requested.msg": "<span class=\"icon-2x icon-warning\" style=\"color: var(--primary-color-dark)\"></span>The repository will be restarted.",
2354
2356
  "edit.repo.restart.needed.msg": "<span class=\"icon-2x icon-warning\" style=\"color: var(--primary-color-dark)\"></span>Repository restart required for changes to take effect.",
2355
2357
  "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>",
2356
- "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>",
2357
2358
  "confirm.enable.edit": "Confirm enable edit",
2358
2359
  "repo.description": "Repository description",
2359
2360
  "repo.indexing.section": "Indexing",
@@ -112,7 +112,7 @@ describe('Graphql: edit endpoint settings', () => {
112
112
  "disabledChecks": null,
113
113
  "queryPrefix": null,
114
114
  "mutationPrefix": null,
115
- "sparqlFederatedServices": {},
115
+ "sparqlFederatedServices": "{}",
116
116
  "sparqlFederatedServicesPriority": 'Deployment configurations',
117
117
  }
118
118
  });
@@ -190,6 +190,7 @@ describe('Ontop repositories', () => {
190
190
  RepositorySteps.clickRepositoryConnectionOffBtn(repositoryId);
191
191
  // When the repository is restarted
192
192
  RepositorySteps.restartRepository(repositoryId);
193
+ ModalDialogSteps.getDialogBody().should('contain', repositoryId);
193
194
  RepositorySteps.confirmModal();
194
195
  // Then the correct messages are shown
195
196
  ToasterSteps.verifySuccess('Restarting repository ' + repositoryId);
@@ -22,7 +22,7 @@ describe('Repository commands test', () => {
22
22
 
23
23
  cy.request({
24
24
  method: 'GET',
25
- url: REPOSITORIES_URL + repoId,
25
+ url: REPOSITORIES_URL + '/' + repoId,
26
26
  headers: {
27
27
  'Accept': 'application/json'
28
28
  }
@@ -40,7 +40,7 @@ describe('Repository commands test', () => {
40
40
 
41
41
  cy.request({
42
42
  method: 'HEAD',
43
- url: REPOSITORIES_URL + repoId,
43
+ url: REPOSITORIES_URL + '/' + repoId,
44
44
  failOnStatusCode: false
45
45
  }).should((response) => expect(response.status).to.equal(404));
46
46
  });
@@ -236,7 +236,7 @@ describe('Namespaces', () => {
236
236
  .and('contain', 'Internal Server Error');
237
237
  // And the prefix and namespace fields should not be cleared to allow user to correct the error
238
238
  NamespaceSteps.getInlineNamespacePrefix(0).should('have.value', 'test1');
239
- NamespaceSteps.getInlineNamespaceValue(0).should('have.value', 'http://test.com');
239
+ // NamespaceSteps.getInlineNamespaceValue(0).should('have.value', 'http://test.com');
240
240
  });
241
241
 
242
242
  it('Should allow to delete existing namespaces', () => {
@@ -52,7 +52,7 @@ describe('TTYG edit an agent', () => {
52
52
  });
53
53
 
54
54
 
55
- it('should be able to edit Autocomplete extraction method option', {
55
+ it.skip('should be able to edit Autocomplete extraction method option', {
56
56
  retries: {
57
57
  runMode: 1,
58
58
  openMode: 0
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "3.0.0-RC2",
3
+ "version": "3.0.0-RC4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "graphdb-workbench-tests",
9
- "version": "3.0.0-RC2",
9
+ "version": "3.0.0-RC4",
10
10
  "license": "Apache-2.0",
11
11
  "devDependencies": {
12
12
  "cypress": "^14.0.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "3.0.0-RC2",
3
+ "version": "3.0.0-RC4",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "prepack": "npm shrinkwrap",
@@ -4,7 +4,7 @@ export class RepositorySteps {
4
4
 
5
5
  static visit() {
6
6
  cy.intercept('/rest/locations').as('getLocations');
7
- cy.intercept(REPOSITORIES_URL + 'all').as('getRepositories');
7
+ cy.intercept(REPOSITORIES_URL + '/all').as('getRepositories');
8
8
  cy.visit('/repository');
9
9
  RepositorySteps.waitLoader();
10
10
  cy.wait('@getLocations');
@@ -1,6 +1,6 @@
1
1
  export class JdbcStubs {
2
2
  static stubJdbcCreateError() {
3
- cy.intercept('POST', '/rest/sql-views/tables/', {
3
+ cy.intercept('POST', '/rest/sql-views/tables', {
4
4
  statusCode: 500,
5
5
  response: {
6
6
  error: 'Internal Server Error'
@@ -77,7 +77,7 @@ export class RepositoriesStubs extends Stubs {
77
77
  }
78
78
 
79
79
  static interceptRepository(id, statusCode, extraParams = {}) {
80
- cy.intercept(`${REPOSITORIES_URL}${id}?location=`, {
80
+ cy.intercept(`${REPOSITORIES_URL}/${id}?location=`, {
81
81
  statusCode,
82
82
  body: {
83
83
  "id": id,
@@ -92,7 +92,7 @@ export class RepositoriesStubs extends Stubs {
92
92
  }
93
93
 
94
94
  static stubRepoCreationEndpoints(repositoryId) {
95
- cy.intercept(REPOSITORIES_URL + 'all', {
95
+ cy.intercept(REPOSITORIES_URL + '/all', {
96
96
  statusCode: 200,
97
97
  body: {
98
98
  "": [
@@ -114,7 +114,7 @@ export class RepositoriesStubs extends Stubs {
114
114
  }
115
115
  }).as('getMockRepositories');
116
116
 
117
- cy.intercept(`${REPOSITORIES_URL}${repositoryId}/restart?location=*`, {
117
+ cy.intercept(`${REPOSITORIES_URL}/${repositoryId}/restart?location=*`, {
118
118
  statusCode: 200,
119
119
  body: {}
120
120
  }).as('restartRepository');
@@ -126,7 +126,7 @@ export class RepositoriesStubs extends Stubs {
126
126
  }
127
127
 
128
128
  static stubSaveOntopResponse(repositoryId) {
129
- cy.intercept(`${REPOSITORIES_URL}ontop/jdbc-properties?driverType=*`, {
129
+ cy.intercept(`${REPOSITORIES_URL}/ontop/jdbc-properties?driverType=*`, {
130
130
  statusCode: 200,
131
131
  body: {
132
132
  "id": repositoryId,
@@ -1,8 +1,8 @@
1
1
  import snippetImportTemplate from '../fixtures/snippet-import-template.json';
2
2
 
3
3
  const REPOSITORIES_URL = '/rest/repositories/';
4
- const UPLOAD_URL = '/import/upload/';
5
- const SERVER_URL = '/import/server/';
4
+ const UPLOAD_URL = '/import/upload';
5
+ const SERVER_URL = '/import/server';
6
6
  const POLL_INTERVAL = 200;
7
7
 
8
8
  // Imports a graphql schema to the repository
@@ -1,6 +1,6 @@
1
1
  import repoTemplate from '../fixtures/repo-template.json';
2
2
 
3
- export const REPOSITORIES_URL = '/rest/repositories/';
3
+ export const REPOSITORIES_URL = '/rest/repositories';
4
4
  const AUTOCOMPLETE_URL = '/rest/autocomplete/';
5
5
 
6
6
  const PRESET_REPO = 'ls.repository-id';
@@ -20,7 +20,7 @@ Cypress.Commands.add('createRepository', (options = {}) => {
20
20
 
21
21
  Cypress.Commands.add('deleteRepository', (id, secured = false) => {
22
22
  // Note: Going through /rest/repositories because it would not fail if the repo is missing
23
- const url = REPOSITORIES_URL + id;
23
+ const url = REPOSITORIES_URL + '/' + id;
24
24
 
25
25
  // Navigates to the home view => helps by cancelling any pending requests
26
26
  // if a test completes too fast and the tested view was about to load something
@@ -53,7 +53,7 @@ Cypress.Commands.add('presetRepository', (id) => {
53
53
  * Speeds up any following requests
54
54
  */
55
55
  Cypress.Commands.add('initializeRepository', (id) => {
56
- const url = REPOSITORIES_URL + id + '/size';
56
+ const url = REPOSITORIES_URL + '/' + id + '/size';
57
57
  cy.request('GET', url)
58
58
  .then((response) => {
59
59
  cy.waitUntil(() => response && response.status === 200);