filiphric / cypress-plugin-api

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

Low performance when working with requests returning higher weight of data #106

Open piotrtar opened 1 year ago

piotrtar commented 1 year ago

I noticed that using the plugin to send get request which responds with JSON of weight 298KB causes Cypress Test Runner to crash later in the test when run headed: Screenshot 2023-01-19 at 18 41 16

When run headlessly the test lasts 03:10 min: Screenshot 2023-01-19 at 18 49 53

When changed cy.api() to cy.request() the test lasts 0:30 min: Screenshot 2023-01-19 at 18 50 20

JonathanSTH commented 8 months ago

@filiphric First, thank you for such an awesome plugin! Love using it. Second, I do run into this as well. I'm getting back data at speeds of 7 seconds when using cy.api(). Using cy.request() returns in 630ms. It seems to do with the size of the data. One particular command gets back data with the length of 12,314 items (body.length). Seems to do with actually rendering the actual response data. Perhaps limiting what is shown at first might be an answer? If it is all shown, have an expand that finishes the data?