<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
Resource          ../../resources/defaultResources.robot

*** Variables ***
${cookie_popup_message}     GOV.UK uses cookies to make the site simpler
${cookie_info_link}         https://www.gov.uk/help/cookies
#TODO update cookie info link to ${SERVER}/info/cookies when new shib image is delivered
${correct_email}            <EMAIL>
${correct_password}         <PASSWORD>

*** Test Cases ***

The cookie warning appears for a new user
    [Documentation]     INFUND-1943 INFUND-6260
    [Tags]
    When the guest user opens the browser
    And the user should see the element    id=global-cookie-message
    Then the user should see the text in the page           ${cookie_popup_message}
    And the user should see the element                     css=a[href*='${cookie_info_link}']


The warning disappears on refresh
    [Documentation]     INFUND-1943 INFUND-6260
    [Tags]
    When the user reloads the page
    Then the user should not see the element       id=global-cookie-message
    And the user should not see the element                 css=a[href*='${cookie_info_link}']<commit_msg>INFUND-6700: Removed some unnecessary keywords/ variables<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
...
...               INFUND-6260 As product owner I need to have an overview of the cookies stored, so we satisfy the cookie law and GDS guidelines
Suite Setup       Run Keywords    The guest user opens the browser
Suite Teardown    TestTeardown User closes the browser
Resource          ../../resources/defaultResources.robot    #TODO update cookie info link to ${SERVER}/info/cookies when new shib image is delivered

*** Test Cases ***
The cookie warning appears for a new user
    [Documentation]    INFUND-1943 INFUND-6260
    [Tags]
    Then the user should see the element    id=global-cookie-message
    And the user should see the text in the page    GOV.UK uses cookies to make the site simpler
    And the user should see the element    link=Find out more about cookies

The warning disappears on refresh
    [Documentation]    INFUND-1943 INFUND-6260
    [Tags]
    When the user reloads the page
    Then the user should not see the element    id=global-cookie-message
    And the user should not see the element    link=Find out more about cookies
{'fraction_non_alphanumeric': 0.0627027027027027, 'fraction_numerical': 0.016576576576576577, 'mean_word_length': 2.92090395480226, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '4333380', 'n_tokens_mistral': 762, 'n_tokens_neox': 722, 'n_words': 345}