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

Enable FormBuilder tests and implement in the settings to transform Metal+JSX and React+JSX

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: Dynamic Data Mapping
    • Labels:
      None

      Description

      As part of the migration from FormRenderer to React caused some regressions in the current tests in FormBuilder, because some components of FormBuilder are in Metal+JSX, this implies problems when Jest tries to transform the React+JSX code, causing confusion, by default the .babelrc of the FormBuilder module ignores the preset @babel/preset-react to avoid problems.

      With that in mind, we should try to make sure that in FormBuilder tests Jest can transform the FormRenderer source code using preset @babel/preset-react.

      Some test suites that have been disabled with the entry of https://issues.liferay.com/browse/LPS-112424:

      • fieldSupport
      • LayoutProvider/handlers/columnResizedHandler
      • LayoutProvider/handlers/fieldEditedHandler
      • LayoutProvider/handlers/focusedFieldEvaluationEndedHandler
      • LayoutProvider/LayoutProvider
      • RuleList
      • Sidebar

        Attachments

          Activity

            People

            • Assignee:
              matuzalem.teles Matuzalém Teles
              Reporter:
              matuzalem.teles Matuzalém Teles
              Engineering Assignee:
              Matuzalém Teles
              Recent user:
              Brian Chan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Master