I have following case:
After user uploads a file, there is a table report in the screen. The problem is: the table does not come up automatically, user needs to reload the page and if the file was already processed, the table is shown in screen, if it is still processing, user needs to wait a little bit and reload again.
How do I accomplish this task without using cy.wait() to wait an arbitrary time. I thought something like:
cy.reload().should(() => {
expect(document.querySelectorAll('table')).to.not.be.empty
})
but didn't work