def i_see_the_application_overview(driver, context): # noqa element = TaskListPage(driver).get_text_of_lite_task_list_items() assert context.app_name in element app_id = driver.current_url[-36:] context.app_id = app_id
def name_is_defined(driver, context): assert context.name in TaskListPage( driver).get_text_of_lite_task_list_items()
def reference_code_added(driver, context): assert context.reference_code in TaskListPage( driver).get_text_of_lite_task_list_items()
def go_to_task_list_section(driver, section, status): # noqa assert TaskListPage(driver).get_section_status(section) == status
def sections_appear_on_task_list(driver, sections): # noqa sections = sections.split(", ") for section in sections: assert TaskListPage(driver).get_section(section) is not None
def no_documents_are_left_on_the_application(driver): # noqa assert not TaskListPage(driver).find_remove_party_link()
def i_remove_a_third_party_from_the_application(driver): # noqa remove_good_link = TaskListPage(driver).find_remove_party_link() driver.execute_script("arguments[0].click();", remove_good_link) functions.click_back_link(driver)
def no_consignee_is_set_on_the_application(driver): # noqa assert not TaskListPage(driver).find_remove_party_link()
def i_remove_the_consignee_off_the_application(driver): # noqa remove_consignee_link = TaskListPage(driver).find_remove_party_link() driver.execute_script("arguments[0].click();", remove_consignee_link) functions.click_back_link(driver)
def go_to_task_list_section(driver, section): # noqa TaskListPage(driver).click_on_task_list_section(section)