graphdb-workbench-tests 2.7.1 → 2.7.2-TR2

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.
@@ -51,7 +51,7 @@ describe('Graphs overview screen validation', () => {
51
51
  * @return a cypress chainer containing the selected page link.
52
52
  */
53
53
  function selectPage(page) {
54
- return cy.get(`.top-pagination ul li a`).contains(page).click();
54
+ return GraphsOverviewSteps.getTopPaginationLinks().contains(page).click();
55
55
  }
56
56
 
57
57
  function selectItemFromMenu(number) {
@@ -66,9 +66,10 @@ describe('Graphs overview screen validation', () => {
66
66
 
67
67
  context('Test graphs overview pagination', () => {
68
68
  it('Should be visible', () => {
69
- cy.get('div[paginations]')
69
+ GraphsOverviewSteps.getPaginations()
70
70
  .should('be.visible')
71
71
  .and('contain', '3');
72
+ GraphsOverviewSteps.getTopPaginationLinks().should('have.length', 5);
72
73
  verifyGraphExistence('The default graph');
73
74
  });
74
75
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.7.1",
3
+ "version": "2.7.2-TR2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "graphdb-workbench-tests",
9
- "version": "2.7.1",
9
+ "version": "2.7.2-TR2",
10
10
  "license": "Apache-2.0",
11
11
  "devDependencies": {
12
12
  "cypress": "^13.3.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.7.1",
3
+ "version": "2.7.2-TR2",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "prepack": "npm shrinkwrap",
@@ -53,4 +53,12 @@ export class GraphsOverviewSteps {
53
53
  static selectJSONLDMode(option) {
54
54
  cy.get('[id=wb-JSONLD-mode]').select(option);
55
55
  }
56
+
57
+ static getTopPaginationLinks() {
58
+ return cy.get('.top-pagination ul li a');
59
+ }
60
+
61
+ static getPaginations() {
62
+ return cy.get('[paginations]');
63
+ }
56
64
  }