tests: port test_login.py to WebDriver

Change-Id: I5b9fa3c967da1758db496ff5c268497105547d24