cypress icon indicating copy to clipboard operation
cypress copied to clipboard

PUT requests do not work

Open Jamesking56 opened this issue 1 year ago • 1 comments

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`.
```

Jamesking56 avatar Sep 18 '22 14:09 Jamesking56