wp-env.json: Bump tt1-blocks dependency to v0.4.5#30045
Conversation
|
Size Change: 0 B Total Size: 1.46 MB ℹ️ View Unchanged
|
|
Note there's at least 1 change that needs to be made to e2e tests with v0.4.4 of tt1-blocks: |
|
I just noticed that while the version of TT1 Blocks was indeed bumped to 0.4.4, no git tag was added (as e2e tests revealed: So it looks like we'll have to take care of that first 😬 |
|
Sorry about that! I've published a new release for TT1 Blocks. |
Thanks a lot @kjellr! |
185574e to
e7eef51
Compare
Thanks @creativecoder! Fixed in e7eef51. |
|
e2e tests are currently failing at the following line: It seems like the |
This is really strange. Theme shouldn't affect this at all. |
Yeah, it's quite weird, isn't it 😕 I had a hunch that it might have to do with the iframing of the site editor (and |
eb060cb to
1037d72
Compare
|
I notice that here we updated the JS tests for template parts in the sidebar to now be 'Header' as opposed to 'General'. I would have expected PHP unit to fail with these same theme updates without updating this as well 🤔 : gutenberg/phpunit/class-block-templates-test.php Lines 205 to 206 in df8e730 It seems to still be passing though. |
Ah, interesting indeed 🤔 Is it possible that both gutenberg/lib/full-site-editing/template-parts.php Lines 102 to 104 in e7369c0 Any chance that |
|
Just a heads up that we've bundled a new 0.4.5 version of TT1 Blocks to coincide with Gutenberg 10.3's release today. |
d1b6d49 to
5eb999b
Compare
FWIW, I tried updating those in 5eb999b, but that caused PHP unit tests to fail, so I had to revert. |
|
e2e tests are passing now 🎉 |
I don't think so, just testing it out they are outputting the expected string values when the tests run ('header','uncategorized',etc.) and not |
Doesn't seem like: gutenberg/.github/workflows/unit-test.yml Lines 95 to 101 in 2557a44 Plus I can repro locally. I checked the locally generated TT1 Blocks seems to set template areas fine: https://github.com/WordPress/theme-experiments/blob/tt1-blocks%400.4.5/tt1-blocks/experimental-theme.json
Yeah, definitely something we should figure out 🤔 Any chance there's actually something wrong with |
|
Using this to track down the issue: |
|
I believe I've tracked it down to this line returning |
|
Tracked it down further: gutenberg/lib/class-wp-theme-json-resolver.php Lines 513 to 538 in 2557a44 But when this function is called, So I guess it's another instance of the "calling a theme related function before WP has switched to that theme" 😬 cc/ @nosolosw |
To be precise, I think that that happens when |
Filed an issue: #30478 |
|
👋 Not sure if relevant, but I see this notice message when loading a request: (leaving a comment on the issue about theme.json support #30478, not sure I can repro the failure) |
Great digging, thanks for figuring out the cause of that! I think what you are proposing on that issue makes sense. |
|
The issue should now be fixed by #30830. Going to rebase 🤞 |
|
Pushed one more commit to fix one remaining unit test. Should be ready for another look now 🙂 |
Description
As of #28741, we've been pinning the version of the Twenty Twenty One Blocks theme (
tt1-blocks) used by Gutenberg to a fixed version, in order to prevent breakage of e2e tests by changes to that theme, as previously seen with #28638.The version we pinned
tt1-blocksto was0.4.3. A new version --0.4.40.4.5-- has now been tagged, so let's try to update Gutenberg to use that.How has this been tested?
Verify that tests (unit and e2e) are passing (see cI). Some additional smoke testing (especially of the Site Editor) is also recommended.