mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix settings test
This commit is contained in:
parent
1c57a9b2a5
commit
4dd6fd06f4
@ -1,5 +1,7 @@
|
||||
/// <reference types="Cypress" />
|
||||
|
||||
// Settings are stored lowercase in the backend
|
||||
|
||||
describe('Settings endpoints', () => {
|
||||
let token;
|
||||
let settingName;
|
||||
@ -41,7 +43,7 @@ describe('Settings endpoints', () => {
|
||||
// Check the swagger schema:
|
||||
cy.validateSwaggerSchema('get', 200, '/settings/{name}', data);
|
||||
expect(data.result).to.have.property('id');
|
||||
expect(data.result).to.have.property('name', settingName);
|
||||
expect(data.result).to.have.property('name', settingName.toLowerCase());
|
||||
expect(data.result.id).to.be.greaterThan(0);
|
||||
});
|
||||
});
|
||||
@ -57,7 +59,7 @@ describe('Settings endpoints', () => {
|
||||
// Check the swagger schema:
|
||||
cy.validateSwaggerSchema('put', 200, '/settings/{name}', data);
|
||||
expect(data.result).to.have.property('id');
|
||||
expect(data.result).to.have.property('name', settingName);
|
||||
expect(data.result).to.have.property('name', settingName.toLowerCase());
|
||||
expect(data.result.id).to.be.greaterThan(0);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user