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

Test suite failure in ListView.es.js - ReferenceError: themeDisplay is not defined

    Details

    • Sprint:
      Data_Engine_7.3_19

      Description

      Testray: https://testray.liferay.com/home/-/testray/case_results/969999416?tab=result

      [exec] FAIL test/js/components/list-view/ListView.es.js
           [exec]   ??? Test suite failed to run
           [exec] 
           [exec]     ReferenceError: themeDisplay is not defined
           [exec] 
           [exec]       19 | 
           [exec]       20 | const EVALUATOR_URL =
           [exec]     > 21 | 	themeDisplay.getPathContext() +
           [exec]          | 	^
           [exec]       22 | 	'/o/dynamic-data-mapping-form-context-provider/';
           [exec]       23 | 
           [exec]       24 | let controller = null;
           [exec] 
           [exec]       at Object.themeDisplay (../../dynamic-data-mapping/dynamic-data-mapping-form-renderer/src/main/resources/META-INF/resources/js/util/evaluation.es.js:21:2)
           [exec]       at Object.<anonymous> (../../dynamic-data-mapping/dynamic-data-mapping-form-renderer/src/main/resources/META-INF/resources/js/store/actions/handlePaginationNextClicked.es.js:15:1)
           [exec]       at Object.<anonymous> (../../dynamic-data-mapping/dynamic-data-mapping-form-builder/src/main/resources/META-INF/resources/js/components/LayoutProvider/LayoutProvider.es.js:17:1)
           [exec]       at Object.<anonymous> (../../dynamic-data-mapping/dynamic-data-mapping-form-builder/src/main/resources/META-INF/resources/js/components/FormBuilder/FormBuilderWithLayoutProvider.es.js:17:1)
           [exec]       at Object.<anonymous> (../../dynamic-data-mapping/dynamic-data-mapping-form-builder/src/main/resources/META-INF/resources/js/index.es.js:15:1)
           [exec]       at Object.<anonymous> (../../data-engine/data-engine-taglib/src/main/resources/META-INF/resources/data_layout_builder/js/data-layout-builder/DataLayoutBuilder.es.js:15:1)
           [exec]       at Object.<anonymous> (../../data-engine/data-engine-taglib/src/main/resources/META-INF/resources/data_layout_builder/js/App.es.js:20:1)
           [exec]       at Object.<anonymous> (../../data-engine/data-engine-taglib/src/main/resources/META-INF/resources/data_layout_builder/js/index.es.js:15:1)
           [exec]       at Object.<anonymous> (src/main/resources/META-INF/resources/js/components/management-toolbar/search/SearchBar.es.js:15:1)
           [exec]       at Object.<anonymous> (src/main/resources/META-INF/resources/js/components/management-toolbar/index.es.js:16:1)
           [exec]       at Object.<anonymous> (src/main/resources/META-INF/resources/js/components/list-view/ListView.es.js:21:1)
           [exec]       at Object.<anonymous> (test/js/components/list-view/ListView.es.js:20:1)
      [exec] Summary of all failing tests
           [exec] FAIL test/components/instance-list-page/modal/bulk-reassign/BulkReassignModal.es.js (14.518s)
           [exec]   ??? The BulkReassignModal component should ??? Render "Select assignees" step with reassignee fetch error and retrying
           [exec] 
           [exec]     TypeError: Cannot convert undefined or null to object
           [exec]         at Function.assign (<anonymous>)
           [exec] 
           [exec]       359 | 		);
           [exec]       360 | 
           [exec]     > 361 | 		fireEvent.click(alertClose);
           [exec]           | 		          ^
           [exec]       362 | 
           [exec]       363 | 		const alertContainer = getByTestId('alertContainer');
           [exec]       364 | 
           [exec] 
           [exec]       at Object.createEvent.(anonymous function) [as click] (../../../../node_modules/@testing-library/dom/dist/events.js:643:12)
           [exec]       at Function.fireEvent.(anonymous function) [as click] (../../../../node_modules/@testing-library/dom/dist/events.js:649:68)
           [exec]       at ../../../../node_modules/@testing-library/react/dist/index.js:148:40
           [exec]       at batchedUpdates$1 (../../../../node_modules/react-dom/cjs/react-dom.development.js:21643:12)
           [exec]       at act (../../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1002:14)
           [exec]       at act (../../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1418:12)
           [exec]       at Function.fireEvent.(anonymous function).args [as click] (../../../../node_modules/@testing-library/react/dist/index.js:147:28)
           [exec]       at Object.click (test/components/instance-list-page/modal/bulk-reassign/BulkReassignModal.es.js:361:13)
           [exec] 
           [exec] FAIL test/components/instance-list-page/modal/single-reassign/SingleReassignModal.es.js
           [exec]   ??? The SingleReassignModal component should ??? Render alert with success message and close modal
           [exec] 
           [exec]     TypeError: Cannot convert undefined or null to object
           [exec]         at Function.assign (<anonymous>)
           [exec] 
           [exec]       147 | 		expect(alertSuccess).toHaveTextContent('this-task-has-been-reassigned');
           [exec]       148 | 
           [exec]     > 149 | 		fireEvent.click(alertClose);
           [exec]           | 		          ^
           [exec]       150 | 
           [exec]       151 | 		const alertContainer = getByTestId('alertContainer');
           [exec]       152 | 		expect(alertContainer.children[0].children.length).toBe(0);
           [exec] 
           [exec]       at Object.createEvent.(anonymous function) [as click] (../../../../node_modules/@testing-library/dom/dist/events.js:643:12)
           [exec]       at Function.fireEvent.(anonymous function) [as click] (../../../../node_modules/@testing-library/dom/dist/events.js:649:68)
           [exec]       at ../../../../node_modules/@testing-library/react/dist/index.js:148:40
           [exec]       at batchedUpdates$1 (../../../../node_modules/react-dom/cjs/react-dom.development.js:21643:12)
           [exec]       at act (../../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1002:14)
           [exec]       at act (../../../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1418:12)
           [exec]       at Function.fireEvent.(anonymous function).args [as click] (../../../../node_modules/@testing-library/react/dist/index.js:147:28)
           [exec]       at Object.click (test/components/instance-list-page/modal/single-reassign/SingleReassignModal.es.js:149:13)

        Attachments

          Activity

            People

            Assignee:
            alex.candido Alex Candido
            Reporter:
            tai.nguyen Tai Nguyen
            Participants of an Issue:
            Recent user:
            Alex Candido
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              32 weeks, 6 days ago

                Packages

                Version Package