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

Fix layout-content-page-editor-web test exceptions

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Completed
    • None
    • None
    • Pages > Page Editor

    Description

      Although test are passing, there are some exceptions in the logs

       

      $ liferay-npm-scripts test apps/layout/layout-content-page-editor-web
      Using NODE_ENV: "test"
      PASS test/page_editor/app/components/undo/undoHistory.test.js
      PASS test/page_editor/app/plugins/page-structure/components/item-configuration-panels/ContainerStylesPanel.test.js
      (node:42776) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property `defaultStyleBookEntryImagePreviewURL` of 'undefined' or 'null'.
      (node:42776) 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:42776) [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.
      (node:42776) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property `tokenValues` of 'undefined' or 'null'.
      (node:42776) 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: 2)
      PASS test/page_editor/app/plugins/page-design-options/components/PageDesignOptionsSidebar.test.js
      PASS test/page_editor/app/components/layout-data-items/getAllPortals.test.jsTest Suites: 51 passed, 51 total
      Tests:       1 todo, 257 passed, 258 total
      Snapshots:   0 total
      Time:        9.563s
      Ran all test suites matching /apps\/layout\/layout-content-page-editor-web/i.
      

      Attachments

        Activity

          People

            team-echo Product Team Echo
            victor.galan Victor Galan
            SE Support SE Support
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package