-
Bug
-
Resolution: Fixed
-
Major
-
None
Summary
io.blueocean.ath.offline.BitbucketServerTest#testCreationNoJenkinsfile is failing on a somewhat regular basis (example here). Let's fix it.
Details
The pattern seems to be:
- Retry 1: Caused by: org.openqa.selenium.NoSuchElementException:
no such element: Unable to locate element: {"method":"css selector","selector":"textarea[placeholder="What changed?"]"} - Retry 2: Caused by: org.openqa.selenium.UnhandledAlertException:
unexpected alert open: {Alert text : There are unsaved changes, discard them?} - Retry 3: Caused by: org.openqa.selenium.UnhandledAlertException:
unexpected alert open: {Alert text : There are unsaved changes, discard them?}
I need to, at a minimum, figure out why we're trying to bail out on the edit before saving the changes on the second and third attempts. Better still would be to get the first attempt to actually, you know, work all the time.
Seems like the first failure is probably coming when we call saveBranch(). That's where we'd see the text box with placeholder text of "What changed?" , which is essentially asking you for your commit message. That's the first thing to fix.