Skip to content

Commit d437c6b

Browse files
committed
Fix test
1 parent f301811 commit d437c6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cypress/e2e/api/Users.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('Users endpoints', () => {
4444
it('Should be able to get all users with filters A', function() {
4545
cy.task('backendApiGet', {
4646
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'
4848
}).then((data) => {
4949
cy.validateSwaggerSchema('get', 200, '/users', data);
5050
expect(data).to.have.property('result');
@@ -56,7 +56,7 @@ describe('Users endpoints', () => {
5656
it('Should be able to get all users with filters B', function() {
5757
cy.task('backendApiGet', {
5858
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'
6060
}).then((data) => {
6161
cy.validateSwaggerSchema('get', 200, '/users', data);
6262
expect(data).to.have.property('result');
@@ -68,7 +68,7 @@ describe('Users endpoints', () => {
6868
it('Should be able to get all users with filters C', function() {
6969
cy.task('backendApiGet', {
7070
token: token,
71-
path: '/api/users?sort=id&name:ends=xxxxxxxxxxxxx'
71+
path: '/api/users?sort=name.asc&name:ends=xxxxxxxxxxxxx'
7272
}).then((data) => {
7373
cy.validateSwaggerSchema('get', 200, '/users', data);
7474
expect(data).to.have.property('result');

0 commit comments

Comments
 (0)