You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2022/11/09 18:07:34 UTC

[jena] branch main updated: Change test order

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/main by this push:
     new 242725c88b Change test order
     new c7706b0359 Merge pull request #1607 from afs/cypress-dataset
242725c88b is described below

commit 242725c88bc3f8511ad30ecb984f2c41238bc22c
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Mon Nov 7 20:28:45 2022 +0000

    Change test order
---
 .../jena-fuseki-ui/tests/e2e/specs/datasets.cy.js  | 96 +++++++++++-----------
 1 file changed, 48 insertions(+), 48 deletions(-)

diff --git a/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/datasets.cy.js b/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/datasets.cy.js
index 35f5e98595..f2f281ccf2 100644
--- a/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/datasets.cy.js
+++ b/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/datasets.cy.js
@@ -76,6 +76,54 @@ describe('datasets', () => {
       // Special endpoint that clears the datasets data.
       cy.request('/tests/reset')
     })
+    it('Edits the graph', () => {
+      cy.visit('/#/dataset/a/edit')
+      cy.server()
+      cy.intercept('/a*').as('getGraph')
+      cy
+        .contains('Loading')
+        .should('not.exist')
+      cy
+        .get('h3')
+        .contains('Available Graphs')
+        .should('be.visible')
+      // List the current graphs.
+      cy
+        .get('button')
+        .contains('list current graphs')
+        .click()
+      cy
+        .contains('Loading')
+        .should('not.exist')
+      // Now the table must have the new columns with the graph name and count.
+      cy
+        .get('table.jena-table > thead > tr > th')
+        .eq(0)
+        .should('contain', 'name')
+      cy
+        .get('table.jena-table > thead > tr > th')
+        .eq(1)
+        .should('contain', 'count')
+      cy
+        .get('table.jena-table > tbody > tr > td')
+        .eq(0)
+        .should('contain', 'default')
+      cy
+        .get('table.jena-table > tbody > tr > td')
+        .eq(1)
+        .should('contain', '42')
+      // Clicking on the graph name must now load the contents of the graph into the editor.
+      cy
+        .get('table.jena-table > tbody > tr > td')
+        .eq(0)
+        .find('a')
+        .first()
+        .click()
+      cy.wait('@getGraph')
+      cy
+        .get('.CodeMirror-code')
+        .should('contain', 'Harry Potter and the Goblet of Fire')
+    })
     it('Visits datasets page', () => {
       cy.visit('/')
       cy
@@ -267,53 +315,5 @@ describe('datasets', () => {
         .eq(1)
         .should('contain', '42')
     })
-    it('Edits the graph', () => {
-      cy.visit('/#/dataset/a/edit')
-      cy.server()
-      cy.intercept('/a*').as('getGraph')
-      cy
-        .contains('Loading')
-        .should('not.exist')
-      cy
-        .get('h3')
-        .contains('Available Graphs')
-        .should('be.visible')
-      // List the current graphs.
-      cy
-        .get('button')
-        .contains('list current graphs')
-        .click()
-      cy
-        .contains('Loading')
-        .should('not.exist')
-      // Now the table must have the new columns with the graph name and count.
-      cy
-        .get('table.jena-table > thead > tr > th')
-        .eq(0)
-        .should('contain', 'name')
-      cy
-        .get('table.jena-table > thead > tr > th')
-        .eq(1)
-        .should('contain', 'count')
-      cy
-        .get('table.jena-table > tbody > tr > td')
-        .eq(0)
-        .should('contain', 'default')
-      cy
-        .get('table.jena-table > tbody > tr > td')
-        .eq(1)
-        .should('contain', '42')
-      // Clicking on the graph name must now load the contents of the graph into the editor.
-      cy
-        .get('table.jena-table > tbody > tr > td')
-        .eq(0)
-        .find('a')
-        .first()
-        .click()
-      cy.wait('@getGraph')
-      cy
-        .get('.CodeMirror-code')
-        .should('contain', 'Harry Potter and the Goblet of Fire')
-    })
   })
 })