cypress-autorecord icon indicating copy to clipboard operation
cypress-autorecord copied to clipboard

Returns `application/json` instead of `text/html`

Open selfagency opened this issue 2 years ago • 1 comments

For some reason when using this plugin, I get the following error in my tests:

CypressError: `cy.visit()` failed trying to load:  http://localhost:3000/search  The `content-type` of the response we received from your web server was:    > `application/json`

selfagency avatar Jun 14 '22 18:06 selfagency

I am facing the same issue.

My guess is that we are using cy.visit to request an html page. However, the response header's content-type is set to "application/json" where instead it should be "text/html".

I'm not sure yet why this issue is only occurring when using cypress-autorecord.

RVledder avatar Jul 11 '22 11:07 RVledder