Test the handling of focus when editing entity data #49098
Labels
[Feature] History
History, undo, redo, revisions, autosave.
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[Type] Enhancement
A suggestion for improvement.
In #48979 a fix was merged to solve focus loss which occurred when undo or redo was used inside an editor who managed entity editing via
useBlockSync
. We need to add a test that tests for our desired behavior in terms of focus management.Ideally focus should remain to where it was on actions such as undo and redo. However, #48979 has a temporary - I hope - solution which moves the focus to the parent when the undo changes controlled inner blocks. This should be fixed too, but for now the test should test this focus parent behavior.
The text was updated successfully, but these errors were encountered: