Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-105026

Uncaught [Invariant Violation: Expected drag drop context] when execute WidgetsSidebar.test.js

    Details

    • Fix Priority:
      3

      Description

      Upstream error on js-unit-jdk8:

      [exec] FAIL test/page_editor/app/plugins/widgets/components/WidgetsSidebar.test.js
       [exec] ??? Console
       [exec] 
       [exec] console.error ../../../node_modules/jsdom/lib/jsdom/virtual-console.js:29
       [exec] Error: Uncaught [Invariant Violation: Expected drag drop context]
       [exec] at reportException (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
       [exec] at invokeEventListeners (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9)
       [exec] at HTMLUnknownElementImpl._dispatch (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9)
       [exec] at HTMLUnknownElementImpl.dispatchEvent (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17)
       [exec] at HTMLUnknownElementImpl.dispatchEvent (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27)
       [exec] at HTMLUnknownElement.dispatchEvent (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21)
       [exec] at Object.invokeGuardedCallbackDev (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:397:16)
       [exec] at invokeGuardedCallback (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:454:31)
       [exec] at beginWork$$1 (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:23217:7)
       [exec] at performUnitOfWork (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:22211:12)
      { Invariant Violation: Expected drag drop context [exec] at invariant (/opt/dev/projects/github/liferay-portal/modules/node_modules/invariant/invariant.js:40:15) [exec] at Object.useDragDropManager (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dnd/lib/cjs/hooks/internal/useDragDropManager.js:11:5) [exec] at Object.useDragSourceMonitor (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dnd/lib/cjs/hooks/internal/drag.js:10:40) [exec] at useDrag (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dnd/lib/cjs/hooks/useDrag.js:17:21) [exec] at Widget (/opt/dev/projects/github/liferay-portal/modules/apps/layout/layout-content-page-editor-web/src/main/resources/META-INF/resources/page_editor/plugins/widgets/components/Widget.js:23:19) [exec] at renderWithHooks (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:15108:18) [exec] at mountIndeterminateComponent (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:17342:13) [exec] at beginWork$1 (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:18486:16) [exec] at HTMLUnknownElement.callCallback (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:347:14) [exec] at invokeEventListeners (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27) [exec] at HTMLUnknownElementImpl._dispatch (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9) [exec] at HTMLUnknownElementImpl.dispatchEvent (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17) [exec] at HTMLUnknownElementImpl.dispatchEvent (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27) [exec] at HTMLUnknownElement.dispatchEvent (/opt/dev/projects/github/liferay-portal/modules/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21) [exec] at Object.invokeGuardedCallbackDev (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:397:16) [exec] at invokeGuardedCallback (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:454:31) [exec] at beginWork$$1 (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:23217:7) [exec] at performUnitOfWork (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:22211:12) [exec] at workLoopSync (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:22185:22) [exec] at renderRoot (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:21878:11) [exec] at runRootCallback (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:21554:20) [exec] at /opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:11353:24 [exec] at unstable_runWithPriority (/opt/dev/projects/github/liferay-portal/modules/node_modules/scheduler/cjs/scheduler.development.js:643:12) [exec] at runWithPriority$2 (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:11305:10) [exec] at flushSyncCallbackQueueImpl (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:11349:7) [exec] at flushSyncCallbackQueue (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:11338:3) [exec] at batchedUpdates$1 (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom.development.js:21648:7) [exec] at act (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1002:14) [exec] at act (/opt/dev/projects/github/liferay-portal/modules/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1418:12) [exec] at Function.fireEvent.(anonymous function).args [as click] (/opt/dev/projects/github/liferay-portal/modules/node_modules/@testing-library/react/dist/index.js:147:28) [exec] at Object.click (/opt/dev/projects/github/liferay-portal/modules/apps/layout/layout-content-page-editor-web/test/page_editor/app/plugins/widgets/components/WidgetsSidebar.test.js:94:13) [exec] at Object.asyncJestTest (/opt/dev/projects/github/liferay-portal/modules/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37) [exec] at resolve (/opt/dev/projects/github/liferay-portal/modules/node_modules/jest-jasmine2/build/queueRunner.js:43:12) [exec] at new Promise (<anonymous>) [exec] at mapper (/opt/dev/projects/github/liferay-portal/modules/node_modules/jest-jasmine2/build/queueRunner.js:26:19) [exec] at promise.then (/opt/dev/projects/github/liferay-portal/modules/node_modules/jest-jasmine2/build/queueRunner.js:73:41) [exec] at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Invariant Violation', framesToPop: 1 }

       

      Full console log:

      https://test-1-2.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/348282/consoleFull

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            della.wang Della Wang (Inactive)
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 21 weeks, 3 days ago

                Packages

                Version Package
                Master