filiphric / cypress-plugin-api

Cypress plugin to show your API information in the Cypress UI runner
ISC License
250 stars 33 forks source link

UI view doesnt show last response body and header in test replay in cypress cloud #130

Open pablosmalys opened 7 months ago

pablosmalys commented 7 months ago

When I have series of api calls using cy.api command I can not see response body and header of last request. I can see request body and header only. All api calls before are complete - with response body & headers. On screenshot you can see, that I am pinned to cy.log command, so I would expect that response of last POST request will be fully visible.

Issue occurs in safari Version 17.1

cypress v : 13.5.1 "cypress-plugin-api": "^2.11.1"

image
alexandreedgeiq commented 7 months ago

I'm facing the same issue mentioned above. And it's hard to debug when we have a failed test in the last request.

martin131 commented 4 months ago

same problem

martin131 commented 4 months ago

It looks like it is not working only in Electron, works for me in Chrome 🤔

filiphric commented 4 days ago

yeah the timing of Snapshots in Cypress is super hard to work with. I’ll need some time to dive into this. right now I’m implementing a very hacky solution where after a response comes back from server, it renders an element and I use cy.get() to assert is there, and then do the snapshot. based on this report it seems this is still not good enough.

I’ll investigate in the following days and will give you some updates