Пример #1
0
def step_wait_element_clickable(context, element):
    nominapage = NominaPage(context)
    nominapage.wait_for_element_clickable(*nominapage.locator_map[element])
Пример #2
0
def step_close_modal_change_password(context):
    nominapage = NominaPage(context)
    nominapage.close_modal_change_password()
Пример #3
0
def step_save_employee_changes(context):
    nominapage = NominaPage(context)
    nominapage.save_employee_changes()
Пример #4
0
def step_wait_for_visibility(context, element):
    context.element = element
    nominapage = NominaPage(context)
    nominapage.wait_for_element_clickable(*nominapage.locator_map[element])
Пример #5
0
def step_select_comenzar(context):
    nominapage = NominaPage(context)
    nominapage.select_comenzar()
Пример #6
0
def step_modify_salary(context, salary):
    nominapage = NominaPage(context)
    nominapage.modify_salary(salary)
Пример #7
0
def step_section_close(context):
    nominapage = NominaPage(context)
    nominapage.close_session()
Пример #8
0
def step_select_date(context, date):
    nominapage = NominaPage(context)
    nominapage.select_date(date)
Пример #9
0
def step_unselect_all(context):
    nominapage = NominaPage(context)
    nominapage.unselect_all()
Пример #10
0
def step_section_calculate(context):
    nominapage = NominaPage(context)
    nominapage.select_admin_menu()
Пример #11
0
def step_continue_step_2(context, step):
    nominapage = NominaPage(context)
    nominapage.continue_step_2()
Пример #12
0
def step_confirm_delete_payroll_employee(context):
    nominapage = NominaPage(context)
    nominapage.confirm_delete_employee()
Пример #13
0
def step_open_third_employee(context):
    nominapage = NominaPage(context)
    nominapage.open_detail_third_employee()
Пример #14
0
def step_createnomina(context):
    nominapage = NominaPage(context)
    nominapage.new_nomina()
Пример #15
0
def step_section_calculate(context):
    nominapage = NominaPage(context)
    nominapage.section_calculate()
Пример #16
0
def step_search_nomina_group(context, group):
    nominapage = NominaPage(context)
    nominapage.search_nomina_group(group)
Пример #17
0
def step_assert_payroll_create(context):
    nominapage = NominaPage(context)
    assert "Nómina Semanal Automation" in \
           nominapage.get_text_element(*nominapage.locator_map["assertpayrollname"])
Пример #18
0
def step_select_range_incidents(context, start, end):
    nominapage = NominaPage(context)
    nominapage.select_range_incidents(start, end)
Пример #19
0
def step_assert_edit_salary(context):
    nominapage = NominaPage(context)
    assert "$5,000.00" in \
           nominapage.get_text_element(*nominapage.locator_map["assertsalaryfirstemployee"])
Пример #20
0
def step_open_detail(context):
    nominapage = NominaPage(context)
    nominapage.open_detail_first_employee()
Пример #21
0
def step_assert_employees(context):
    nominapage = NominaPage(context)
    assert 8 == nominapage.count_elements("assertcountemployees")
Пример #22
0
def step_select_comenzar(context):
    nominapage = NominaPage(context)
    nominapage.remove_payroll()
Пример #23
0
def step_select_comenzar(context):
    nominapage = NominaPage(context)
    nominapage.confirm_remove_payroll()
    time.sleep(5)