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 for document view
✓ model for workflow task
(node:2460) UnhandledPromiseRejectionWarning: AssertionError: TypeError: Cannot read property 'type' of undefined
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.