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

Fix frontend unit tests on compound documents

    XMLWordPrintable

    Details

      Description

      The frontend unit tests on nuxeo-compound-documents addon always fail and should be fixed.
      The following tests are always failing, from time to time there's also random test:

      [2023-06-19T11:58:42.432Z] SUMMARY:
      [2023-06-19T11:58:42.432Z] ✔ 58 tests completed
      [2023-06-19T11:58:42.432Z] ✖ 2 tests failed
      [2023-06-19T11:58:42.432Z] 
      [2023-06-19T11:58:42.432Z] FAILED TESTS:
      [2023-06-19T11:58:42.432Z]   Test suite from nuxeo-document-tree
      [2023-06-19T11:58:42.432Z]     Interaction with the tree
      [2023-06-19T11:58:42.432Z]       ✖ Should expand a Folderish document with children
      [2023-06-19T11:58:42.432Z]         Safari 16.0 (Mac OS 10.15.7)
      [2023-06-19T11:58:42.432Z]       [object CustomEvent] (undefined:undefined)      dispatchEvent@[native code]      @node_modules/@nuxeo/nuxeo-elements/nuxeo-page-provider.js:363:27      promiseReactionJob@[native code]
      [2023-06-19T11:58:42.432Z]       ✖ Tree should collapse when clicking on a document
      [2023-06-19T11:58:42.432Z]         Safari 16.0 (Mac OS 10.15.7)
      [2023-06-19T11:58:42.432Z]       expected null not to be null      r@node_modules/@esm-bundle/chai/esm/chai.js:2038:26      @node_modules/@esm-bundle/chai/esm/chai.js:196:47      @node_modules/@esm-bundle/chai/esm/chai.js:658:22      e@node_modules/@esm-bundle/chai/esm/chai.js:1304:27      get@[native code]      @test/nuxeo-compound-document-tree.test.js:378:29      asyncFunctionResume@[native code]      @[native code]      promiseReactionJobWithoutPromise@[native code]      promiseReactionJob@[native code]
      [2023-06-19T11:58:42.432Z] TOTAL: 2 FAILED, 58 SUCCESS
      

      After fixing the tests, the github status utests/frontend should be set to required.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: