Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

999 no possible status code when Intercepting API-Request #27567

Closed
MurmelStar opened this issue Aug 16, 2023 · 1 comment · Fixed by #27853
Closed

999 no possible status code when Intercepting API-Request #27567

MurmelStar opened this issue Aug 16, 2023 · 1 comment · Fixed by #27853
Labels
E2E Issue related to end-to-end testing Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.

Comments

@MurmelStar
Copy link

Current behavior

When you try to intercept an API-Request with the status code 999 it gives the following (funny) error message:
image

An invalid StaticResponse was supplied to cy.intercept(). statusCode must be a number between 100 and 999 (inclusive).

You passed: {

  "statusCode": 999

}

100 works btw.

Desired behavior

999 is a possible status code to Intercept like the error message implies.

Test code to reproduce

cy.intercept({method: "GET", url: URI_CLIENT_STATS}, {statusCode: 999})

Cypress Version

12.17.3

Node version

18.17.0

Operating System

windows 10

Debug Logs

No response

Other

No response

@nagash77 nagash77 added E2E Issue related to end-to-end testing Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. labels Aug 16, 2023
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 27, 2023

Released in 13.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.3.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E2E Issue related to end-to-end testing Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants