graphdb-workbench-tests 2.2.1 → 2.2.2-TR1

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.
@@ -10,7 +10,6 @@ describe('Import screen validation - server files', () => {
10
10
  const FILE_FOR_IMPORT = 'italian_public_schools_links.nt.gz';
11
11
  const TTLS_FOR_IMPORT = 'test_turtlestar.ttls';
12
12
  const TRIGS_FOR_IMPORT = 'test-trigstar.trigs';
13
- const BLANK_NODE_FILE = 'bnodes.ttl';
14
13
 
15
14
  beforeEach(() => {
16
15
  repositoryId = 'server-import-' + Date.now();
@@ -43,14 +42,6 @@ describe('Import screen validation - server files', () => {
43
42
  .verifyImportStatusDetails(FILE_FOR_IMPORT, [CONTEXT, BASE_URI, '"preserveBNodeIds": true,']);
44
43
  });
45
44
 
46
- it('Test import all Server files successfully without changing settings', () => {
47
- ImportSteps
48
- .selectAllServerFiles()
49
- .importServerFiles()
50
- .verifyImportStatus(FILE_FOR_IMPORT, SUCCESS_MESSAGE)
51
- .verifyImportStatus(BLANK_NODE_FILE, SUCCESS_MESSAGE);
52
- });
53
-
54
45
  it('Test import with resetting status of imported file', () => {
55
46
  ImportSteps
56
47
  .selectServerFile(FILE_FOR_IMPORT)
@@ -60,17 +51,6 @@ describe('Import screen validation - server files', () => {
60
51
  .verifyNoImportStatus(FILE_FOR_IMPORT);
61
52
  });
62
53
 
63
- it('Test import with resetting status of all imported files', () => {
64
- ImportSteps
65
- .selectAllServerFiles()
66
- .importServerFiles()
67
- .verifyImportStatus(FILE_FOR_IMPORT, SUCCESS_MESSAGE)
68
- .verifyImportStatus(BLANK_NODE_FILE, SUCCESS_MESSAGE)
69
- .resetStatusOfUploadedFiles()
70
- .verifyNoImportStatus(BLANK_NODE_FILE)
71
- .verifyNoImportStatus(FILE_FOR_IMPORT);
72
- });
73
-
74
54
  it('Test import turtlestar from Server files successfully without changing settings', () => {
75
55
  ImportSteps
76
56
  .selectServerFile(TTLS_FOR_IMPORT)
@@ -10,7 +10,7 @@ describe('Monitor Resources', () => {
10
10
  beforeEach(() => {
11
11
  cy.presetRepository(repositoryId);
12
12
 
13
- cy.visit('/monitor/resources');
13
+ cy.visit('/monitor/system');
14
14
  cy.window();
15
15
 
16
16
  // Wait for loaders to disappear
@@ -127,8 +127,7 @@ describe('Monitor Resources', () => {
127
127
  verifyCharts(charts);
128
128
  });
129
129
 
130
- it('Should show info and no error for non existing cluster', () => {
131
- getErrorsPane().should('not.be.visible');
130
+ it('Should show info for non existing cluster', () => {
132
131
  getTabButtons().eq(2).click();
133
132
  cy.get('.alert-info').should('be.visible').and('contain', 'Charts are not available because GraphDB is not in cluster configuration');
134
133
  });
@@ -64,9 +64,9 @@ describe('Main menu tests', function () {
64
64
  redirect: '/queries'
65
65
  },
66
66
  {
67
- name: 'Resources',
67
+ name: 'System',
68
68
  visible: false,
69
- redirect: '/resources'
69
+ redirect: '/system'
70
70
  }
71
71
  ]
72
72
  },
@@ -0,0 +1,39 @@
1
+ import ImportSteps from '../../steps/import-steps';
2
+
3
+ describe('Import screen validation - server files', () => {
4
+
5
+ let repositoryId;
6
+
7
+ const SUCCESS_MESSAGE = 'Imported successfully';
8
+ const FILE_FOR_IMPORT = 'italian_public_schools_links.nt.gz';
9
+ const BLANK_NODE_FILE = 'bnodes.ttl';
10
+
11
+ beforeEach(() => {
12
+ repositoryId = 'server-import-' + Date.now();
13
+ cy.createRepository({id: repositoryId});
14
+ ImportSteps.visitServerImport(repositoryId);
15
+ });
16
+
17
+ afterEach(() => {
18
+ cy.deleteRepository(repositoryId);
19
+ });
20
+
21
+ it('Test import all Server files successfully without changing settings', () => {
22
+ ImportSteps
23
+ .selectAllServerFiles()
24
+ .importServerFiles()
25
+ .verifyImportStatus(FILE_FOR_IMPORT, SUCCESS_MESSAGE)
26
+ .verifyImportStatus(BLANK_NODE_FILE, SUCCESS_MESSAGE);
27
+ });
28
+
29
+ it('Test import with resetting status of all imported files', () => {
30
+ ImportSteps
31
+ .selectAllServerFiles()
32
+ .importServerFiles()
33
+ .verifyImportStatus(FILE_FOR_IMPORT, SUCCESS_MESSAGE)
34
+ .verifyImportStatus(BLANK_NODE_FILE, SUCCESS_MESSAGE)
35
+ .resetStatusOfUploadedFiles()
36
+ .verifyNoImportStatus(BLANK_NODE_FILE)
37
+ .verifyNoImportStatus(FILE_FOR_IMPORT);
38
+ });
39
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.2.1",
3
+ "version": "2.2.2-TR1",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "start": "cypress open",