Exemplo n.º 1
0
def add_call_form_model(call_form_name, variables):
    common.remove_element_if_exist('sheet', call_form_name, column='Model')
    common.open_url('sheet', 'add')
    form.input.set_text_field_with_label('Name :', call_form_name)
    common.go_to_tab('Sheet')
    for variable in variables:
        _add_sheet_variable(variable)
    form.submit.submit_form()
Exemplo n.º 2
0
def add_call_form_model(call_form_name, variables):
    common.remove_element_if_exist('sheet', call_form_name, column='Model')
    common.open_url('sheet', 'add')
    form.input.set_text_field_with_label('Name :', call_form_name)
    common.go_to_tab('Sheet')
    for variable in variables:
        _add_sheet_variable(variable)
    form.submit.submit_form()
Exemplo n.º 3
0
def given_i_have_a_sheet_model_with_custom_ui(step):
    sheet = step.hashes.pop()
    common.remove_element_if_exist('sheet', sheet['name'])
    common.open_url('sheet', 'add')

    form.input.set_text_field_with_label('Name :', sheet['name'])
    common.go_to_tab('Sheet')
    form.set_text_field_with_id('it-sheetactions-qtui', sheet['path to ui'])
    cti_helper.add_sheet_field(title='', display_type='form', default_value='', display_value='qtui')

    form.submit.submit_form()
Exemplo n.º 4
0
def given_i_have_a_sheet_model_with_custom_ui(step):
    sheet = step.hashes.pop()
    common.remove_element_if_exist('sheet', sheet['name'])
    common.open_url('sheet', 'add')

    form.input.set_text_field_with_label('Name :', sheet['name'])
    common.go_to_tab('Sheet')
    form.set_text_field_with_id('it-sheetactions-qtui', sheet['path to ui'])
    cti_helper.add_sheet_field(title='',
                               display_type='form',
                               default_value='',
                               display_value='qtui')

    form.submit.submit_form()
Exemplo n.º 5
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('admin_user', search)
Exemplo n.º 6
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('entity', search)
Exemplo n.º 7
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('admin_user', search)
Exemplo n.º 8
0
def _remove_directory_config(directory):
    common.remove_element_if_exist('directory_config', directory['name'])
Exemplo n.º 9
0
def remove_group_with_name(group_name):
    common.remove_element_if_exist('group', group_name)
    common.wait_until(group_is_no_longer_in_list, group_name, tries=5)
Exemplo n.º 10
0
def _remove_directory_config(directory):
    common.remove_element_if_exist('directory_config', directory['name'])
Exemplo n.º 11
0
def remove_entry_matching(search):
    phonebook_search(search)
    common.remove_element_if_exist("phonebook", search)
    phonebook_search('')
Exemplo n.º 12
0
def given_there_is_no_ldap_filter(step, search):
    common.remove_element_if_exist('LDAP filter', search)
Exemplo n.º 13
0
def given_there_is_no_ldap_filter(step, search):
    common.remove_element_if_exist('LDAP filter', search)
Exemplo n.º 14
0
def given_there_are_no_custom_lines_with_interface_beginning_with_1(
        step, interface_start):
    common.remove_element_if_exist('line', interface_start)
Exemplo n.º 15
0
def given_there_is_no_cti_profile(step, search):
    common.remove_element_if_exist('CTI profile', search)
Exemplo n.º 16
0
def remove_incall_with_did(incall_did):
    common.remove_element_if_exist('incall', incall_did)
Exemplo n.º 17
0
def given_there_is_no_cti_profile(step, search):
    common.remove_element_if_exist('CTI profile', search)
Exemplo n.º 18
0
def given_there_is_no_callfilter(step, search):
    common.remove_element_if_exist('callfilter', search)
Exemplo n.º 19
0
def given_there_is_no_callfilter(step, search):
    common.remove_element_if_exist('callfilter', search)
Exemplo n.º 20
0
def given_there_is_no_pickup(step, search):
    common.remove_element_if_exist('pickup', search)
Exemplo n.º 21
0
def given_no_config_file_1(step, config_file_name):
    common.remove_element_if_exist('configfiles', config_file_name)
Exemplo n.º 22
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('entity', search)
Exemplo n.º 23
0
def given_no_config_file_1(step, config_file_name):
    common.remove_element_if_exist('configfiles', config_file_name)