<commit_before>*** Settings ***
Documentation     IFS-8002  New set of T&Cs for innovation continuity loan
...
...               IFS-8779 Subsidy Control - Create a New Competition - Initial Details
...
Suite Setup       Custom Suite Setup
Suite Teardown    Custom suite teardown
Resource          ../../../resources/defaultResources.robot
Resource          ../../../resources/common/Competition_Commons.robot
Resource          ../../../resources/common/Assessor_Commons.robot

*** Variables ***
${continuityLoanCompName}            Innovation continuity loan
${continuityLoanPSCompName}          Innovation continuity loan competition
${continuityLoanPSApplication}       Innovation continuity loan ps application
${continuityLoanCompId}              ${competition_ids["${continuityLoanCompName}"]}
${continuityLoanPSCompId}            ${competition_ids["${continuityLoanPSCompName}"]}
${continuityLoanPSApplicationId}     ${application_ids["${continuityLoanPSApplication}"]}
${continuityLoanApplicationLink}     ${server}/management/competition/${continuityLoanPSCompId}/application/${continuityLoanPSApplicationId}
${continuityLoanFeedbackLink}        ${server}/application/${continuityLoanPSApplicationId}/summary
${continuityLoanT&C'sSubTitle}       General terms and conditions of an innovation continuity
${continuityLoanT&C'sTitle}          Loans terms and conditions
${continuityLoanT&CLink}             Innovation Continuity Loan (opens in a new window)
${applicationT&CLink}                Award terms and conditions



*** Test Cases ***
Innovation continuity loan T&C's can be confirmed
    [Documentation]  IFS-8002  IFS-8779
    Given the user fills in initial details
    When the user clicks the button/link             link = Terms and conditions
    And the user confirmed terms and conditions
    Then the user should see the element             link = ${continuityLoanT&CLink}
    And the user should see the element              jQuery = p:contains("These are the terms and conditions applicants must accept for this competition.")

Innovation continuity loan T&C's can be edited
    [Documentation]  IFS-8002
    Given the user clicks the button/link       jQuery = button:contains("Edit")
    When the user selects the radio button      termsAndConditionsId  43
    And the user clicks the button/link         jQuery = button:contains("Done")
    Then the user should see the element        link = ${continuityLoanT&CLink}<commit_msg>IFS-9071: Updated AT for 9071<commit_after>*** Settings ***
Documentation     IFS-8002  New set of T&Cs for innovation continuity loan
...
...               IFS-8779 Subsidy Control - Create a New Competition - Initial Details
...
...               IFS-9071 Subsidy Control - Update Innovation Continuity Loan T&Cs
...
Suite Setup       Custom Suite Setup
Suite Teardown    Custom suite teardown
Resource          ../../../resources/defaultResources.robot
Resource          ../../../resources/common/Competition_Commons.robot
Resource          ../../../resources/common/Assessor_Commons.robot

*** Variables ***
${continuityLoanCompName}            Innovation continuity loan
${continuityLoanPSCompName}          Innovation continuity loan competition
${continuityLoanPSApplication}       Innovation continuity loan ps application
${continuityLoanCompId}              ${competition_ids["${continuityLoanCompName}"]}
${continuityLoanPSCompId}            ${competition_ids["${continuityLoanPSCompName}"]}
${continuityLoanPSApplicationId}     ${application_ids["${continuityLoanPSApplication}"]}
${continuityLoanApplicationLink}     ${server}/management/competition/${continuityLoanPSCompId}/application/${continuityLoanPSApplicationId}
${continuityLoanFeedbackLink}        ${server}/application/${continuityLoanPSApplicationId}/summary
${continuityLoanT&C'sSubTitle}       General terms and conditions of an innovation continuity loan from
${continuityLoanT&C'sTitle}          Loans terms and conditions
${continuityLoanT&CLink}             Innovation Continuity Loan (opens in a new window)
${applicationT&CLink}                Award terms and conditions



*** Test Cases ***
Innovation continuity loan T&C's can be confirmed
    [Documentation]  IFS-8002  IFS-8779
    Given the user fills in initial details
    When the user clicks the button/link             link = Terms and conditions
    And the user confirmed terms and conditions
    Then the user should see the element             link = ${continuityLoanT&CLink}
    And the user should see the element              jQuery = p:contains("These are the terms and conditions applicants must accept for this competition.")

Innovation continuity loan T&C's can be edited
    [Documentation]  IFS-8002
    Given the user clicks the button/link       jQuery = button:contains("Edit")
    When the user selects the radio button      termsAndConditionsId  43
    And the user clicks the button/link         jQuery = button:contains("Done")
    Then the user should see the element        link = ${continuityLoanT&CLink}
{'fraction_non_alphanumeric': 0.08608349900596421, 'fraction_numerical': 0.011133200795228629, 'mean_word_length': 3.3709817549956558, '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': '3234765', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1278, 'n_words': 411}