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

ReloadButton.es.js failing in js-unit-jdk8 7.2.x

    Details

      Description

           [exec] FAIL test/shared/components/list/ReloadButton.es.js
           [exec]   ??? Should component reload page
           [exec] 
           [exec]     expect(received).toHaveBeenCalled()
           [exec] 
           [exec]     Matcher error: received value must be a mock or spy function
           [exec] 
           [exec]     Received has type:  function
           [exec]     Received has value: [Function reload]
           [exec] 
           [exec]       23 | 	instance.reloadPage();
           [exec]       24 | 
           [exec]     > 25 | 	expect(window.location.reload).toHaveBeenCalled();
           [exec]          | 	                               ^
           [exec]       26 | 
           [exec]       27 | 	window.location.reload.mockRestore();
           [exec]       28 | });
           [exec] 
           [exec]       at Object.toHaveBeenCalled (test/shared/components/list/ReloadButton.es.js:25:33)
      

      https://testray.liferay.com/reports/production/logs/test-1-1/1583991143606/test-portal-acceptance-upstream-dxp(7.2.x)/291/js-unit-jdk8/0/jenkins-console.txt.gz

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rodrigo.cunha Rodrigo Cunha (Inactive)
              Reporter:
              dennys.barros.1 Dennys Barros.1 (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 14 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.X