e2e flakey test failing - clicking unread thread message notification opens thread message feed

The clicking unread thread message notification opens thread message feed e2e is failing. It does seem to pass on the 3rd run in a lot of cases.

Part of https://gitlab.com/gitlab-org/gitter/webapp/issues/2269

Failing pipelines


Video of failing test: https://gitlab.com/gitlab-org/gitter/webapp/-/jobs/356860049/artifacts/file/test/e2e/videos/e2e-test.js.mp4

In https://gitlab.com/gitlab-org/gitter/webapp/merge_requests/1642, I already tried to make the test more stable by waiting for the textarea to be all done expanding its own height (see pictures 1 -> 2, or 1 -> 3).

I also created an issue in the Cypress tracker to more broadly track layout shifts causing clicks to miss the target, https://github.com/cypress-io/cypress/issues/5662

You can see the extra layout shifts as it goes through the test which probably make the click miss the element: between pictures 4 -> 5

.
1.
2.
3.
4.
5.
6.
Edited by Eric Eastwood