Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21592

Fix Web UI random failure on IT tests "Cannot read property 'ELEMENT' of null"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: WEBUI-0.8.0
    • Fix Version/s: WEBUI-0.9.0
    • Component/s: Tests, Web UI

      Description

      We often get :

      Error Message
      
      TypeError: Cannot read property 'ELEMENT' of null
      Stacktrace
      
      TypeError: Cannot read property 'ELEMENT' of null
          at DocumentLayout.getField (test/pages/ui/browser/document_layout.js:9:17)
          at DocumentLayout.setFieldValue (test/pages/ui/browser/document_layout.js:19:26)
          at test/features/step_definitions/create_dialog.js:23:66
          at Array.forEach (native)
          at World.<anonymous> (test/features/step_definitions/create_dialog.js:22:18)
          at node_modules/meteor-promise/fiber_pool.js:32:39
          at Object.element (node_modules/webdriverio/build/lib/protocol/element.js:40:43)
          at Object.exec (node_modules/webdriverio/build/lib/helpers/safeExecute.js:28:24)
          at Object.resolve (node_modules/webdriverio/build/lib/webdriverio.js:193:29)
          at lastPromise.then.resolve.call.depth (node_modules/webdriverio/build/lib/webdriverio.js:449:32)
          at _fulfilled (node_modules/q/q.js:834:54)
          at self.promiseDispatch.done (node_modules/q/q.js:863:30)
          at Promise.promise.promiseDispatch (node_modules/q/q.js:796:13)
          at node_modules/q/q.js:556:49
          at runSingle (node_modules/q/q.js:137:13)
          at flush (node_modules/q/q.js:125:13)
          at _combinedTickCallback (internal/process/next_tick.js:67:7)
          at process._tickDomainCallback (internal/process/next_tick.js:122:9)
      

      see for instance:

      Another similar stack:

      Error Message
      
      TypeError: Cannot read property 'ELEMENT' of null
      Stacktrace
      
      TypeError: Cannot read property 'ELEMENT' of null
          at DocumentPage.get (test/pages/ui/browser/document_page.js:52:32)
          at World.<anonymous> (test/features/step_definitions/versions.js:116:5)
          at node_modules/meteor-promise/fiber_pool.js:32:39
          at Object.element (node_modules/webdriverio/build/lib/protocol/element.js:40:43)
          at Object.exec (node_modules/webdriverio/build/lib/helpers/safeExecute.js:28:24)
          at Object.resolve (node_modules/webdriverio/build/lib/webdriverio.js:193:29)
          at lastPromise.then.resolve.call.depth (node_modules/webdriverio/build/lib/webdriverio.js:449:32)
          at _fulfilled (node_modules/q/q.js:834:54)
          at self.promiseDispatch.done (node_modules/q/q.js:863:30)
          at Promise.promise.promiseDispatch (node_modules/q/q.js:796:13)
          at node_modules/q/q.js:556:49
          at runSingle (node_modules/q/q.js:137:13)
          at flush (node_modules/q/q.js:125:13)
          at _combinedTickCallback (internal/process/next_tick.js:67:7)
          at process._tickDomainCallback (internal/process/next_tick.js:122:9)
      

      seen:

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: