-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RNMobile] Fix undo/redo history when inserting a link configured to …
…open in a new tab (#50460) * Add rel to link formatting attributes * Update CHANGELOG to add undo/redo fix to Unreleased section * Update packages/react-native-editor/CHANGELOG.md Co-authored-by: Tanner Stokes <tanner.stokes@automattic.com> * Update packages/react-native-editor/CHANGELOG.md Co-authored-by: David Calhoun <github@davidcalhoun.me> * Add test for checking undo/redo history when a link is configured to open in a new tab * Update link settings modal test case to check for correct editor history * test: Fix React prop typo * test: Simplify test queries The targeted elements do not require asynchronous queries. Using synchronous queries is more concise and easier to comprehend. * test: Increase editor history link test accuracy The targeted bug occurs when: 1. Changing a link to "Open in a new tab." 2. Performing additional changes, e.g. typing. 3. Undoing both actions. 4. Redoing both actions. Thus, this changes the initial HTML, adds additional undo/redo invocations, and updates inline snapshots to match the expected outcomes. --------- Co-authored-by: Tanner Stokes <tanner.stokes@automattic.com> Co-authored-by: David Calhoun <github@davidcalhoun.me>
- Loading branch information
1 parent
0b70248
commit 6857747
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
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