cypress-plugin-api icon indicating copy to clipboard operation
cypress-plugin-api copied to clipboard

Specification with 2 or more tests shows only last test response

Open guilhermesousa-cwi opened this issue 2 years ago • 5 comments

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"

guilhermesousa-cwi avatar Dec 19 '22 12:12 guilhermesousa-cwi

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

filiphric avatar Dec 19 '22 12:12 filiphric

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

filiphric avatar Dec 20 '22 09:12 filiphric

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

guilhermesousa-cwi avatar Dec 20 '22 16:12 guilhermesousa-cwi

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

jamiedaly04 avatar Jan 09 '23 11:01 jamiedaly04

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

nehemias-lione avatar Jan 16 '23 21:01 nehemias-lione