<commit_before>*** Settings ***
Documentation     IFS-362 As an IFS user I am able to find links to general guidance links via the footer both when signed in or not signed in.
Suite Setup       The guest user opens the browser
Suite Teardown    TestTeardown User closes the browser
Force Tags        Guest
Resource          ../../resources/defaultResources.robot

*** Test Cases ***
Guest user can click on the footer links
    [Documentation]    IFS-362
    [Tags]
    [Setup]    the user navigates to the page    ${frontDoor}
    Given the user tries the footer links    ${frontDoor}
    Then the user navigates to the page    ${LOGIN_URL}
    And the guest user inserts user email & password    {lead_applicant}    ${correct_password}
    When the guest user clicks the log-in button
    Then the user tries the footer links    ${DASHBOARD_URL}
    And the user navigates to the page    ${LOGIN_URL}
    Then the user should see the text in the page    Sign in
    And the user tries the footer links    ${LOGIN_URL}

*** Keywords ***
the user tries the footer links
    [Arguments]    ${page}
    Given the user tries the external link    ${page}    Innovate UK    Innovate UK - GOV.UK
    And the user tries the external link    ${page}    Innovation funding advice    Business innovation: what funding you can apply for - GOV.UK
    And the user tries the external link    ${page}    Events    Events - innovateuk
    And the user tries the external link    ${page}    Connect to innovation experts    Innovation: connect to experts, specialist support and facilities - GOV.UK
    And the user tries the external link    ${page}    Innovate UK blog    Innovate UK
    And the user tries the external link    ${page}    GOV.UK accessibility    Accessibility - GOV.UK
    And the user tries the link    ${page}    Terms and conditions    Terms and conditions
    And the user tries the link    ${page}    Contact us    Contact us
    And the user tries the link    ${page}    Latest funding opportunities    Innovation competitions
    And the user tries the link    ${page}    Find out more about cookies    Cookies

the user tries the link<commit_msg>Add a comment for future maintenance<commit_after>*** Settings ***
Documentation     IFS-362 As an IFS user I am able to find links to general guidance links via the footer both when signed in or not signed in.
Suite Setup       The guest user opens the browser
Suite Teardown    TestTeardown User closes the browser
Force Tags        Guest
Resource          ../../resources/defaultResources.robot
# Note for future maintenance: In this file there are checks to external links (out of IFS).
# The tests are fine as they are now, but in case those links break in the future, then we can remove those tests.
# We do not need to maintain checks towards external pages.
# However, internal links eg Terms & Conditions, do need to be maintained!!

*** Test Cases ***
Guest user can click on the footer links
    [Documentation]    IFS-362
    [Tags]
    [Setup]    the user navigates to the page    ${frontDoor}
    Given the user tries the footer links    ${frontDoor}
    Then the user navigates to the page    ${LOGIN_URL}
    And the guest user inserts user email & password    {lead_applicant}    ${correct_password}
    When the guest user clicks the log-in button
    Then the user tries the footer links    ${DASHBOARD_URL}
    And the user navigates to the page    ${LOGIN_URL}
    Then the user should see the text in the page    Sign in
    And the user tries the footer links    ${LOGIN_URL}

*** Keywords ***
the user tries the footer links
    [Arguments]    ${page}
    Given the user tries the external link    ${page}    Innovate UK    Innovate UK - GOV.UK
    And the user tries the external link    ${page}    Innovation funding advice    Business innovation: what funding you can apply for - GOV.UK
    And the user tries the external link    ${page}    Events    Events - innovateuk
    And the user tries the external link    ${page}    Connect to innovation experts    Innovation: connect to experts, specialist support and facilities - GOV.UK
    And the user tries the external link    ${page}    Innovate UK blog    Innovate UK
    And the user tries the external link    ${page}    GOV.UK accessibility    Accessibility - GOV.UK
    And the user tries the link    ${page}    Terms and conditions    Terms and conditions
    And the user tries the link    ${page}    Contact us    Contact us
    And the user tries the link    ${page}    Latest funding opportunities    Innovation competitions
    And the user tries the link    ${page}    Find out more about cookies    Cookies

the user tries the link
{'fraction_non_alphanumeric': 0.0510574663533433, 'fraction_numerical': 0.002563554795983764, 'mean_word_length': 2.8503289473684212, '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': '1890721', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1194, 'n_words': 650}