FormValidation
API should allow asserting for text in expected location rather than attempting to retrieve the validation area
#815
Labels
What feature do you want to see added?
The
FormValidation
API attempts to select the text in the validation area.acceptance-test-harness/src/main/java/org/jenkinsci/test/acceptance/po/FormValidation.java
Line 67 in 2524148
But nothing in the API says whether it expects content to be there.
If the JavaScript hasn't fired by the time the selenium code executes then it can sometimes fail to find the content causing flakey tests, one such example was worked around in 650531a
My suggested fix would be either:
a) Matchers query element directly for expected text, that way they can retry if text is not what is expected
b) minor change to API to say whether validation content is expected or not, that way it can retry if
getText()
doesn't return what it shouldUpstream changes
No response
The text was updated successfully, but these errors were encountered: