Skip to content
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

Fix intermittent failures when moving a freetext annotation in integration tests #19198

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

calixteman
Copy link
Contributor

When an editor is moved with the keyboard or in dragging it, it is moved in the DOM in order to make screen readers happy. But this move is slightly postponed thanks to a setTimeout(..., 0). The failures were very likely due to the fact that intermittently the DOM move was done in the middle of the next key sequence which was making the move on screen failing.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, thank you.

test/integration/freetext_editor_spec.mjs Outdated Show resolved Hide resolved
…ation tests

When an editor is moved with the keyboard or in dragging it, it is moved in the DOM in order
to make screen readers happy. But this move is slightly postponed thanks to a setTimeout(..., 0).
The failures were very likely due to the fact that intermittently the DOM move was done in
the middle of the next key sequence which was making the move on screen failing.
@calixteman calixteman force-pushed the fix_intermittent_itest_chrome branch from 3c31ba4 to 74a377f Compare December 10, 2024 15:14
@calixteman
Copy link
Contributor Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/ae3f5eb9daeabca/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/c3b5802ee8b18f4/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/ae3f5eb9daeabca/output.txt

Total script time: 9.70 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/c3b5802ee8b18f4/output.txt

Total script time: 22.58 mins

  • Integration Tests: Passed

@calixteman calixteman merged commit b35999d into mozilla:master Dec 10, 2024
3 of 9 checks passed
@calixteman calixteman deleted the fix_intermittent_itest_chrome branch December 10, 2024 15:57
@timvandermeij timvandermeij removed their request for review December 10, 2024 19:27
@timvandermeij
Copy link
Contributor

Thank you for finding out what was happening here! The code also looks simpler with the helper function in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants