Skip to content

Conversation

@johnnesky
Copy link
Contributor

@johnnesky johnnesky commented May 2, 2025

Implements several unit tests described in https://docs.google.com/document/d/1pIIX5sKEG9f_NcWDIQJJEOMM7w7pQUf8eJoT3lrAElQ involving navigating with the arrow keys when starting from a field or inline input.

I ran these tests using old code for both core blockly and keyboard experimentation. I built against a slightly older commit from core blockly rc/v12.0.0, namely this one RaspberryPiFoundation/blockly@dee27b9 since the most recent commit seems unstable at the moment. I also did not update to the latest commit of keyboard experimentation before writing these tests, namely I remained at: c90aae9

Updating the code in either repo introduces compilation errors that I'm not sure how to address yet.

The last test I left commented out because it fails even though I wrote it with the expectation that it would succeed. It seems that the curly quote icons in a text block count as selection stops when pressing the right arrow key, even though they are not interactive. If the quotes are fixed, then the test can be uncommented to verify that the right arrow key navigates past them.

@johnnesky johnnesky requested a review from a team as a code owner May 2, 2025 23:17
@johnnesky johnnesky requested review from BenHenning and removed request for a team May 2, 2025 23:17
@rachel-fenichel rachel-fenichel requested review from RoboErikG and removed request for BenHenning May 5, 2025 17:27
@rachel-fenichel
Copy link
Collaborator

@RoboErikG please rebase this PR once sufficient changes are made in core and over here to make it build, fix lint/format, and then review the actual test contents and merge if good.

Thanks John for writing these tests!

@RoboErikG
Copy link
Contributor

Replaced by #496

@RoboErikG RoboErikG closed this May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants