-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Standalone Gutenberg installation doesn't redirect/load the site editor #39639
Comments
Thanks for creating the issue, @tomasztunik. Does Site Editor load correctly if you access it via |
Yes it does, themes.php works ok. Though as mentioned some tests fail because of the You might see 8 tests failing from that suite if you tried it but this is "expected". Question we have is. Should |
When using the Gutenberg plugin correct Site Editor path is the After WP 6.0 is released, we'll stop using the custom page, and there will be a single path for Site Editor.
Yes, most of the time, but it's hard to avoid breakage when we have to make significant changes like this. It looks like |
Thanks for the insights @Mamaduka! So as we target current versions with our CI we should skip using For non I think if this is known temporary state we can maybe close this and keep it for reference if anybody stumbles upon this as well. |
If you want to test with the Gutenberg plugin active, I recommend using the WP 6.0 is a few months away, but |
Would you recommend the best way to detect on E2E side if plugin is active or if we are using core? |
I don't think we have got util for that. Usually, we active/deactivate plugins as needed before the specific test runs. I've not very familiar with WooCommerce Blocks, but does it require or depend on features shipped in the Gutenberg plugin? |
Version included in Woo core is using only what is in core but for installed version we try to consume what edge provides as we want to push with FSE as much as we can. We do feature detection when enabling features to see what version of Gutenberg is available if we pick something from latest. That's where the tests against Gutenberg latest on top of core come from. We'll figure a way to do the detection and will post update once we have it green again. |
Thanks. Let's keep this issue open for now. |
We've prepared a fix for now so we are stable woocommerce/woocommerce-blocks#6080. We will access |
@Mamaduka, does it mean that this file exists only to bring the site editor to WordPress 5.8: |
@gziolo, that's correct. We'll remove that file after we drop support for 5.8. |
@tomasztunik, can we close this issue? |
Description
We are seeing regression in E2E tests for Full Site Editing in WooCommerce Gutenberg Products Block against latest Gutenberg version installed as a standalone plugin.
With Gutenberg 12.7.x when accessing the template editor via
site-editor.php
we'd correctly load the site-editor using locally installed Gutenberg and thethemes.php
access via query params would work along it. Now instead we getThe editor is unable to find a block template for the homepage.
error and editor doesn’t load.We have a navigation helper in place that was ready to handle
site-editor
andthemes
editor paths if type of Gutenberg installation context was provided but so far it all worked without the need to redirect to theme.php so it wasn't really used and we relied on the 'core' flag.Another issue is that once we change the default editorContext in that helper from
core
togutenberg
it would cause some of the tests to fail (the one accessing?postType=wp_template
path) because of a timeout waiting for SELECTORS.visualEditor to be present but the editor but if nopostId
is present it would fail as theiframe
wouldn't be present.gutenberg/packages/e2e-test-utils/src/site-editor.js
Lines 249 to 261 in 8a204c8
cc @Mamaduka
Step-by-step reproduction instructions
wp-admin/site-editor.php?postType=wp_template
You will see:
wp-admin/site-editor.php?postType=wp_template
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: