<commit_before>*** Settings ***
Documentation
...     Verify Create Affiliations functionality

Resource        cumulusci/robotframework/Salesforce.robot
Resource        robot/EDA/resources/EDA.robot
Library         robot/EDA/resources/EDA.py
Library         DateTime
Library         cumulusci.robotframework.PageObjects
...             robot/EDA/resources/ContactsPageObject.py

Test Setup      Initialize test setup

Suite Setup     Run keywords
...             Initialize test data
...             Open test browser

Suite Teardown  Run keywords
...             Close Browser 

*** Test Cases ***
Verify affiliations with contacts
    Current page should be                  Home
    ...                                     Contacts

    Go To Object Home                       Contact
    Select contact                          ${CONTACT.FirstName}
    ...                                     ${CONTACT.LastName}

    Wait for Locator                        eda_settings.affiliations_new
    Click on Element                        eda_settings.affiliations_new
    Wait for Locator                        eda_settings.new_account
    Click on Element                        eda_settings.new_account

    Wait for Locator                        academic_program
    Click on Element                        academic_program

    Wait for Locator                        new_account_next_button
    Click on Element                        new_account_next_button

    Wait for Locator                        new_account_name
    Populate Field                          Account Name    Robot Academic Program Account

    Wait for Locator                        new_account_save_button
    Click on Element                        new_account_save_button
    Close toast message

    Wait for Locator                        new_program_enrollment_save_button
    Click on Element                        new_program_enrollment_save_button
    Close toast message

    Wait for Locator                        eda_settings.affiliated_accounts
    Click on Element                        eda_settings.affiliated_accounts

    Wait for Locator                        eda_settings.affiliation_match

Verify affiliations with blank record types and mismatched primary affiliations

    # Create a new contact and populate the Primary Business Organization and Lastname
    Create next contact
    Go To Object Home                       Contact
    Select contact                          ${CONTACT2.FirstName}
    ...                                     ${CONTACT2.LastName}<commit_msg>add unstable tag to two tests until proven stable<commit_after>*** Settings ***
Documentation
...     Verify Create Affiliations functionality

Resource        cumulusci/robotframework/Salesforce.robot
Resource        robot/EDA/resources/EDA.robot
Library         robot/EDA/resources/EDA.py
Library         DateTime
Library         cumulusci.robotframework.PageObjects
...             robot/EDA/resources/ContactsPageObject.py

Test Setup      Initialize test setup

Suite Setup     Run keywords
...             Initialize test data
...             Open test browser

Suite Teardown  Run keywords
...             Close Browser 

*** Test Cases ***
Verify affiliations with contacts
    [tags]                          unstable
    Current page should be                  Home
    ...                                     Contacts

    Go To Object Home                       Contact
    Select contact                          ${CONTACT.FirstName}
    ...                                     ${CONTACT.LastName}

    Wait for Locator                        eda_settings.affiliations_new
    Click on Element                        eda_settings.affiliations_new
    Wait for Locator                        eda_settings.new_account
    Click on Element                        eda_settings.new_account

    Wait for Locator                        academic_program
    Click on Element                        academic_program

    Wait for Locator                        new_account_next_button
    Click on Element                        new_account_next_button

    Wait for Locator                        new_account_name
    Populate Field                          Account Name    Robot Academic Program Account

    Wait for Locator                        new_account_save_button
    Click on Element                        new_account_save_button
    Close toast message

    Wait for Locator                        new_program_enrollment_save_button
    Click on Element                        new_program_enrollment_save_button
    Close toast message

    Wait for Locator                        eda_settings.affiliated_accounts
    Click on Element                        eda_settings.affiliated_accounts

    Wait for Locator                        eda_settings.affiliation_match

Verify affiliations with blank record types and mismatched primary affiliations
    [tags]                          unstable
    # Create a new contact and populate the Primary Business Organization and Lastname
    Create next contact
    Go To Object Home                       Contact
    Select contact                          ${CONTACT2.FirstName}
    ...                                     ${CONTACT2.LastName}
{'fraction_non_alphanumeric': 0.031031220435193945, 'fraction_numerical': 0.0007568590350047304, 'mean_word_length': 1.3640429338103757, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1461961', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1095, 'n_words': 355}