Fix flaky expanded timeline tests.

Await all drawEntryOnClick calls.
Wait for all expected calls of drawRect spy to occur.
Mimic x-positions of mouse click and entry rects exactly according to components.

Bug: b/300075311 b/300252759
Test: npm run test:unit:ci
Change-Id: Ie70800613d9d62280a8e8b64be5d9e8e7a1f4d83
2 files changed