Extracting login tests to login_spec