Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 00a80a7

Browse files
committedAug 19, 2022
chore: fix cypress 404 test
1 parent 56abd3a commit 00a80a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎cypress/integration/default/api.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ describe('Extended API routes', () => {
44
expect(response.status).to.equal(202)
55
})
66
})
7-
it('returns 404 for scheduled route', () => {
8-
cy.request('/api/hello-scheduled').then((response) => {
9-
expect(response.status).to.equal(404)
10-
})
7+
it('correctly returns 404 for scheduled route', () => {
8+
cy.request({ url: '/api/hello-scheduled', failOnStatusCode: false }).its('status').should('equal', 404)
119
})
1210
})

0 commit comments

Comments
 (0)
Please sign in to comment.