Overlay scrolls automatically when users moves through users suggested to mention.
Details
Tested on video below:
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Used scrollTo.
Added tests and run them.
There were some problems that I solved locally using fixes from here: https://linear.app/comm/issue/ENG-2654/problems-with-jest
I haven't pushed those fixes anywhere as it is to be discussed yet, but I found it acceptable to
push tests even if they fail currently (due to lack of mocks as mentioned on linear).
Similar thing is happening to tooltip-utils.test.js tests and it was ignored in the past I guess.
It's interesting, because it seems like the tests should've failed on the CI - but it doesn't seem so. Do we know if these were run at all?
I think they're not. They also don't fail on local tests. I'm not sure why. When I run yarn test in web, tests in tooltip failed as well, and they were failing for a long time I guess.
Task: https://linear.app/comm/issue/ENG-2712/we-dont-run-tests-in-web-native-and-desktop-in-precommit-hook
In the future, these tasks should be created (and linked) before landing the diff
For other tooltip actions we don't need to manually set this style. Can we use the mechanism we already have, or are there any reasons for not doing so?