<commit_before>*** Settings ***
Documentation     INFUND-1231: As a collaborator registering my company as Academic, I want to be able to enter full or partial details of the Academic organisation's name so I can select my Academic organisation from a list    #Invite flow without email. This test is using the old application
Suite Setup       Custom Suite Setup
Suite Teardown    TestTeardown User closes the browser
Force Tags        Applicant
Resource          ../../../resources/defaultResources.robot

*** Variables ***
${INVITE_LINK}    ${SERVER}/accept-invite/78aa4567-0b70-41da-8310-a0940644d0bf
${SELECT_ORGANISATION}    ${SERVER}/organisation/create/type/new-account-organisation-type
# This file uses the Application: A novel solution to an old problem  (Lead applcant: Steve.Smith)

*** Test Cases ***
Lead applicant details should show in the invite page
    [Documentation]    INFUND-1005
    Given the user navigates to the page    ${INVITE_LINK}
    When the user clicks the button/link    jQuery=.button:contains("Create")
    And the user should see the text in the page    Worth Internet Systems

User cannot continue if an organisation type is not selected
    [Documentation]    INFUND-1005, INFUND-1780, INFUND-1166
    [Tags]
    Given browser validations have been disabled
    When the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Please select an organisation type.
    Given the user selects the radio button    organisationType    3
    And the user clicks the button/link    jQuery=.button:contains("Continue")

User is able to select only one type
    [Documentation]    INFUND-1005
    Given the user navigates to the page    ${SELECT_ORGANISATION}
    When the user selects the radio button    organisationType    2
    And the user selects the radio button    organisationType    1
    Then the radio button should have the new selection    1

The type of organisation navigates to the correct page
    [Documentation]    INFUND-1780, INFUND-1231
    [Tags]
    When the user should see the text in the page    UK based business.
    And the user selects the radio button    organisationType    1
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Enter your organisation name or registration number.
    When the user goes back to the previous page
    And the user should see the text in the page    Registered on J-eS, universities, colleges.
    Given the user selects the radio button    organisationType    2
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    This is the organisation that you work for, this will search all organisations available on Je-S.
    When the user goes back to the previous page
    And the user should see the text in the page    Organisations which solely promote and conduct collaborative research and innovation.
    Given the user selects the radio button    organisationType    3
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Research and technology organisations (RTO's)
    And the user should see the text in the page    Enter your organisation name or registration number.
    When the user goes back to the previous page
    And the user should see the text in the page    A not-for-profit public sector body or charity working on innovation.
    Given the user selects the radio button    organisationType    4
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Public sector organisation or charity
    And the user should see the text in the page    Enter your organisation name or registration number.
    And the user goes back to the previous page
<commit_msg>INFUND-8527 More specific searching for element in acc test<commit_after>*** Settings ***
Documentation     INFUND-1231: As a collaborator registering my company as Academic, I want to be able to enter full or partial details of the Academic organisation's name so I can select my Academic organisation from a list    #Invite flow without email. This test is using the old application
Suite Setup       Custom Suite Setup
Suite Teardown    TestTeardown User closes the browser
Force Tags        Applicant
Resource          ../../../resources/defaultResources.robot

*** Variables ***
${INVITE_LINK}    ${SERVER}/accept-invite/78aa4567-0b70-41da-8310-a0940644d0bf
${SELECT_ORGANISATION}    ${SERVER}/organisation/create/type/new-account-organisation-type
# This file uses the Application: A novel solution to an old problem  (Lead applcant: Steve.Smith)

*** Test Cases ***
Lead applicant details should show in the invite page
    [Documentation]    INFUND-1005
    Given the user navigates to the page    ${INVITE_LINK}
    When the user clicks the button/link    jQuery=.button:contains("Create")
    And the user should see the text in the page    Worth Internet Systems

User cannot continue if an organisation type is not selected
    [Documentation]    INFUND-1005, INFUND-1780, INFUND-1166
    [Tags]
    Given browser validations have been disabled
    When the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Please select an organisation type.
    Given the user selects the radio button    organisationType    3
    And the user clicks the button/link    jQuery=.button:contains("Continue")

User is able to select only one type
    [Documentation]    INFUND-1005
    Given the user navigates to the page    ${SELECT_ORGANISATION}
    When the user selects the radio button    organisationType    2
    And the user selects the radio button    organisationType    1
    Then the radio button should have the new selection    1

The type of organisation navigates to the correct page
    [Documentation]    INFUND-1780, INFUND-1231
    [Tags]
    When the user should see the element    jQuery=.form-hint:contains("UK based business.")
    And the user selects the radio button    organisationType    1
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Enter your organisation name or registration number.
    When the user goes back to the previous page
    And the user should see the element    jQuery=.form-hint:contains("Registered on J-eS, universities, colleges.")
    Given the user selects the radio button    organisationType    2
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    This is the organisation that you work for, this will search all organisations available on Je-S.
    When the user goes back to the previous page
    And the user should see the element    jQuery=.form-hint:contains("Organisations which solely promote and conduct collaborative research and innovation.")
    Given the user selects the radio button    organisationType    3
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Research and technology organisations (RTO's)
    And the user should see the text in the page    Enter your organisation name or registration number.
    When the user goes back to the previous page
    And the user should see the element    jQuery=.form-hint:contains("A not-for-profit public sector body or charity working on innovation.")
    Given the user selects the radio button    organisationType    4
    And the user clicks the button/link    jQuery=.button:contains("Continue")
    Then the user should see the text in the page    Public sector organisation or charity
    And the user should see the text in the page    Enter your organisation name or registration number.
    And the user goes back to the previous page

{'fraction_non_alphanumeric': 0.04720976581963129, 'fraction_numerical': 0.01619332336821126, 'mean_word_length': 3.387431693989071, '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': '540517', 'n_tokens_mistral': 2074, 'n_tokens_neox': 1937, 'n_words': 1038}