Skip to content

Commit

Permalink
feat: cypress test for public-node version property
Browse files Browse the repository at this point in the history
  • Loading branch information
marchrius committed Jan 29, 2025
1 parent 7e011d3 commit 4c32fce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/cypress/e2e/01-test-public-node.cy.ts
Original file line number Diff line number Diff line change
@@ -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;
});
});
});

0 comments on commit 4c32fce

Please sign in to comment.