def test_config_modal_processes_not_integer(data): actions.refresh_page() test_builder.open_run_configurations_modal() actions.clear_element(test_run_config_modal.processes_input) actions.send_keys(test_run_config_modal.processes_input, 'abc') actions.click(test_run_config_modal.run_button) common.assert_info_bar_message('Processes must be an integer')
def test_config_modal_processes_less_than_1(data): test_builder.open_run_configurations_modal() actions.assert_element_value(test_run_config_modal.processes_input, '1') actions.clear_element(test_run_config_modal.processes_input) actions.send_keys(test_run_config_modal.processes_input, '0') actions.click(test_run_config_modal.run_button) common.assert_info_bar_message('Processes must be at least one')
def test_config_modal_env_doesnt_exist(data): actions.refresh_page() test_builder.open_run_configurations_modal() actions.send_keys(test_run_config_modal.environments_input, 'not-existent-env') actions.click(test_run_config_modal.run_button) common.assert_info_bar_message( 'Environment not-existent-env does not exist for project test')
def test(data): test_builder.open_run_configurations_modal() test_run_config_modal.select_env('foo') test_run_config_modal.select_env('bar') actions.assert_element_attribute(test_run_config_modal.environments_input, 'value', 'foo, bar, ') actions.click(test_run_config_modal.run_button) test_run_modal.wait_for_test_to_run() test_run_modal.assert_amount_of_sets(2)
def test(data): test_builder_common.add_variable_to_datatable('foo', ['1', '2']) test_builder.save_test() test_builder.open_run_configurations_modal() actions.clear_element(test_run_config_modal.browser_input) test_run_config_modal.select_browser('chrome') test_run_config_modal.select_browser('firefox') test_run_config_modal.select_env('foo') test_run_config_modal.select_env('bar') actions.click(test_run_config_modal.run_button) test_run_modal.wait_for_test_to_run() test_run_modal.assert_amount_of_sets(8)
def test(data): test_builder.open_run_configurations_modal() actions.assert_element_attribute(test_run_config_modal.browser_input, 'value', 'chrome, ') actions.clear_element(test_run_config_modal.browser_input) test_run_config_modal.select_browser('chrome') test_run_config_modal.select_browser('firefox') actions.assert_element_attribute(test_run_config_modal.browser_input, 'value', 'chrome, firefox, ') actions.click(test_run_config_modal.run_button) test_run_modal.wait_for_test_to_run() test_run_modal.assert_amount_of_sets(2)
def test(data): test_builder.open_run_configurations_modal() actions.click(test_run_config_modal.run_button) test_run_modal.assert_result('success')