File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/cypress/integration/api Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference types="Cypress" />
2
2
3
+ // Settings are stored lowercase in the backend
4
+
3
5
describe ( 'Settings endpoints' , ( ) => {
4
6
let token ;
5
7
let settingName ;
@@ -41,7 +43,7 @@ describe('Settings endpoints', () => {
41
43
// Check the swagger schema:
42
44
cy . validateSwaggerSchema ( 'get' , 200 , '/settings/{name}' , data ) ;
43
45
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 ( ) ) ;
45
47
expect ( data . result . id ) . to . be . greaterThan ( 0 ) ;
46
48
} ) ;
47
49
} ) ;
@@ -57,7 +59,7 @@ describe('Settings endpoints', () => {
57
59
// Check the swagger schema:
58
60
cy . validateSwaggerSchema ( 'put' , 200 , '/settings/{name}' , data ) ;
59
61
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 ( ) ) ;
61
63
expect ( data . result . id ) . to . be . greaterThan ( 0 ) ;
62
64
} ) ;
63
65
} ) ;
You can’t perform that action at this time.
0 commit comments