Skip to content

Commit 4dd6fd0

Browse files
committed
Fix settings test
1 parent 1c57a9b commit 4dd6fd0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/cypress/integration/api/Settings.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/// <reference types="Cypress" />
22

3+
// Settings are stored lowercase in the backend
4+
35
describe('Settings endpoints', () => {
46
let token;
57
let settingName;
@@ -41,7 +43,7 @@ describe('Settings endpoints', () => {
4143
// Check the swagger schema:
4244
cy.validateSwaggerSchema('get', 200, '/settings/{name}', data);
4345
expect(data.result).to.have.property('id');
44-
expect(data.result).to.have.property('name', settingName);
46+
expect(data.result).to.have.property('name', settingName.toLowerCase());
4547
expect(data.result.id).to.be.greaterThan(0);
4648
});
4749
});
@@ -57,7 +59,7 @@ describe('Settings endpoints', () => {
5759
// Check the swagger schema:
5860
cy.validateSwaggerSchema('put', 200, '/settings/{name}', data);
5961
expect(data.result).to.have.property('id');
60-
expect(data.result).to.have.property('name', settingName);
62+
expect(data.result).to.have.property('name', settingName.toLowerCase());
6163
expect(data.result.id).to.be.greaterThan(0);
6264
});
6365
});

0 commit comments

Comments
 (0)