Skip to content

Commit

Permalink
Fix Cypress check order (#430)
Browse files Browse the repository at this point in the history
* Cypress: Update dependencies, migrate folder structure for cypress v10+

* Cypress - Move dep to dev dependency

* Cypress: tidy up lingering unnecessary package.json info

* Cypress: Add skeleton test classes for v4 endpoints

* Add basic tests for v4 establishment endpoints

* Add basic v4 trusts endpoints tests

* Add more checks for trust and endpoint tests

* Cypress: Reorder response checks from bulk trust endpoint
  • Loading branch information
cshnimble authored Nov 29, 2023
1 parent 53ce0ca commit e8daa6c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CypressTests/cypress/e2e/v4/trusts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
})
})
})
Expand Down

0 comments on commit e8daa6c

Please sign in to comment.