diff --git a/CypressTests/cypress/e2e/v4/trusts.cy.js b/CypressTests/cypress/e2e/v4/trusts.cy.js index 166deb8b3..3d79da3a0 100644 --- a/CypressTests/cypress/e2e/v4/trusts.cy.js +++ b/CypressTests/cypress/e2e/v4/trusts.cy.js @@ -154,10 +154,11 @@ describe('Trusts endpoints tests', () => { }) .then((response) => { expect(response.status).to.eq(200); - expect(response.body[0].name).to.eq(groupName) - expect(response.body[0].ukprn).to.eq(ukprns[0]) - expect(response.body[1].name).to.eq('THE BISHOP FRASER TRUST') - expect(response.body[1].ukprn).to.eq(ukprns[1]) + // Response isn't in UKPRN order + expect(response.body[1].name).to.eq(groupName) + expect(response.body[1].ukprn).to.eq(ukprns[0]) + expect(response.body[0].name).to.eq('THE BISHOP FRASER TRUST') + expect(response.body[0].ukprn).to.eq(ukprns[1]) }) }) })