From 4c32fcee29e481ec722d28a1c208e34749095af7 Mon Sep 17 00:00:00 2001 From: Matteo Gaggiano Date: Wed, 29 Jan 2025 12:54:51 +0100 Subject: [PATCH] feat: cypress test for public-node version property --- client/cypress/e2e/01-test-public-node.cy.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/cypress/e2e/01-test-public-node.cy.ts diff --git a/client/cypress/e2e/01-test-public-node.cy.ts b/client/cypress/e2e/01-test-public-node.cy.ts new file mode 100644 index 0000000000..004e465200 --- /dev/null +++ b/client/cypress/e2e/01-test-public-node.cy.ts @@ -0,0 +1,12 @@ +describe("public node", () => { + it("should load the public node and verify version", () => { + cy.request("/api/public").as('public'); + + cy.get('@public').should((r) => { + expect(r.status).to.eq(200); + expect(r.body).to.have.property('node'); + expect(r.body.node).to.have.property('version'); + expect(r.body.node.version).to.not.be.empty; + }); + }); +}); \ No newline at end of file