-
Notifications
You must be signed in to change notification settings - Fork 898
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
Feature/upgrade react and tests #20653
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vraja-pro
added
the
changelog: non-user-facing
Needs to be included in the 'Non-userfacing' category in the changelog
label
Sep 20, 2023
vraja-pro
force-pushed
the
feature/upgrade-react-and-tests
branch
from
September 21, 2023 07:59
ecbf256
to
7f025ae
Compare
… into feature/upgrade-react-and-tests
* | ||
* A cool <b><yoastmark>keyword</yoastmark></b>. => A cool <yoastmark>keyword</yoastmark> | ||
*/ | ||
const markedSentence = mark.getMarked().replace( /(<(?!\/?yoastmark)[^>]+>)/ig, "" ); |
Check failure
Code scanning / CodeQL
Incomplete multi-character sanitization High
This string may still contain , which may cause an HTML element injection vulnerability.
<script
Error loading related location
Loading …d-tests' into feature/upgrade-react-and-tests" This reverts commit 8156809.
Pull Request Test Coverage Report for Build 7030192515
💛 - Coveralls |
This reverts commit dce5fcf.
…eiveprops 19867 replacing componentwillreceiveprops
20672 wincher tests
React is imported in the components
…dencies React is imported in the components
Not yet in use, we still use the react-test-renderer
…pgrade-react-and-tests
vraja-pro
force-pushed
the
feature/upgrade-react-and-tests
branch
from
November 28, 2023 12:32
dcccca7
to
e4d7a80
Compare
…pgrade-react-and-tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
changelog: non-user-facing
Needs to be included in the 'Non-userfacing' category in the changelog
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
We’re moving to React 18. WP 6.2 onwards is using that already. So we are not developing and testing with the correct React version.
Moving to React 18 is not compatible with our tests. This removes Enzyme in favor of Testing Library: https://testing-library.com/
Summary
This PR can be summarized in the following changelog entry:
EditorModal.js
.Relevant technical choices:
packages/js
test command. As the snapshots seem to be stable again without the snapshot serializer.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Testing all the JavaScript things is needed, due to the upgrade to React 18. It might have consequences we did not spot.
Google/social preview
Indexation
Editor modal
define( 'SCRIPT_DEBUG', true );
(as well asWP_DEBUG
)Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes #20593