Beispiel #1
0
def i_choose_to_add_a_new_individual_organisation(driver, context):
    OrganisationsPage(driver).click_new_organisation_button()
    organisations_form_page = OrganisationsFormPage(driver)
    organisations_form_page.select_type("individual")
    organisations_form_page.select_location("abroad")
    organisations_form_page.fill_in_individual_info_page_1(context)
    organisations_form_page.enter_site_details(context, "abroad")
Beispiel #2
0
def i_choose_to_add_a_new_hmrc_organisation(driver, context):
    OrganisationsPage(driver).click_new_hmrc_organisation_button()
    context.organisation_name = fake.company() + " " + fake.company_suffix()
    organisations_form_page = OrganisationsFormPage(driver)
    organisations_form_page.enter_name(context.organisation_name)
    organisations_form_page.enter_site_details(context, "united_kingdom")
    context.email = fake.free_email()
    organisations_form_page.enter_email(context.email)
Beispiel #3
0
def i_choose_to_add_a_new_commercial_organisation(driver, context):
    OrganisationsPage(driver).click_new_organisation_button()
    organisations_form_page = OrganisationsFormPage(driver)
    organisations_form_page.select_type("commercial")
    organisations_form_page.select_location("united_kingdom")
    organisations_form_page.fill_in_company_info_page_1(context)
    organisations_form_page = OrganisationsFormPage(driver)
    organisations_form_page.enter_site_details(context, "united_kingdom")
    context.email = fake.free_email()
    organisations_form_page.enter_email(context.email)
Beispiel #4
0
def verify_registered_individual_organisation(driver, context):
    wait_until_page_is_loaded(driver)
    # Assert that the success info bar is visible
    assert functions.element_with_css_selector_exists(
        driver,
        Shared(driver).SNACKBAR_SELECTOR)
    OrganisationsPage(driver).search_for_org_in_filter(
        context.organisation_name)
    row = OrganisationPage(driver).get_organisation_row()
    assert context.organisation_name in row["name"]
Beispiel #5
0
def verify_hmrc_registered_organisation(driver, context):
    OrganisationsPage(driver).search_for_org_in_filter(
        context.organisation_name)
    assert context.organisation_name in Shared(
        driver).get_text_of_lite_table_body()
Beispiel #6
0
def organisation_in_list(driver, context):
    OrganisationsPage(driver).search_for_org_in_filter(
        context.organisation_name)
    assert driver.find_element_by_id(context.organisation_id).is_displayed()
Beispiel #7
0
def click_active_tab(driver):
    OrganisationsPage(driver).go_to_active_tab()
Beispiel #8
0
def click_in_review_tab(driver):
    OrganisationsPage(driver).go_to_in_review_tab()
Beispiel #9
0
def click_organisation(driver, context):
    OrganisationsPage(driver).click_organisation(context.organisation_name)
    OrganisationPage(driver).click_review_organisation()
Beispiel #10
0
def in_review_tab(driver):
    OrganisationsPage(driver).go_to_active_tab()