<commit_before>*** Settings ***
Documentation     -INFUND-703: As a user and I have provided the wrong login details I want to have the email address kept so I don't need to retype it
Suite Setup       Run Keywords    The guest user opens the browser
...               AND    the user navigates to the page    ${LOGIN_URL}
Suite Teardown    TestTeardown User closes the browser
Force Tags        Guest
Test Template     Email persists on invalid login
Resource          ../../resources/GLOBAL_LIBRARIES.robot
Resource          ../../resources/variables/GLOBAL_VARIABLES.robot
Resource          ../../resources/variables/User_credentials.robot
Resource          ../../resources/keywords/Login_actions.robot
Resource          ../../resources/keywords/User_actions.robot
Resource          Guest_commons.robot

*** Variables ***
${correct_email}    <EMAIL>
${incorrect_email}    <EMAIL>
${invalid_email}    notavalidemailaddress
${correct_password}    <PASSWORD>
${incorrect_password}    <PASSWORD>
${invalid_password}    <PASSWORD>

*** Test Cases ***
Email persists with correct email address and wrong password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${correct_email}    ${incorrect_password}

Email persists with correct email address and invalid password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${correct_email}    ${invalid_password}

Email persists with correct email address and empty password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${correct_email}    ${EMPTY}

Email persists with wrong email address and correct password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${incorrect_email}    ${correct_password}

Email persists with wrong email address and wrong password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${incorrect_email}    ${incorrect_password}

Email persists with wrong email address and invalid password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${incorrect_email}    ${invalid_password}

Email persists with wrong email address and empty password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${incorrect_email}    ${EMPTY}

Email persists with invalid email address and correct password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${invalid_email}    ${correct_password}

Email persists with invalid email address and wrong password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${invalid_email}    ${incorrect_password}

Email persists with invalid email address and invalid password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${invalid_email}    ${invalid_password}

Email persists with invalid email address and empty password
    [Documentation]    INFUND-703
    [Tags]    Log in
    ${invalid_email}    ${EMPTY}

*** Keywords ***
#Email persists on invalid login
#    [Arguments]    ${email_address}    ${password}
#    Given the guest user inserts user email & password    ${email_address}    ${password}
#    When the user tries to log in
#    Then the user is not logged-in
#    And the email address should persist    ${email_address}
#
#the user is not logged-in
#    Element Should Not Be Visible    link=My dashboard
#    Element Should Not Be Visible    link=Logout
#
#the email address should persist
#
#    [Arguments]     ${email_address}
#    # Note: we have to do it this way rather than the more straightforward eg Textfield Value Should Be
#    # due to a bug in selenium2library
#    ${stored_data}=     Get Value       id=username
#    Should Be Equal     ${stored_data}      ${email_address}
#
#
#the user tries to log in
#    the user clicks the button/link    css=button[name="_eventId_proceed"]
#    the user should see the text in the page    ${unsuccessful_login_message}<commit_msg>INFUND-4579: Cleaning up the tags from the "Guest" tests<commit_after>*** Settings ***
Documentation     -INFUND-703: As a user and I have provided the wrong login details I want to have the email address kept so I don't need to retype it
Suite Setup       Run Keywords    The guest user opens the browser
...               AND    the user navigates to the page    ${LOGIN_URL}
Suite Teardown    TestTeardown User closes the browser
Force Tags        Guest
Test Template     Email persists on invalid login
Resource          ../../resources/GLOBAL_LIBRARIES.robot
Resource          ../../resources/variables/GLOBAL_VARIABLES.robot
Resource          ../../resources/variables/User_credentials.robot
Resource          ../../resources/keywords/Login_actions.robot
Resource          ../../resources/keywords/User_actions.robot
Resource          Guest_commons.robot

*** Variables ***
${correct_email}    <EMAIL>
${incorrect_email}    <EMAIL>
${invalid_email}    notavalidemailaddress
${correct_password}    <PASSWORD>
${incorrect_password}    <PASSWORD>
${invalid_password}    <PASSWORD>

*** Test Cases ***
Email persists with correct email address and wrong password
    [Documentation]    INFUND-703
    [Tags]
    ${correct_email}    ${incorrect_password}

Email persists with correct email address and invalid password
    [Documentation]    INFUND-703
    [Tags]
    ${correct_email}    ${invalid_password}

Email persists with correct email address and empty password
    [Documentation]    INFUND-703
    [Tags]
    ${correct_email}    ${EMPTY}

Email persists with wrong email address and correct password
    [Documentation]    INFUND-703
    [Tags]
    ${incorrect_email}    ${correct_password}

Email persists with wrong email address and wrong password
    [Documentation]    INFUND-703
    [Tags]
    ${incorrect_email}    ${incorrect_password}

Email persists with wrong email address and invalid password
    [Documentation]    INFUND-703
    [Tags]
    ${incorrect_email}    ${invalid_password}

Email persists with wrong email address and empty password
    [Documentation]    INFUND-703
    [Tags]
    ${incorrect_email}    ${EMPTY}

Email persists with invalid email address and correct password
    [Documentation]    INFUND-703
    [Tags]
    ${invalid_email}    ${correct_password}

Email persists with invalid email address and wrong password
    [Documentation]    INFUND-703
    [Tags]
    ${invalid_email}    ${incorrect_password}

Email persists with invalid email address and invalid password
    [Documentation]    INFUND-703
    [Tags]
    ${invalid_email}    ${invalid_password}

Email persists with invalid email address and empty password
    [Documentation]    INFUND-703
    [Tags]
    ${invalid_email}    ${EMPTY}

*** Keywords ***
{'fraction_non_alphanumeric': 0.08231707317073171, 'fraction_numerical': 0.01173780487804878, 'mean_word_length': 3.1264150943396225, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1464138', 'n_tokens_mistral': 1905, 'n_tokens_neox': 1812, 'n_words': 641}