bito-code-review[bot] commented on PR #43940:
URL: https://github.com/apache/superset/pull/43940#issuecomment-5591599249

   <!-- Bito Reply -->
   The current implementation in the test suite uses a static mock for 
`getBoundingClientRect` to assert the initial height. To address scenarios 
where the parent tab bar reflows after mount, you can trigger the 
`ResizeObserver` by manually invoking the callback registered with the 
observer. In your test, you would need to capture the `ResizeObserver` instance 
(e.g., by mocking `window.ResizeObserver`) and then call its callback with a 
new `DOMRect` representing the updated height to verify that the descendant 
offset updates correctly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to