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

ATH test fails on NEW ITEM Wizard on Jenkins 2.7

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Firefox 41, same behaviour detected on 46.
      Mac OSX
    • Similar Issues:

      Description

      When running ATH tests agains Jenkins 2.7 the New Item Wizard fails to enable the OK button after the name is inserted and the type of item selected.
      Some investigation and debugging showed that:

      1. the item name is inserted and stored with jquery, no warning shown. Validation of OK button fails cause the item time has not been selected yet (OK button not shown yet).
      2. the item type is selected
      3. right after selecting the item type a red warning is show on the item name input text ("The field cannot be empty, please enter a valid name")
      4. the OK button is not shown case now the validation fails on the item name (empty).

      If while debugging, you click anywhere on the page after the item type is selected, the red warning goes away and the OK button shown. Sending Keys.TAB with selenium (or changing focus) does not work instead.

      Looks like this condition is false https://github.com/jenkinsci/jenkins/blob/5f9614433ec3bd9057097bbe2af7d445e6cd918e/war/src/main/js/add-item.js#L178.

      The ATH tests are failing here https://github.com/jenkinsci/acceptance-test-harness/blob/master/src/main/java/org/jenkinsci/test/acceptance/po/JobsMixIn.java#L25

        Attachments

          Issue Links

            Activity

            Hide
            varmenise valentina armenise added a comment -

            Jenkins 2.0 seems working instead

            Show
            varmenise valentina armenise added a comment - Jenkins 2.0 seems working instead
            Hide
            recena Manuel Recena Soto added a comment -

            valentina armenise Sure, but after more changes were introduced (ref).

            Show
            recena Manuel Recena Soto added a comment - valentina armenise Sure, but after more changes were introduced ( ref ).
            Hide
            kzantow Keith Zantow added a comment -

            @varmenise have you had a chance to validate this fix?

            Show
            kzantow Keith Zantow added a comment - @varmenise have you had a chance to validate this fix?

              People

              • Assignee:
                kzantow Keith Zantow
                Reporter:
                varmenise valentina armenise
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: