Ejemplo n.º 1
0
def test(data):
    actions.click(test_builder.test_name)
    actions.assert_element_displayed(test_builder.test_name_input)
    actions.assert_element_value(test_builder.test_name_input, data.test_name)
    actions.send_keys(test_builder.test_name_input, 'new')
    actions.press_key(test_builder.test_name_input, 'TAB')
    common.assert_toast_message_is_displayed('File was renamed')
    actions.wait_for_element_displayed(test_builder.test_name, 5)
    actions.assert_element_text(test_builder.test_name, data.test_name + 'new')
    actions.refresh_page()
    actions.assert_element_text(test_builder.test_name, data.test_name + 'new')
Ejemplo n.º 2
0
def test(data):
    actions.assert_element_not_checked(test_builder.skip_checkbox)
    actions.assert_element_not_displayed(test_builder.skip_message_input)
    actions.check_element(test_builder.skip_checkbox)
    actions.assert_element_displayed(test_builder.skip_message_input)
    actions.assert_element_value(test_builder.skip_message_input, '')
    test_builder.save_test_and_refresh_page()
    actions.assert_element_checked(test_builder.skip_checkbox)
    actions.assert_element_displayed(test_builder.skip_message_input)
    actions.assert_element_value(test_builder.skip_message_input, '')
    actions.send_keys(test_builder.skip_message_input, 'skip message')
    test_builder.save_test_and_refresh_page()
    actions.assert_element_checked(test_builder.skip_checkbox)
    actions.assert_element_displayed(test_builder.skip_message_input)
    actions.assert_element_value(test_builder.skip_message_input,
                                 'skip message')
    actions.uncheck_element(test_builder.skip_checkbox)
    test_builder.save_test()
    actions.assert_element_not_checked(test_builder.skip_checkbox)
    actions.assert_element_not_displayed(test_builder.skip_message_input)
Ejemplo n.º 3
0
def assert_test_detail_row_is_displayed(test_file, test_name):
    detail_row = test_detail_row_by_full_test_name(test_file, test_name)
    actions.assert_element_displayed(detail_row)
def test(data):
    actions.navigate(data.env.url+'special-elements/')
    actions.assert_element_displayed('#double-click-one')
    golem_steps.assert_last_step_message('Assert element #double-click-one is displayed')
    with expected_exception(AssertionError, 'element #hidden-button is not displayed'):
        actions.assert_element_displayed('#hidden-button')
Ejemplo n.º 5
0
def test(data):
    actions.click(test_builder.run_button)
    actions.wait_for_element_displayed(test_run_config_modal.config_modal)
    actions.assert_element_displayed(test_run_config_modal.config_modal)
    common.assert_info_bar_message('Select at least one environment')
Ejemplo n.º 6
0
def test(data):
    common.navigate_menu('Global Settings')
    actions.assert_element_text(settings.title, 'Global Settings')
    actions.assert_element_displayed(settings.settings_editor)