cypress
cypress copied to clipboard
PUT requests do not work
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`.
```