disaster-ninja-fe icon indicating copy to clipboard operation
disaster-ninja-fe copied to clipboard

Improve selectors for toolbar resizing to enhance test reliability

Open coderabbitai[bot] opened this issue 5 months ago • 0 comments

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.

coderabbitai[bot] avatar Oct 02 '24 09:10 coderabbitai[bot]