graphdb-workbench-tests 4.0.0-TR4 → 4.0.0-TR5

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.
@@ -122,9 +122,8 @@ describe('Import user data: File upload', () => {
122
122
  ImportSettingsDialogSteps.getDialog().should('be.visible');
123
123
  ImportSettingsDialogSteps.import();
124
124
  // Then I should see the uploaded file - it becomes first in the list
125
- // TODO: timestamps currently seems to not be changed on reimport
126
- ImportUserDataSteps.checkImportedResourceByIndex(0, 'jsonld.jsonld');
127
- ImportUserDataSteps.checkImportedResourceByIndex(1, 'bnodes.ttl');
125
+ ImportUserDataSteps.checkImportedResourceByIndex(0, 'bnodes.ttl');
126
+ ImportUserDataSteps.checkImportedResourceByIndex(1, 'jsonld.jsonld');
128
127
  // When I override the second file
129
128
  ImportUserDataSteps.selectFile(file2);
130
129
  FileOverwriteDialogSteps.overwrite();
@@ -2,6 +2,7 @@ import {RepositorySteps} from "../../steps/repository-steps";
2
2
  import {OntopRepositorySteps} from "../../steps/ontop-repository-steps";
3
3
  import {ToasterSteps} from "../../steps/toaster-steps";
4
4
  import {ModalDialogSteps} from "../../steps/modal-dialog-steps";
5
+ import {RepositoriesStubs} from '../../stubs/repositories/repositories-stubs.js';
5
6
 
6
7
  describe('Repository rename restrictions', () => {
7
8
 
@@ -34,13 +35,14 @@ describe('Repository rename restrictions', () => {
34
35
  });
35
36
 
36
37
  it('should not allow renaming of an Ontop repository', () => {
38
+ RepositoriesStubs.spyGetRepository(repositoryId);
37
39
  // Given there is an Ontop repository.
38
40
  createOntopRepository(repositoryId);
39
41
 
40
42
  // When I open its edit page.
41
43
  RepositorySteps.visit();
42
44
  RepositorySteps.editRepository(repositoryId);
43
-
45
+ cy.wait('@getRepository');
44
46
  // Then the repository id should be rendered as read only,
45
47
  RepositorySteps.getGDBIdInput()
46
48
  .should('have.value', repositoryId)
@@ -62,6 +64,7 @@ describe('Repository rename restrictions', () => {
62
64
  });
63
65
 
64
66
  it('should not allow renaming of a FedX repository', () => {
67
+ RepositoriesStubs.spyGetRepository(repositoryId);
65
68
  // Given there is a FedX repository.
66
69
  cy.createRepository({id: memberRepositoryId});
67
70
  createFedxRepository(repositoryId, memberRepositoryId);
@@ -69,6 +72,7 @@ describe('Repository rename restrictions', () => {
69
72
  // When I open its edit page.
70
73
  RepositorySteps.visit();
71
74
  RepositorySteps.editRepository(repositoryId);
75
+ cy.wait('@getRepository');
72
76
 
73
77
  // Then the repository id should be rendered as read only,
74
78
  RepositorySteps.getGDBIdInput()