-
Notifications
You must be signed in to change notification settings - Fork 4.6k
test: Add separate mobile experiments file #47513
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
Conversation
|
Size Change: 0 B Total Size: 1.31 MB ℹ️ View Unchanged
|
scruffian
left a comment
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.
LGTM
|
Flaky tests detected in f1351bc. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4028093576
|
|
I merged the fix for Playwright e2e test failure #47520. But I see |
The experiments file recently began importing the experimental `off-canvas-editor`. This module eventually imports `@react-spring/web` within its `leaf` module and the `useMovingAnimation` hook. Importing the `@react-spring/web` library results in `react-dom` loading within the React Native testing environment causing test failures. To avoid this scenario, a separate experiments file excluding the `off-canvas-editor` was added for the mobile project. This felt more appropriate than implementing a native version of `off-canvas-editor` or its sibling `list-view` as neither are currently leveraged by the mobile project.
f1351bc to
10df08d
Compare
|
Great idea, it seems like the right approach 🤞 |
What?
Fix the currently failing mobile unit tests after #47465 merged.
Why?
The experiments file recently began importing the experimental
off-canvas-editor. This module eventually imports@react-spring/webwithin its
leafmodule and theuseMovingAnimationhook. Importingthe
@react-spring/weblibrary results inreact-domloading withinthe React Native testing environment causing test failures.
How?
To avoid this scenario, a separate experiments file excluding the
off-canvas-editorwas added for the mobile project. This felt moreappropriate than implementing a native version of
off-canvas-editororits sibling
list-viewas neither are currently leveraged by the mobileproject.
Testing Instructions
Verify all CI test suites pass.
Testing Instructions for Keyboard
n/a
Screenshots or screencast
n/a