mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 05:18:12 -05:00
f48e1b46a8
which works with proxies
21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
/// <reference types="cypress" />
|
|
|
|
describe('Basic API checks', () => {
|
|
it('Should return a valid health payload', function () {
|
|
cy.task('backendApiGet', {
|
|
path: '/api/',
|
|
}).then((data) => {
|
|
// Check the swagger schema:
|
|
cy.validateSwaggerSchema('get', 200, '/', data);
|
|
});
|
|
});
|
|
|
|
it('Should return a valid schema payload', function () {
|
|
cy.task('backendApiGet', {
|
|
path: '/api/schema?ts=' + Date.now(),
|
|
}).then((data) => {
|
|
expect(data.openapi).to.be.equal('3.1.0');
|
|
});
|
|
});
|
|
});
|