-
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
Navigation block: check that the modal is set before using contains
#51962
Conversation
* Initial version working with basic support for wp-bind * Add wp-context * Add wp-class * Add wp-style * Add wp-text * Add directive processing tests * Add WP_Directive_Processor class tests * Add wp-bind tests * Add wp-context tests * Add wp-class tests * Add wp-style tests * Add wp-text tests * Add evaluate tests * Fix PHP lint * Prevent errors with incorrect JSON objects * Add support for functions in the server
Size Change: 0 B Total Size: 1.44 MB ℹ️ View Unchanged
|
…navigation). (#51194) * Add show and text directives * Move directive bind tests * Move the rest of e2e tests (except csn-related) * Add interactive-blocks plugin for e2e tests * Move test plugins one folder up * Add plugin to .wp-env.json * Change directive-bind spec file to use new plugin * Move plugin to e2e-tests package * Move HTML for directive-bind to plugin * Update exposed properties from preact * Refactor directive-bind spec file * Create directive-effect block for e2e testing * Update directive-effect spec file * Remove unnecessary files * Fix e2e tests for bind and effect directives * Refactor fixtures and use them for bind and effect * Remove unnecessary editorScript * Fix e2e test for directive priorities * Remove unnecessary files * Fix negation operator * Refactor store-tag e2e tests * Refactor directive-class e2e tests * Remove extra spaces * Add util for removing all created posts * Add block for context directive * Add block for directive show testing * Remove unintentionally added artifact * Ignore artifacts generated inside /test/e2e * Remove unused html * Add block for directive text testing * Add blocks for tovdom testing * Update directives syntax in e2e tests * Add getLink to InteractivityUtils * Fix php lint errors * Add disable_directives_ssr param * Fix phpcs errors * Fix missing phpcs error and warnings * Remove `wp-interactivity` from `viewScript` --------- Co-authored-by: Luis Herranz <luisherranz@gmail.com>
47b8eb6
to
3f29f8b
Compare
Flaky tests detected in 3f29f8b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5398264987
|
I believe the forced push, or the rebase, affected the PR. There are many changes that I think are not relevant to this 😄 |
7e1b096
to
207f047
Compare
207f047
to
06d13da
Compare
I fixed it. Let's see if tests finally pass. |
Tests finally passed, I need an approval 🙂 |
Thank you, @Mamaduka! 😄 |
What?
The context property that stores the modal can be
null
, so we should check that it's notnull
before usingcontains
.Why?
I saw an error in the console while testing the menu.
How?
Just use the
?
optional property access operator.Testing Instructions
Unfortunately, I was not able to find the steps to reproduce it again.