I am sure you guys had the best intent by overriding the toString method to warn users they were doing something they shouldn’t but in a test suite this is really painful.
assertion methods takes the component to provide a dedicated message if the assertion fails. And some assert methods are generic so they don’t even know the component behind.
Because the exception message is resolved no matter what, we have zillions of warnings in our logs now and we’re not doing anything wrong in the code.
Sadly I can’t answer that because I am not one of the Vaadin Dev’s. I’m just a “User” like you. I just stumbled over this ticket and thought it would help you. Maybe a Dev can help you better.