<commit_before>*** Settings ***
Documentation     INFUND-1859: As an applicant I want the Eligibility (process information) separate from applying, so that i don't have to apply in order to find out general information
Suite Setup       The guest user opens the browser
Suite Teardown    TestTeardown User closes the browser
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

*** Variables ***
${ELIGIBILITY}    ${SERVER}/competition/1/info/eligibility
${Before you apply}    ${SERVER}/competition/1/info/before-you-apply
${What we ask you}    ${SERVER}/competition/1/info/what-we-ask-you

*** Test Cases ***
User goes to the Eligibility page
    [Documentation]    INFUND-1859
    Given the user navigates to the page    ${COMPETITION_DETAILS_URL}
    When the user clicks the button/link    jQuery=.column-third .button:contains("Apply now")
    Then the user should be redirected to the correct page    ${ELIGIBILITY}

User can navigate to the Before you apply pages
    [Documentation]    INFUND-1859
    When the user clicks the button/link    Link=Using the new online Innovation Funding Service
    Then the user should be redirected to the correct page    ${Before you apply}
    And the user should see the text in the page    This innovation funding service is an online service run by Innovate UK.
    And the user goes back to the previous page
    When the user clicks the button/link    link=What we ask you
    Then the user should be redirected to the correct page    ${What we ask you}
    And the user should see the text in the page    The application has the following sections<commit_msg>Changing test expectations to match content changes<commit_after>*** Settings ***
Documentation     INFUND-1859: As an applicant I want the Eligibility (process information) separate from applying, so that i don't have to apply in order to find out general information
Suite Setup       The guest user opens the browser
Suite Teardown    TestTeardown User closes the browser
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

*** Variables ***
${ELIGIBILITY}    ${SERVER}/competition/1/info/eligibility
${Before you apply}    ${SERVER}/competition/1/info/before-you-apply
${What we ask you}    ${SERVER}/competition/1/info/what-we-ask-you

*** Test Cases ***
User goes to the Eligibility page
    [Documentation]    INFUND-1859
    Given the user navigates to the page    ${COMPETITION_DETAILS_URL}
    When the user clicks the button/link    jQuery=.column-third .button:contains("Apply now")
    Then the user should be redirected to the correct page    ${ELIGIBILITY}

User can navigate to the Before you apply pages
    [Documentation]    INFUND-1859
    When the user clicks the button/link    Link=Using the new online Innovation Funding Service
    Then the user should be redirected to the correct page    ${Before you apply}
    And the user should see the text in the page    This innovation funding service is an online service run by Innovate UK.
    And the user goes back to the previous page
    When the user clicks the button/link    link=What we ask you
    Then the user should be redirected to the correct page    ${What we ask you}
    And the user should see the text in the page    This application has the following sections
{'fraction_non_alphanumeric': 0.08064938465566902, 'fraction_numerical': 0.007855459544383346, 'mean_word_length': 3.1748633879781423, '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': '2684637', 'n_tokens_mistral': 1014, 'n_tokens_neox': 967, 'n_words': 431}