@@ -44,7 +44,7 @@ describe('Users endpoints', () => {
44
44
it ( 'Should be able to get all users with filters A' , function ( ) {
45
45
cy . task ( 'backendApiGet' , {
46
46
token : token ,
47
- path : '/api/users?sort=id .desc&name:starts=c&name:ends=e'
47
+ path : '/api/users?sort=created_at .desc&name:starts=c&name:ends=e'
48
48
} ) . then ( ( data ) => {
49
49
cy . validateSwaggerSchema ( 'get' , 200 , '/users' , data ) ;
50
50
expect ( data ) . to . have . property ( 'result' ) ;
@@ -56,7 +56,7 @@ describe('Users endpoints', () => {
56
56
it ( 'Should be able to get all users with filters B' , function ( ) {
57
57
cy . task ( 'backendApiGet' , {
58
58
token : token ,
59
- path : '/api/users?sort=id &id:in=1,2,3,4,5'
59
+ path : '/api/users?sort=created_at &id:in=1,2,3,4,5'
60
60
} ) . then ( ( data ) => {
61
61
cy . validateSwaggerSchema ( 'get' , 200 , '/users' , data ) ;
62
62
expect ( data ) . to . have . property ( 'result' ) ;
@@ -68,7 +68,7 @@ describe('Users endpoints', () => {
68
68
it ( 'Should be able to get all users with filters C' , function ( ) {
69
69
cy . task ( 'backendApiGet' , {
70
70
token : token ,
71
- path : '/api/users?sort=id &name:ends=xxxxxxxxxxxxx'
71
+ path : '/api/users?sort=name.asc &name:ends=xxxxxxxxxxxxx'
72
72
} ) . then ( ( data ) => {
73
73
cy . validateSwaggerSchema ( 'get' , 200 , '/users' , data ) ;
74
74
expect ( data ) . to . have . property ( 'result' ) ;
0 commit comments