<commit_before>*** Settings ***
Library           SauceLabs

*** Variables ***
${REMOTE_URL}     ${EMPTY}
${DESIRED_CAPABILITIES}    ${EMPTY}
${SERVER_AUTH}    ${EMPTY}
${TEST_TAGS}      ${EMPTY}
${FF_PROFILE}     ${CURDIR}/../firefox_config

*** Keywords ***
The user logs-in in new browser
    [Arguments]  ${email}  ${password}
    The guest user opens the browser
    Logging in and Error Checking  ${email}  ${password}

Log in as a different user
    [Arguments]    ${email}    ${password}
    logout as user
    the guest user inserts user email and password    ${email}    ${password}
    the guest user clicks the log-in button

Logging in and Error Checking
    [Arguments]    ${email}    ${password}
    The guest user inserts user email and password    ${email}    ${password}
    The guest user clicks the log-in button
    Wait Until Page Contains Without Screenshots    Dashboard
    the user should not see an error in the page

The guest user inserts user email and password
    [Arguments]    ${email}    ${password}
    Wait Until Element Is Visible Without Screenshots    id=username
    Wait Until Element Is Visible Without Screenshots    id=password
    Input Text    id=username    ${email}
    Input Password    id=password    ${password}

The guest user clicks the log-in button
    Wait Until Element Is Visible Without Screenshots    css=button[name="_eventId_proceed"]
    Click Button    css=button[name="_eventId_proceed"]

The guest user opens the browser
    Register Keyword To Run On Failure  Capture large screenshot
    Run keyword if    '${VIRTUAL_DISPLAY}' == 'true'    Start Virtual Display    1920    1080<commit_msg>IFS-478 Removing this line as it creates lots of unnecessary screen-shots.<commit_after>*** Settings ***
Library           SauceLabs

*** Variables ***
${REMOTE_URL}     ${EMPTY}
${DESIRED_CAPABILITIES}    ${EMPTY}
${SERVER_AUTH}    ${EMPTY}
${TEST_TAGS}      ${EMPTY}
${FF_PROFILE}     ${CURDIR}/../firefox_config

*** Keywords ***
The user logs-in in new browser
    [Arguments]  ${email}  ${password}
    The guest user opens the browser
    Logging in and Error Checking  ${email}  ${password}

Log in as a different user
    [Arguments]    ${email}    ${password}
    logout as user
    the guest user inserts user email and password    ${email}    ${password}
    the guest user clicks the log-in button

Logging in and Error Checking
    [Arguments]    ${email}    ${password}
    The guest user inserts user email and password    ${email}    ${password}
    The guest user clicks the log-in button
    Wait Until Page Contains Without Screenshots    Dashboard
    the user should not see an error in the page

The guest user inserts user email and password
    [Arguments]    ${email}    ${password}
    Wait Until Element Is Visible Without Screenshots    id=username
    Wait Until Element Is Visible Without Screenshots    id=password
    Input Text    id=username    ${email}
    Input Password    id=password    ${password}

The guest user clicks the log-in button
    Wait Until Element Is Visible Without Screenshots    css=button[name="_eventId_proceed"]
    Click Button    css=button[name="_eventId_proceed"]

The guest user opens the browser
    Run keyword if    '${VIRTUAL_DISPLAY}' == 'true'    Start Virtual Display    1920    1080
{'fraction_non_alphanumeric': 0.08544685990338165, 'fraction_numerical': 0.005736714975845411, 'mean_word_length': 3.204314720812183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5046331', 'n_tokens_mistral': 959, 'n_tokens_neox': 921, 'n_words': 374}