I also encountered this type of situation, where WebUI.authenticate(...) does not do the login. The way I managed to make it work is like this:
String secondSiteUrl = 'https://username:[email protected]' WebUI.navigateToUrl(secondSiteUrl)