Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRQA-57487 | master #87152

Closed
wants to merge 1 commit into from
Closed

Conversation

john-co
Copy link

@john-co john-co commented Apr 1, 2020

@liferay-continuous-integration
Copy link
Collaborator

Closing pull request because all liferay-portal pullrequests sent to Brian Chan must be sent by using ci:forward on a pull request that was sent to someone else.

@john-co
Copy link
Author

john-co commented Apr 1, 2020

ci:reopen

@brianchandotcom
Copy link
Owner

Merged. Thank you.
View total diff: 269de26...08cf375

brianchandotcom pushed a commit that referenced this pull request Apr 2, 2020
These tests were doubly disabled in:

- #87152
- #87153

Root cause:

These two modules, dynamic-data-mapping-form-builder and
dynamic-data-mapping-form-web, are the only two places left in
liferay-portal that we still use Metal's incremental-dom, which is
incompatible with React.

In f7704c1, we switched everything to assume React by default, but
these two modules needed an explicit opt-out so that they could continue
to use incremental-dom.

All of this was fine until f18e7fe, which added a React-powered modal
to frontend-js-web. This caused these DDM tests to fail because they
depend on frontend-js-web, and as soon as they hit React JSX everything
blows up because without the React preset, it is considered to be a
syntax error.

The fix is to selectively mock the `openModal` export from
frontend-js-web to prevent the codepath that involves JSX from being
exercised. Consider it a nasty hack, but a temporary one, because we
will eventually get rid of all incremental-dom usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants