def METHOD_NAME(cls, tests):
    tests_map = {test['name']: test for test in tests}
    login = (
        tests_map.get('auto-login-action') or tests_map.get('login-action')
    )
    job_result = tests_map['job']['result']
    result = login and login['result'] == 'pass' and job_result == 'pass'
    return 'pass' if result else 'fail'