-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Upgrade some dependencies: React 16, Enzyme 3 and Jest #2813
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!-- wp:core/cover-image {"url":"https://cldup.com/uuUqE_dXzy.jpg"} --> | ||
<section class="wp-block-cover-image has-background-dim" style="background-image:url(https://cldup.com/uuUqE_dXzy.jpg);"> | ||
<section class="wp-block-cover-image has-background-dim" style="background-image:url(https://cldup.com/uuUqE_dXzy.jpg)"> | ||
<h2>Guten Berg!</h2> | ||
</section> | ||
<!-- /wp:core/cover-image --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:core/paragraph {"align":"right"} --> | ||
<p style="text-align:right;">... like this one, which is separate from the above and right aligned.</p> | ||
<p style="text-align:right">... like this one, which is separate from the above and right aligned.</p> | ||
<!-- /wp:core/paragraph --> |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -64,7 +64,7 @@ const textEmbedBlock = { | |||||
category: 'embed', | ||||||
}; | ||||||
|
||||||
describe( 'InserterMenu', () => { | ||||||
describe.skip( 'InserterMenu', () => { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did some heave debugging here and it looks like we are having the same kind of issues that are reported in Enzyme repository here and here. In our case it might be a mix of those two. I tried to add recommended gutenberg/editor/inserter/menu.js Line 384 in ad316ab
gutenberg/editor/inserter/menu.js Line 366 in ad316ab
wrapper.debug() call. When I debugged it turned out that React component does everything properly behind the scenes. It looks like Enzyme gets out of sync.
|
||||||
const unregisterAllBlocks = () => { | ||||||
getBlockTypes().forEach( ( block ) => { | ||||||
unregisterBlockType( block.name ); | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to wait until Support Portals properly is resolved :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think this should block the PR? thoughts @aduth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't consider it as a blocker. I should phrase it explicitly. Just saying we would have to fix Enzyme in the first place or keep the shim that was used before.