Fixed detection of login page in tests, following changes to login view