eufemia icon indicating copy to clipboard operation
eufemia copied to clipboard

chore: fixes false positive tests in Field.OrganizationNumber

Open langz opened this issue 4 months ago • 2 comments

Previous tests were false positive. When doing: expect(screen.queryByRole('alert')).toBeNull() It would in many tests always be true, even if an error should occur.

This PR also removes a lot of not needed fireEvent.blur(document.querySelector('input')), many times when removing it, the result of the test does not change. I don't think this is needed when we test the validator prop, as the validator doesn't need a blur event to execute.

langz avatar Oct 04 '24 11:10 langz