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

JavaScript error in history.js: $(...).tooltip is not a function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • junit-plugin
    • None
    • Jenkins 2.263.1
      JUnit Plugin 1.48
      ECharts API Plugin 4.9.0-2
      Microsoft Edge Version 87.0.664.75 (Official build) (64-bit)

      At https://REDACTED/jenkins/job/REDACTED/job/master/327/testReport/history/, Microsoft Edge developer console shows the following:

      jquery.min.js:2 jQuery.Deferred exception: $(...).tooltip is not a function TypeError: $(...).tooltip is not a function
          at HTMLDocument.<anonymous> (https://REDACTED/jenkins/static/316c5f91/plugin/junit/history/history.js:10:38)
          at e (https://REDACTED/jenkins/static/316c5f91/plugin/jquery3-api/webjars/jquery.min.js:2:30005)
          at t (https://REDACTED/jenkins/static/316c5f91/plugin/jquery3-api/webjars/jquery.min.js:2:30307) undefined
      
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/d8212cb1-f52d-4a86-b595-aa4425e1094c/getTestDurationTrend".
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/0a01b1f5-79bd-41e3-a007-f6fb850ba950/getTestResultTrend".
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/0a01b1f5-79bd-41e3-a007-f6fb850ba950/getTestDurationTrend".
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/8e50018f-d955-4ea8-8015-3082ba0009c6/getTestDurationTrend".
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/d8212cb1-f52d-4a86-b595-aa4425e1094c/getTestResultTrend".
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/8e50018f-d955-4ea8-8015-3082ba0009c6/getTestResultTrend".
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/ea372422-4d36-4f4e-b661-5e2114cb9eaa/getTestDurationTrend".
      prototype.js:1585 XHR finished loading: POST "https://REDACTED/jenkins/$stapler/bound/ea372422-4d36-4f4e-b661-5e2114cb9eaa/getTestResultTrend".
      
      jquery.min.js:2 Uncaught TypeError: $(...).tooltip is not a function
          at HTMLDocument.<anonymous> (VM2605 history.js:10)
          at e (jquery.min.js:2)
          at t (jquery.min.js:2)
      

      It seems the $('[data-toggle="tooltip"]').tooltip(); has been copied to history.js from issues-detail.js in warnings-ng-plugin, which has data-toggle="tooltip" attributes in several files, such as property.jelly. However, JUnit Plugin does not seem to set this attribute anywhere; the only occurrences of of "toggle" and "tooltip" are in history.js itself and in a comment in AbstractTestResultAction.java. Therefore, I think the tooltip call is not useful in JUnit Plugin and should be removed.

      (This caught my eye while I was trying to find what causes JENKINS-64586.)

            timja Tim Jacomb
            kon Kalle Niemitalo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: