Refactor login in test
Refactor login in test

renoirb/browsercompat,jwhitlock/web-platform-compat,renoirb/browsercompat,mdn/browsercompat,jwhitlock/web-platform-compat,jwhitlock/web-platform-compat,renoirb/browsercompat,mdn/browsercompat,mdn/browsercompat