Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-4653

Fix js unit tests on portal 7.2.x

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 7.3
    • 2.1.3, 2.2.0, 7.2.X
    • None
    • None
    • Minor

    Description

      This only affects *7.2.x *version on portal...but there's no Commerce component on LPS project, nor is there a 7.2.x version on Commerce project.

           [exec]   ??? FlagsModal ??? renders
           [exec] 
           [exec]     Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
           [exec]     1. You might have mismatching versions of React and the renderer (such as React DOM)
           [exec]     2. You might be breaking the Rules of Hooks
           [exec]     3. You might have more than one copy of React in the same app
           [exec]     See https://fb.me/react-invalid-hook-call
       for tips about how to debug and fix this problem.
           [exec] 
           [exec]       42 | 	};
           [exec]       43 | 
           [exec]     > 44 | 	return render(
           [exec]          | 	       ^
           [exec]       45 | 		<FlagsModal
           [exec]       46 | 			captchaURI=\{captchaURI}
           [exec]       47 | 			companyName=\{companyName}
        

      https://github.com/liferay-frontend/liferay-portal/pull/331#issuecomment-684046812 likely caused by commerce getting into 7.2.x

      Full list of failures reported in slack: https://liferay.slack.com/archives/CR6GDGESY/p1598533099003900?thread_ts=1598520653.003600&cid=CR6GDGESY
      Full console log: https://test-1-13.liferay.com/job/test-portal-testsuite-upstream-batch(7.2.x)/AXIS_VARIABLE=0,label_exp=!master/4146/consoleText

      Attachments

        Activity

          People

            pietro.bocale Pietro Bocale
            john.co John Co
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                2.1.3
                2.2.0
                7.2.X