We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56abd3a commit dd87de6Copy full SHA for dd87de6
cypress/integration/default/api.spec.ts
@@ -5,8 +5,6 @@ describe('Extended API routes', () => {
5
})
6
7
it('returns 404 for scheduled route', () => {
8
- cy.request('/api/hello-scheduled').then((response) => {
9
- expect(response.status).to.equal(404)
10
- })
+ cy.request({ url: '/api/hello-scheduled', failOnStatusCode: false }).its('status').should('equal', 404)
11
12
0 commit comments