I am currently working to improve some Dusk browser tests that are run against some software provided by a 3rd party vendor.
The software in question has a tendency to timeout...when that happens, the user is presented with a modal overlay with a link prompting them to resend the ajax request.
I want to "listen" for the presence of this overlay (that occurs intermittently), and when it occurs, I want Dusk to click the link inside of it.
The steps/assertions occurring in my test need to continue running while I listen for this overlay.
Suggestions on how I can achieve this?