I have an app with select element, when changing the select value, the page makes an XHR request to load some data and insert it to a table. I want cypress to wait till the request end, and after the data rendered on the table, then to check the number of table rows.
this is the code I currently have:
cy.get('[name="pageselct"]').select('300'); // fire a request to load data
// the below line get executed before the data actually loaded:
const totalTableRows = cy.get('#listingsData > tr').length;
how can I achieve it?