-
Notifications
You must be signed in to change notification settings - Fork 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
Update experimental features tests #48164
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
Intentional failures show up in https://app.circleci.com/pipelines/github/Automattic/wp-e2e-tests-for-branches/50286/workflows/0d8b070c-3749-4515-ac3b-56ea86e8bea7/jobs/125901 (It actually occurs three times because we've configure 3 tries before giving up): |
b7995b7
to
bf0dde4
Compare
@p-jackson: Is |
Good find! I think these tests have been broken but since it didn't have the There's actually no such thing as The I think the best course of action is just to delete the |
Yep, just found the line was added in #47712 but CI would have never run the test. |
fa82a4f
to
515c09f
Compare
bf0dde4
to
e431baf
Compare
Caution: This PR affects files in the Editing Toolkit Plugin on WordPress.com D54345-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing the Editing Toolkit Plugin for more info: PCYsg-ly5-p2 |
f0f0d18
to
5a93887
Compare
I've been trying to figure out why editSite is not is not there, and while it's still a mystery, It does seem to be a legitimate failure - there's no I tried to figure out how that global The actual target property seems odd too. The version of edit-site that we're pulling (v1.15.6) in doesn't expose the property, but the latest gutenberg master verstion is up to v1.16, and it does expose it, so maybe we're ahead of the curve rather than behind? Also weird: We use the property in Anyway, I've spent way too much time trying to figure this out already, so for this PR I'm just dropping the line. I'll create an issue with these findings and see if I can find someone to pick it up. |
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.
✅
Ran locally as well:
✓ Can log in (29467ms)
Can find experimental package features
✓ "blockEditor" package should be available in the global window object
✓ __experimentalBlock should be available in @wordpress/block-editor
✓ __experimentalInserterMenuExtension should be available in @wordpress/block-editor
✓ "date" package should be available in the global window object
✓ __experimentalGetSettings should be available in @wordpress/date
✓ "components" package should be available in the global window object
✓ __experimentalNavigationBackButton should be available in @wordpress/components
Experimental data we depend on is available
✓ is iterable: wp.data.select( 'core/editor' ).getEditorSettings().__experimentalBlockPatterns
9 passing (32s)
I've popped my notes from trying to figure out the |
NOTE: This PR is currently targeted at the
add/experimental-block-patterns-tests
branch from #48032. Once that PR is merged, we'll rebase against that new trunk instead.This PR is a followup to #48032 that fixes the experimental features tests and combines the experimental data tests introduced in #48032 together with them in the one file.
There were a few things that were preventing the experimental feature tests from running successfully:
@parallel
tag to get picked up on CircleCI (although they run fine locally without them)driver.executeScript()
needs areturn
statement. The driver was returningnull
no matter what happened in the test environment, leading to false positives.After fixing those, we still see a failure with '__experimentalMainDashboardButton', and I think this might be a legitimate failure, as I can't see
interface
or__experimentalMainDashboardButton
on the globalwp
property in the editor.Testing instructions
You can re-trigger the tests to run on CircleCI by removing and re-adding the
[Status] Needs e2e Testing
label, but if you want to test changes there (like removing the failing check to test the rest) you'll need to push a new branch and add the label there.You can also run the tests locally from the
test/e2e
directory in calypso using something like:env BROWSERSIZE=desktop npx mocha specs/wp-gutenberg-experimental-features-spec.js
(You may or may not need some config decryption magic as described in the Field guide "Automated end-to-end Testing" page)
Also fixes #47839.