filiphric / cypress-plugin-api

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

Specification with 2 or more tests shows only last test response #83

Open guilhermesousa-cwi opened 1 year ago

guilhermesousa-cwi commented 1 year ago

Hello !

1 - When running just one test, it shows the answer. image

2 - When running two tests, and clicking on the body of the first one, it shows the response of the last test. image

 "cypress": "^11.2.0".
 "cypress-plugin-api": "^2.6.1"
filiphric commented 1 year ago

Hey @guilhermesousa-cwi, thanks for the report! I’ll take a look at it

filiphric commented 1 year ago

Hey @guilhermesousa-cwi I thought I understood the issue, but I realized I don’t 😅 the place you clicked will actually not show the previous test. you need to click on the "POST" command on the timeline, which will show the snapshot of the request in your previous test

guilhermesousa-cwi commented 1 year ago

Hello.

Regarding the evidence, I had marked it in the wrong place. But it was clicking method.

I noticed something, in electron it has this behavior. In google chrome no.

https://i.imgur.com/62uPWDU.png

jamiedaly04 commented 1 year ago

Seeing the same issue on my side, whereby this issue exists in electron. Chrome is also working okay for me too 👍

nehemias-lione commented 1 year ago

Hi, I confirm that the error occurs with electron. Even using snapshotOnly: true doesn't work.