2020-02-19 15:55:06 +11:00
|
|
|
/// <reference types="Cypress" />
|
|
|
|
|
|
|
|
|
|
describe('Basic API checks', () => {
|
2022-05-12 08:47:31 +10:00
|
|
|
it('Should return a valid health payload', function() {
|
2020-02-19 15:55:06 +11:00
|
|
|
cy.task('backendApiGet', {
|
|
|
|
|
path: '/api/',
|
|
|
|
|
}).then((data) => {
|
2022-05-12 08:47:31 +10:00
|
|
|
expect(data.result.healthy, 'healthy should equal true').to.equal(true);
|
2020-08-06 12:47:24 +10:00
|
|
|
cy.validateSwaggerSchema('get', 200, '/', data);
|
2020-02-19 15:55:06 +11:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|