Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51372

BitbucketServerTest is failing with an eventual UnhandledAlertException

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.

            kshultz Karl Shultz
            kshultz Karl Shultz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: