medic / angular10-migration

0 stars 0 forks source link

Flacky e2e test Submit Enketo form submits on reports tab #133

Closed dianabarsan closed 2 years ago

dianabarsan commented 3 years ago

This test sometimes fails with this error:

1) Submit Enketo form submits on reports tab
  - Failed: visibilityOf failed in 10 seconds By(css selector, #reports-content .details ul li:first-child p)
  Wait timed out after 10013ms

image

example suite: https://github.com/medic/cht-core/runs/1858217459?check_suite_focus=true

newtewt commented 3 years ago

I've pushed a change to use the clickElementNative in an attempt to fix the flakey ness. As part of this I've also been reviewing the test file the executes before. I think it(docs-by-replication-key-view.js) could be cleaned up a bit but I want to see if this fixes it and come back if need be.

dianabarsan commented 3 years ago

I've just seen this test fail on a very fresh branch, locally: image

dianabarsan commented 3 years ago

I think I've found the culprit :)