Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5087

Fix Designer tests for workflow layout generation failing silently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.5.0
    • Component/s: Studio Designer

      Description

      After resolving NXS-4912, we now resolve global variable fields for workflows properly, scaffolding them only if they are available in the workflow schema and if the workflow node is using them. This introduced a silent test failure (testing the model for the workflow task layout) on all target platforms. It can be seen when the tests are run:

       Model Generator
       ✓ model for document view
       ✓ model for workflow task
      (node:2460) UnhandledPromiseRejectionWarning: AssertionError: TypeError: Cannot read property 'type' of undefined
       at /Users/mnixo/Repositories/nos/studio/nuxeo-view-designer/test/test-engine.js:80:30
       at process._tickCallback (internal/process/next_tick.js:68:7)
      (node:2460) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      (node:2460) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      

      Instead of failing the tests, the execution proceeds normally.
      The goal is to prevent silent failures to happen again and to fix the issue with the workflow task layout scaffold.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h