BitbucketServerTest is failing with an eventual UnhandledAlertException

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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:

      1. Retry 1: Caused by: org.openqa.selenium.NoSuchElementException:
        no such element: Unable to locate element: {"method":"css selector","selector":"textarea[placeholder="What changed?"]"}
      2. Retry 2: Caused by: org.openqa.selenium.UnhandledAlertException:
        unexpected alert open: {Alert text : There are unsaved changes, discard them?}
      3. 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.

            Assignee:
            Karl Shultz
            Reporter:
            Karl Shultz
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: