I want to generate a click() on a Label component programmatically, for UI testing. Apart from the fact that I should not be doing this for UI testing and I should be recording the data instead which at the moment I cannot as we do not have a clean MVC implementation yet, is there any reason why generating a fake click this way fails to call mouseUp()
The alternative seems to be, to convert the Label center Point to global co-ordinates(screen co-ordinates?) using Component::localPointToGlobal() and generate a Windows Message using Windows APIs. But I would rather stay platform agnostic with Juce.