disaster-ninja-fe
disaster-ninja-fe copied to clipboard
Improve selectors for toolbar resizing to enhance test reliability
As discussed in this comment, the selectors used in the toolbar resizing functionality may rely on the specific order and number of svg
elements. This dependency can make tests brittle if the DOM structure changes. It's recommended to use data-testid
attributes and getByTestId
selectors for more stable and maintainable tests.
Referenced PR: https://github.com/konturio/disaster-ninja-fe/pull/842
Requested by @amurKontur.