def licence_audit(driver, context, internal_url):
    case_page = ApplicationPage(driver)
    ApplicationPage(driver).go_to_cases_activity_tab(internal_url, context)
    finalised_audit = case_page.get_text_of_audit_trail_item(0)
    assert "finalised" in finalised_audit
    document_audit = case_page.get_text_of_audit_trail_item(1)
    assert context.document_template_name in document_audit
def click_on_an_application(driver):
    ApplicationPage(driver).click_copy_application()
def rerun_routing_rules(driver):
    application_page = ApplicationPage(driver)
    CasePage(driver).click_rerun_routing_rules()
    application_page.click_confirm_rerun_routing_rules()
    functions.click_submit(driver)
Beispiel #4
0
def can_click_on_the_additional_document_download_link(driver):
    assert ApplicationPage(driver).additional_document_link_is_enabled()
Beispiel #5
0
def i_wont_be_able_to_see_the_surrender_button(driver):
    text = ApplicationPage(driver).get_text_of_case_buttons()
    assert "surrender" not in text.lower()
    assert "copy" in text.lower()
Beispiel #6
0
def the_application_will_have_status(driver, status):
    assert ApplicationPage(driver).get_status() == status
Beispiel #7
0
def click_on_case(driver, context):
    ApplicationPage(driver).click_on_case_link(context.case_id)
Beispiel #8
0
def click_generated_documents(driver, context):
    CasePage(driver).change_tab(CaseTabs.DOCUMENTS)
    ApplicationPage(driver).click_generate_document_button()
def respond_to_ecju_click(driver):  # noqa
    application_page = ApplicationPage(driver)
    application_page.respond_to_ecju_query(0)
def click_the_ecju_query_tab(driver):  # noqa
    application_page = ApplicationPage(driver)
    application_page.click_ecju_query_tab()
def click_notes_tab(driver):  # noqa
    application_page = ApplicationPage(driver)
    application_page.click_notes_tab()
def i_click_edit_application(driver):  # noqa
    ApplicationPage(driver).click_edit_application_link()
def check_status_has_changed(driver, internal_url, context):
    ApplicationPage(driver).go_to_cases_activity_tab_for_eua(
        internal_url, context)
    assert "closed" in Shared(driver).get_audit_trail_text().lower()
Beispiel #14
0
def click_generated_documents_tab(driver):
    application_page = ApplicationPage(driver)
    application_page.click_generated_documents_tab()
def determine_that_there_is_a_closed_query(driver):  # noqa
    application_page = ApplicationPage(driver)
    closed_queries = application_page.get_count_of_closed_ecju_queries()
    assert closed_queries > 0
Beispiel #16
0
def i_can_see_the_generated_document(driver):
    application_page = ApplicationPage(driver)
    assert application_page.generated_documents_notification_count() == "1"
    assert application_page.generated_documents_count() == 1
def activity_tab(driver):  # noqa
    ApplicationPage(driver).click_activity_tab()
def enforcement_audit(driver, internal_url, context):
    ApplicationPage(driver).go_to_cases_activity_tab(internal_url, context)
    assert "exported the case for enforcement check" in Shared(
        driver).get_audit_trail_text()
def latest_audit_trail(driver, expected_text, no):  # noqa
    assert expected_text.lower() in ApplicationPage(
        driver).get_text_of_audit_trail_item(int(no) - 1).lower()
Beispiel #20
0
def i_click_withdraw_application(driver):
    ApplicationPage(driver).click_surrender_application_button()
Beispiel #21
0
def see_hmrc(driver, context):
    assert ApplicationPage(driver).get_type_of_case_from_page() == "HMRC Query"
    assert functions.element_with_id_exists(
        driver,
        ApplicationPage(driver).HMRC_GOODS_LOCATION)
Beispiel #22
0
def i_wont_be_able_to_see_the_withdraw_button(driver):
    text = ApplicationPage(driver).get_text_of_case_buttons()
    assert "withdraw" not in text.lower()
    assert "copy" in text.lower()
def i_see_my_queue_in_queues_to_the_case_on_page(driver, context):
    assert context.queue_name in ApplicationPage(driver).get_case_queues().text
Beispiel #24
0
def edit_button_not_present(driver):
    text = ApplicationPage(driver).get_text_of_case_buttons()
    assert "edit" not in text.lower()
Beispiel #25
0
def can_click_on_the_end_user_document_download_link(driver):
    assert ApplicationPage(driver).end_user_document_link_is_enabled()