From d437c6b743ad721505deb3568258d4eb7346d438 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Mon, 24 Jul 2023 13:02:06 +1000 Subject: [PATCH] Fix test --- test/cypress/e2e/api/Users.cy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cypress/e2e/api/Users.cy.js b/test/cypress/e2e/api/Users.cy.js index cb32676..6545094 100644 --- a/test/cypress/e2e/api/Users.cy.js +++ b/test/cypress/e2e/api/Users.cy.js @@ -44,7 +44,7 @@ describe('Users endpoints', () => { it('Should be able to get all users with filters A', function() { cy.task('backendApiGet', { token: token, - path: '/api/users?sort=id.desc&name:starts=c&name:ends=e' + path: '/api/users?sort=created_at.desc&name:starts=c&name:ends=e' }).then((data) => { cy.validateSwaggerSchema('get', 200, '/users', data); expect(data).to.have.property('result'); @@ -56,7 +56,7 @@ describe('Users endpoints', () => { it('Should be able to get all users with filters B', function() { cy.task('backendApiGet', { token: token, - path: '/api/users?sort=id&id:in=1,2,3,4,5' + path: '/api/users?sort=created_at&id:in=1,2,3,4,5' }).then((data) => { cy.validateSwaggerSchema('get', 200, '/users', data); expect(data).to.have.property('result'); @@ -68,7 +68,7 @@ describe('Users endpoints', () => { it('Should be able to get all users with filters C', function() { cy.task('backendApiGet', { token: token, - path: '/api/users?sort=id&name:ends=xxxxxxxxxxxxx' + path: '/api/users?sort=name.asc&name:ends=xxxxxxxxxxxxx' }).then((data) => { cy.validateSwaggerSchema('get', 200, '/users', data); expect(data).to.have.property('result');