filiphric / cypress-plugin-api

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

[Request] Scrolling to Payload #58

Closed burakkaygusuz closed 2 years ago

burakkaygusuz commented 2 years ago

Hi Filip! Is it possible the scrolling to related request/response body payload which is right panel, when the clicking to the request endpoint in command log? Thanks.

filiphric commented 2 years ago

Can you please specify what you mean? By default, the plugin should scroll down to last request. On snapshot view, you should be able to see the last request that was made during the snapshot. If not, you should be able to scroll to it

burakkaygusuz commented 2 years ago

When I click on the request I want to monitor, the right panel should scroll up or scroll down to focus on the related payload. If a test includes multiple requests and it doesn't fit on the viewport, I'm having trouble finding the payload I want to monitor. Is it clear enough for you?

Screenshot 2022-11-11 160800

filiphric commented 2 years ago

Hey @burakkaygusuz thanks. I’ve been able to replicate it. I don’t yet have a solution for this, but I’m thinking that maybe I could create a snapshot that would highlight the APi request in the UI