Skip to content

Deflake registerLinkProvider tests#3822

Merged
Tyriar merged 4 commits intoxtermjs:masterfrom
Tyriar:3821
May 19, 2022
Merged

Deflake registerLinkProvider tests#3822
Tyriar merged 4 commits intoxtermjs:masterfrom
Tyriar:3821

Conversation

@Tyriar
Copy link
Copy Markdown
Member

@Tyriar Tyriar commented May 19, 2022

The root cause of this flakiness problem was related to the click event
handler. For some reason it would not go off on some links but it would
when clicking elsewhere in the terminal. I tried a bunch of things to
keep the click handler to no avail, instead opting to move to using
mousedown and mouseup events for activating links which comes with the
nice benefit of ensuring that the link on mouseup is the same one on
mousedown.

Fixes #3821

Tyriar added 2 commits May 19, 2022 15:26
The root cause of this flakiness problem was related to the click event
handler. For some reason it would not go off on some links but it would
when clicking elsewhere in the terminal. I tried a bunch of things to
keep the click handler to no avail, instead opting to move to using
mousedown and mouseup events for activating links which comes with the
nice benefit of ensuring that the link on mouseup is the same one on
mousedown.

Fixes xtermjs#3821
@Tyriar Tyriar added this to the 4.19.0 milestone May 19, 2022
@Tyriar Tyriar requested a review from meganrogge May 19, 2022 22:32
@Tyriar Tyriar self-assigned this May 19, 2022
Tyriar and others added 2 commits May 19, 2022 15:51
Co-authored-by: Megan Rogge <[email protected]>
Co-authored-by: Megan Rogge <[email protected]>
@Tyriar Tyriar merged commit 41fdb96 into xtermjs:master May 19, 2022
@Tyriar Tyriar deleted the 3821 branch May 19, 2022 22:52
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.

registerLinkProvider integration tests are quite flaky

2 participants