def edit_queue_with_countersigning(driver, context): queues = QueuesPages(driver) no = utils.get_element_index_by_text( Shared(driver).get_rows_in_lite_table(), context.queue_name, complete_match=True) queues.click_queue_edit_button(no) QueuesPages(driver).select_countersigning_queue( context.countersigning_queue_name) Shared(driver).click_submit()
def click_on_edit_queue(driver, context): queues = QueuesPages(driver) no = utils.get_element_index_by_text( Shared(driver).get_rows_in_lite_table(), context.queue_name, complete_match=False) queues.click_queue_edit_button(no) context.queue_name = str(context.queue_name)[:12] + "edited" QueuesPages(driver).enter_queue_name(context.queue_name) Shared(driver).click_submit()
def no_cases_shown(driver): assert QueuesPages(driver).is_no_cases_notice_displayed( ), "There are cases shown in the newly created queue."
def add_queue(driver, request, api_url, context): QueuesPages(driver).click_add_a_queue_button() context.queue_name = f"Review {utils.get_formatted_date_time_d_h_m_s()}" QueuesPages(driver).enter_queue_name(context.queue_name) Shared(driver).click_submit()
def see_number_of_checkboxes_selected(driver, context, num): ApplicationPage(driver).click_move_case_button() # May be more queues due to case routing automation assert int(QueuesPages(driver).get_number_of_selected_queues()) >= int(num)
def see_queue_in_queue_list_with_countersigning_queue(driver, context): Shared(driver).filter_by_name(context.queue_name) row = QueuesPages(driver).get_row_text(context.queue_name) assert context.countersigning_queue_name in row assert context.countersigning_queue_name in row
def see_queue_in_queue_list(driver, context): Shared(driver).filter_by_name(context.queue_name) assert context.queue_name in QueuesPages(driver).get_row_text( context.queue_name)