Skip to content

Commit

Permalink
Added checks on webUI and API health endpoints to E2E testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mluypaert committed Sep 18, 2024
1 parent 3c4693e commit 3724c01
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions webui/cypress/e2e/health-endpoints.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/// <reference types="cypress" />

describe('check all health endpoints', () => {

it('webUI health endpoint should return success', () => {
cy.request(`/health`).then((response) => {
expect(response.status).to.eq(200)
})
})

it('API health endpoint should return success', () => {
cy.request(`${Cypress.env('API_BASE_URL')}/api/health`).then((response) => {
expect(response.status).to.eq(200)
})
})

})

0 comments on commit 3724c01

Please sign in to comment.