graphdb-workbench-tests 3.1.0-WBM-4 → 3.1.0-WBM-6

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.
@@ -3,10 +3,7 @@ import {MoviesGuideSteps} from "../../steps/guides/movies-guide-steps";
3
3
 
4
4
  const MOVIES_FILE_FOR_IMPORT = 'movies.ttl';
5
5
 
6
- /**
7
- * TODO: Fix me. Broken due to migration (Error: Changes in main menu)
8
- */
9
- describe.skip('Interactive guides', () => {
6
+ describe('Interactive guides', () => {
10
7
 
11
8
  let repositoryId;
12
9
 
@@ -25,7 +22,6 @@ describe.skip('Interactive guides', () => {
25
22
 
26
23
  context('Describes "Movies" interactive guide', () => {
27
24
  it('Tests movies interactive guide using "Next" button to the end', () => {
28
-
29
25
  const stepAssertions = [
30
26
  {assert: MoviesGuideSteps.assertExploreClassHierarchyStep1},
31
27
  {assert: MoviesGuideSteps.assertExploreClassHierarchyStep2},
@@ -3,11 +3,7 @@ import {StarWarsGuideSteps} from "../../steps/guides/star-wars-guide-steps";
3
3
 
4
4
  const STAR_WARS_FILE_FOR_IMPORT = 'starwars.ttl';
5
5
 
6
-
7
- /**
8
- * TODO: Fix me. Broken due to migration (Changes in main menu)
9
- */
10
- describe.skip('Describes "Starwars" interactive guide', () => {
6
+ describe('Describes "Starwars" interactive guide', () => {
11
7
 
12
8
  let repositoryId;
13
9
 
@@ -42,6 +42,9 @@ describe('Home page: with selected repository', () => {
42
42
  ActiveRepositoryWidgetSteps.getWidget().should('be.visible');
43
43
  ActiveRepositoryWidgetSteps.getActiveRepository().should('contain', repositoryId);
44
44
  ActiveRepositoryWidgetSteps.getWidgetName().should('contain', 'Active repository');
45
+ ActiveRepositoryWidgetSteps.getTotalStatements().should('contain', 70);
46
+ ActiveRepositoryWidgetSteps.getInferredStatements().should('contain', 70);
47
+ ActiveRepositoryWidgetSteps.getExplicitStatements().should('contain', 0);
45
48
  });
46
49
 
47
50
  it('should not render repository errors widget', () => {
@@ -29,10 +29,6 @@ describe('Home page: without repositories', () => {
29
29
  HomeSteps.getSelectedLanguage().should('contain', 'en');
30
30
  });
31
31
 
32
- it('should not render active repository widget', () => {
33
- HomeSteps.getActiveRepositoryWidget().should('not.exist');
34
- });
35
-
36
32
  it('should render repository errors widget', () => {
37
33
  HomeSteps.getRepositoryErrorsWidget().should('be.visible');
38
34
  RepositoryErrorsWidgetSteps.getInfoMessage().should('contain', 'Some functionalities are not available because you are not connected to any repository.');
@@ -1797,7 +1797,7 @@
1797
1797
  "view.roles.mapping.title": "Roles per Request Mapping",
1798
1798
  "view.register.license.title": "Register GraphDB License",
1799
1799
  "view.register.license.helpInfo": "The Register GraphDB license view is used to set a new GraphDB license. Upload the binary license or copy the license text in the designated text area.",
1800
- "view.existing.license.title": "Current GraphDB license",
1800
+ "view.existing.license.title": "GraphDB license",
1801
1801
  "view.existing.license.helpInfo": "The Current GraphDB license view allows you to check the details of your current GraphDB license, as well as set a new license.",
1802
1802
  "view.similarity.indexes.title": "Similarity indexes",
1803
1803
  "view.similarity.indexes.helpInfo": "Similarity indexes help you look up semantically similar entities and text. Use this view to create, manage and view similarity indexes.",
@@ -2532,6 +2532,7 @@
2532
2532
  "common.show_all": "Show all",
2533
2533
  "common.hide": "Hide",
2534
2534
  "common.learn_more_in_documentation": "Learn more in the GraphDB documentation",
2535
+ "common.unsaved.changes": "You have unsaved changes. Are you sure that you want to exit?",
2535
2536
  "click.to": "Click to",
2536
2537
  "paginator.first.page.label": "First",
2537
2538
  "paginator.last.page.label": "Last",
@@ -2850,7 +2851,7 @@
2850
2851
  "sign.in": "Sign in",
2851
2852
  "sign.in.openid": "Sign in with OpenID",
2852
2853
  "gdb.license.info.header": "GraphDB License Information",
2853
- "supply.license.or.contact.us.warning": "Please supply a valid license. You can obtain a free license for GraphDB Free or an evaluation license for GraphDB Enterprise at <a href='https://www.ontotext.com/products/graphdb/'>Ontotext's website</a>.",
2854
+ "supply.license.or.contact.us.warning": "Please supply a valid license. You can obtain a free license for GraphDB Free or an evaluation license for GraphDB Enterprise at <a rel=\"noopener\" target=\"_blank\" href='https://www.ontotext.com/products/graphdb/#try-graphdb'>Ontotext's website</a>.",
2854
2855
  "remove.license": "Remove license",
2855
2856
  "no.license.restrictions": "Without a valid license, GraphDB works in restricted mode and the only allowed operation is exporting repositories.",
2856
2857
  "no.license": "No license",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "3.1.0-WBM-4",
3
+ "version": "3.1.0-WBM-6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "graphdb-workbench-tests",
9
- "version": "3.1.0-WBM-4",
9
+ "version": "3.1.0-WBM-6",
10
10
  "license": "Apache-2.0",
11
11
  "devDependencies": {
12
12
  "cypress": "^13.17.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "3.1.0-WBM-4",
3
+ "version": "3.1.0-WBM-6",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "prepack": "npm shrinkwrap",
@@ -47,15 +47,15 @@ export class MainMenuSteps {
47
47
  }
48
48
 
49
49
  static getSubmenuAutocomplete() {
50
- return MainMenuSteps.getSubMenuButton("Autocomplete");
50
+ return MainMenuSteps.getSubMenuButton("sub-menu-autocomplete");
51
51
  }
52
52
 
53
53
  static getSubmenuClassHierarchy() {
54
- return MainMenuSteps.getSubMenuButton("Class hierarchy");
54
+ return MainMenuSteps.getSubMenuButton("menu-class-hierarchy");
55
55
  }
56
56
 
57
57
  static getSubmenuVisualGraph() {
58
- return MainMenuSteps.getSubMenuButton("Visual graph");
58
+ return MainMenuSteps.getSubMenuButton("sub-menu-visual-graph");
59
59
  }
60
60
 
61
61
  static clickOnMenu(menuName) {
@@ -5,7 +5,7 @@ export class RepositorySelectorSteps {
5
5
  }
6
6
 
7
7
  static getRepositorySelectorsButton() {
8
- return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.onto-dropdown-button .selector-button');
8
+ return RepositorySelectorSteps.getRepositorySelectorDropdown().find('.onto-dropdown-button .repository-selection');
9
9
  }
10
10
  static openRepositorySelectors() {
11
11
  RepositorySelectorSteps.getRepositorySelectorsButton().click();
@@ -10,4 +10,16 @@ export class ActiveRepositoryWidgetSteps {
10
10
  static getActiveRepository() {
11
11
  return this.getWidget().find('.repo-info-home');
12
12
  }
13
+
14
+ static getTotalStatements() {
15
+ return this.getWidget().find('.total-statements .data-value');
16
+ }
17
+
18
+ static getExplicitStatements() {
19
+ return this.getWidget().find('.explicit-statements .data-value');
20
+ }
21
+
22
+ static getInferredStatements() {
23
+ return this.getWidget().find('.inferred-statements .data-value');
24
+ }
13
25
  }