Cypress fixes

This commit is contained in:
Jamie Curnow
2020-08-06 12:47:24 +10:00
parent 9ce4c3fe2f
commit bf2f13443f
9 changed files with 721 additions and 566 deletions

View File

@ -2,17 +2,15 @@
describe('Basic API checks', () => {
it('Should return a valid health payload', function () {
cy.wait(2000);
cy.task('backendApiGet', {
path: '/api/',
}).then((data) => {
// Check the swagger schema:
cy.validateSwaggerSchema('get', '/', data);
cy.validateSwaggerSchema('get', 200, '/', data);
});
});
it('Should return a valid schema payload', function () {
cy.wait(2000);
cy.task('backendApiGet', {
path: '/api/schema',
}).then((data) => {