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

Async callback timeout failure in portal-search-tuning-rankings-web js-unit test

    Details

    • Fix Priority:
      3

      Description

      test/js/components/ResultRankingsForm.es.js is intermittently failing with:

           [exec] > Task :dxp:apps:portal-search-tuning:portal-search-tuning-rankings-web:packageRunTest
           [exec] FAIL test/js/components/ResultRankingsForm.es.js (91.5s)
           [exec]   ??? ResultRankingsForm ??? renders the results ranking items after loading in the hidden tab
           [exec] 
           [exec]     : Timeout - Async callback was not invoked within the 10000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 10000ms timeout specified by jest.setTimeout.Error:
           [exec] 
           [exec]       59 | 	});
           [exec]       60 | 
           [exec]     > 61 | 	it.each`
           [exec]          | 	^
           [exec]       62 | 		tab          | expected
           [exec]       63 | 		${'visible'} | ${['100', '101', '102', '103', '104', '105', '106', '107', '108', '109']}
           [exec]       64 | 		${'hidden'}  | ${['200', '201', '202', '203', '204', '205', '206', '207', '208', '209']}
           [exec] 
           [exec]       at new Spec (../../../../node_modules/jest-jasmine2/build/jasmine/Spec.js:116:22)
           [exec]           at Array.forEach (<anonymous>)
           [exec]       at Suite.Object.<anonymous>.describe (test/js/components/ResultRankingsForm.es.js:61:2)
           [exec]       at Object.describe (test/js/components/ResultRankingsForm.es.js:52:1)
           [exec] 
           [exec] (node:24617) UnhandledPromiseRejectionWarning: Error: Caught error after test environment was torn down
           [exec] 
           [exec] Unable to find an element by: [data-testid="200"]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              joshua.chong Joshua Chong
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 5 days ago
                Development End Date:

                  Packages

                  Version Package