Пример #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()
Пример #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()
Пример #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()
Пример #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()
Пример #5
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('admin_user', search)
Пример #6
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('entity', search)
Пример #7
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('admin_user', search)
Пример #8
0
def _remove_directory_config(directory):
    common.remove_element_if_exist('directory_config', directory['name'])
Пример #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)
Пример #10
0
def _remove_directory_config(directory):
    common.remove_element_if_exist('directory_config', directory['name'])
Пример #11
0
def remove_entry_matching(search):
    phonebook_search(search)
    common.remove_element_if_exist("phonebook", search)
    phonebook_search('')
Пример #12
0
def given_there_is_no_ldap_filter(step, search):
    common.remove_element_if_exist('LDAP filter', search)
Пример #13
0
def given_there_is_no_ldap_filter(step, search):
    common.remove_element_if_exist('LDAP filter', search)
Пример #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)
Пример #15
0
def given_there_is_no_cti_profile(step, search):
    common.remove_element_if_exist('CTI profile', search)
Пример #16
0
def remove_incall_with_did(incall_did):
    common.remove_element_if_exist('incall', incall_did)
Пример #17
0
def given_there_is_no_cti_profile(step, search):
    common.remove_element_if_exist('CTI profile', search)
Пример #18
0
def given_there_is_no_callfilter(step, search):
    common.remove_element_if_exist('callfilter', search)
Пример #19
0
def given_there_is_no_callfilter(step, search):
    common.remove_element_if_exist('callfilter', search)
Пример #20
0
def given_there_is_no_pickup(step, search):
    common.remove_element_if_exist('pickup', search)
Пример #21
0
def given_no_config_file_1(step, config_file_name):
    common.remove_element_if_exist('configfiles', config_file_name)
Пример #22
0
def given_there_is_no_element(step, search):
    common.remove_element_if_exist('entity', search)
Пример #23
0
def given_no_config_file_1(step, config_file_name):
    common.remove_element_if_exist('configfiles', config_file_name)