/// const api = () => Cypress.env('API_URL'); describe('Health API', () => { it('GET /api/health returns status and required fields', () => { cy.request(`${api()}/api/health`).then((response) => { expect(response.status).to.eq(200); expect(response.body).to.have.property('status'); expect(response.body.status).to.be.oneOf([ 'healthy', 'degraded', 'unhealthy', ]); expect(response.body).to.have.property('docker'); expect(response.body).to.have.property('active_sessions'); expect(response.body).to.have.property('timestamp'); expect(response.body).to.have.property('resource_limits'); }); }); });