Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-204

Remove jquery from nuxeo-elements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0, 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: Core

      Description

      it is useless and with nuxeo-ui-elements, it is loaded twice causing sometimes jquery not found.'

      It causes random bugs on CI:
      https://qa.nuxeo.org/jenkins/job/master/job/nuxeo-ui-elements-master/192/console

      09:23:48 Selenium server running on port 39896
      09:23:48 Web server running on port 2000 and serving from /opt/jenkins/workspace/master/nuxeo-ui-elements-master
      09:23:49 chrome 54                Beginning tests via http://localhost:2000/components/nuxeo-ui-elements-master/generated-index.html?cli_browser_id=0
      09:23:49 chrome failed to maximize
      09:23:50 chrome 54                Tests failed: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function
      09:23:50      HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264
      09:23:50             HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75
      09:23:50   HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455
      09:23:50       HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445
      09:23:50        HTMLElement._readySelf at /components/polymer/polymer-mini.html:88
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:75
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50 Test run ended in failure: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function
      09:23:50      HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264
      09:23:50             HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75
      09:23:50   HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455
      09:23:50       HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445
      09:23:50        HTMLElement._readySelf at /components/polymer/polymer-mini.html:88
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:75
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50 
      09:23:50 chrome 54 (error)                     
      09:23:50 
      09:23:50 Error: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function
      09:23:50      HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264
      09:23:50             HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75
      09:23:50   HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455
      09:23:50       HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445
      09:23:50        HTMLElement._readySelf at /components/polymer/polymer-mini.html:88
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:75
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50 
      09:23:50 error:   cli runtime exception: Error: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function
      09:23:50      HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264
      09:23:50             HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75
      09:23:50   HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455
      09:23:50       HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445
      09:23:50        HTMLElement._readySelf at /components/polymer/polymer-mini.html:88
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:75
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50 error:   Error: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function
      09:23:50      HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264
      09:23:50             HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75
      09:23:50   HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455
      09:23:50       HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445
      09:23:50        HTMLElement._readySelf at /components/polymer/polymer-mini.html:88
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:75
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50     HTMLElement._readyClients at /components/polymer/polymer-mini.html:82
      09:23:50            HTMLElement._ready at /components/polymer/polymer-mini.html:70
      09:23:50     at /opt/jenkins/workspace/master/nuxeo-ui-elements-master/node_modules/polymer-cli/node_modules/web-component-tester/runner/steps.js:151:27
      09:23:50     at next (native)
      09:23:50     at fulfilled (/opt/jenkins/workspace/master/nuxeo-ui-elements-master/node_modules/polymer-cli/node_modules/web-component-tester/runner/steps.js:4:58)
      09:23:50     at process._tickCallback (node.js:369:9)
      09:23:50 Build step 'Execute shell' marked build as failure
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: