Closed dianabarsan closed 2 years ago
I haven't been able to replicate this (or see an obvious reason why it would happen). The build where I saw it fail was rerun (successfully), so the artifact was lost.
Ok, I found a new build that failed similartly: https://github.com/medic/cht-core/runs/1903188242
Different test but it called the same function, that would redirect to reports. This run should have an artifact available to download, and it looks like the redirect to reports didn't work:
1) Family form Submit Add Family form
- Failed: waitElementToBeVisible timed out looking for By(css selector, *[id="reports-list"])
Wait timed out after 15006ms
I've updated the title of the issue to reflect this.
My suspicion is that some test doesn't await for something that ends up performing a redirect farther down the execution chain, while this other test is running.
I was able to get the error, I'm going to try fixing it 😬
I couldn't reproduce the redirection behaviour but end up fixing a couple of other things. I haven't seen the flaky test back again but moving this ticket back to ToDo in case we get the error again 🤞
Cool, thanks @latin-panda . I've added a new label, so it's clear that reproducing is an issue.
This just happened again in this build: https://github.com/medic/cht-core/runs/1942374212
Yet another manifestation of the same issue:
Example build: https://github.com/medic/cht-core/runs/1901242176#step:18:605