QA: porting login test from /qa/browsertests