Skip to content

PUT requests do not work #70

Description

@Jamesking56

Hi,

I have a route which accepts PUT only which I'd like to call in my Cypress test but it doesn't seem to work when I use cy.visit():

cy.visit({ route: 'my-route', params: { comment: 1 } });
```

I get this error:

```
CypressError: `cy.visit()` was called with an invalid method: `PUT`. Method can only be `GET` or `POST`.
```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions