← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2027728] Re: Horizon npm test job failed with jQuery Version >3.x

 

** Changed in: horizon
     Assignee: (unassigned) => Vishal Manchanda (vishalmanchanda)

** Changed in: horizon
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2027728

Title:
  Horizon npm test job failed with jQuery Version >3.x

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  After migrating xstatic-Jquery version >3.x horizon npm test job started failing [1] and [2].
  There is also an open issue reported for this https://github.com/lorenzofox3/lrDragNDrop/issues/15
  Horizon npm job fails with the below error msg:

  Firefox 102.0 (Linux x86_64) ERROR
    An error was thrown in afterAll
    TypeError: window.jQuery.event.props is undefined
    isJqueryEventDataTransfer@/home/zuul/src/opendev.org/openstack/horizon/.tox/npm/lib/python3.9/site-packages/xstatic/pkg/angular_lrdragndrop/data/lrdragndrop.js:5:9
    @/home/zuul/src/opendev.org/openstack/horizon/.tox/npm/lib/python3.9/site-packages/xstatic/pkg/angular_lrdragndrop/data/lrdragndrop.js:8:9
    @/home/zuul/src/opendev.org/openstack/horizon/.tox/npm/lib/python3.9/site-packages/xstatic/pkg/angular_lrdragndrop/data/lrdragndrop.js:184:3
  Firefox 102.0 (Linux x86_64): Executed 645 of 645 ERROR (0 secs / 7.806 secs)
  Firefox 102.0 (Linux x86_64) ERROR
    An error was thrown in afterAll
    TypeError: window.jQuery.event.props is undefined
    isJqueryEventDataTransfer@/home/zuul/src/opendev.org/openstack/horizon/.tox/npm/lib/python3.9/site-packages/xstatic/pkg/angular_lrdragndrop/data/lrdragndrop.js:5:9
    @/home/zuul/src/opendev.org/openstack/horizon/.tox/npm/lib/python3.9/site-packages/xstatic/pkg/angular_lrdragndrop/data/lrdragndrop.js:8:9
    @/home/zuul/src/opendev.org/openstack/horizon/.tox/npm/lib/python3.9/site-packages/xstatic/pkg/angular_lrdragndrop/data/lrdragndrop.js:184:3
  Firefox 102.0 (Linux x86_64): Executed 645 of 645 ERROR (8.359 secs / 7.806 secs)

  ==================== Coverage / Threshold summary =============================
  Statements   : 100% ( 0/0 ) Threshold : 92%
  Branches     : 100% ( 0/0 ) Threshold : 84%
  Functions    : 100% ( 0/0 ) Threshold : 91%
  Lines        : 100% ( 0/0 ) Threshold : 92%
  ================================================================================
  npm ERR! Test failed.  See above for more details.


  [1] https://review.opendev.org/c/openstack/requirements/+/887933
  [2] https://review.opendev.org/c/openstack/horizon/+/886867

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2027728/+subscriptions



References