diff --git a/features/steps/proposal_collaborator.py b/features/steps/proposal_collaborator.py index 41cbc93..e83d91e 100644 --- a/features/steps/proposal_collaborator.py +++ b/features/steps/proposal_collaborator.py @@ -5,15 +5,10 @@ @step('{ADD_PROPOSAL_COLLABORATOR} And set title to (.*)') def ADD_PROPOSAL_COLLABORATOR_set_title(step, val): - try: - el = world.browser.find_element_by_id('edit-title') - el.clear() - el.send_keys(val) - sleep(world.delay) - except: - world.browser.save_screenshot('error_screenshot.png') - raise - + el = world.browser.find_element_by_id('edit-title') + el.clear() + el.send_keys(val) + sleep(world.delay) @step('{ADD_PROPOSAL_COLLABORATOR} And set description to (.*)') def ADD_PROPOSAL_COLLABORATOR_set_description(step, description): @@ -30,9 +25,5 @@ def ADD_PROPOSAL_COLLABORATOR_save(step): @step('{ADD_PROPOSAL_COLLABORATOR} Then the proposal has been created and the page contains (.*)') def ADD_PROPOSAL_COLLABORATOR_verify_creation(step, confirmation): - try: - assert confirmation in world.browser.page_source - except: - world.browser.save_screenshot('error_screenshot.png') - raise + assert confirmation in world.browser.page_source diff --git a/features/steps/proposal_development.py b/features/steps/proposal_development.py index 547c9e4..530371c 100644 --- a/features/steps/proposal_development.py +++ b/features/steps/proposal_development.py @@ -5,14 +5,10 @@ @step('{ADD_PROPOSAL_DEVELOPMENT} And set title to (.*)') def ADD_PROPOSAL_DEVELOPMENT_set_title(step, val): - try: - el = world.browser.find_element_by_id('edit-title') - el.clear() - el.send_keys(val) - sleep(world.delay) - except: - world.browser.save_screenshot('error_screenshot.png') - raise + el = world.browser.find_element_by_id('edit-title') + el.clear() + el.send_keys(val) + sleep(world.delay) @step('{ADD_PROPOSAL_DEVELOPMENT} And set description to (.*)') def ADD_PROPOSAL_DEVELOPMENT_set_description(step, val): @@ -116,8 +112,4 @@ def ADD_PROPOSAL_DEVELOPMENT_save(step): @step('{ADD_PROPOSAL_DEVELOPMENT} Then the proposal has been created and the page contains (.*)') def ADD_PROPOSAL_DEVELOPMENT_verify_creation(step, confirmation): - try: - assert confirmation in world.browser.page_source - except: - world.browser.save_screenshot('error_screenshot.png') - raise + assert confirmation in world.browser.page_source diff --git a/features/steps/proposal_private_industry.py b/features/steps/proposal_private_industry.py index 7dad2ab..e9f9299 100644 --- a/features/steps/proposal_private_industry.py +++ b/features/steps/proposal_private_industry.py @@ -5,14 +5,10 @@ @step('{ADD_PROPOSAL_PRIVATE_INDUSTRY} And set title to (.*)') def ADD_PROPOSAL_PRIVATE_INDUSTRY_set_title(step, val): - try: - el = world.browser.find_element_by_id('edit-title') - el.clear() - el.send_keys(val) - sleep(world.delay) - except: - world.browser.save_screenshot('error_screenshot.png') - raise + el = world.browser.find_element_by_id('edit-title') + el.clear() + el.send_keys(val) + sleep(world.delay) @step('{ADD_PROPOSAL_PRIVATE_INDUSTRY} And set description to (.*)') def ADD_PROPOSAL_PRIVATE_INDUSTRY_set_description(step, description): @@ -29,8 +25,4 @@ def ADD_PROPOSAL_PRIVATE_INDUSTRY_save(step): @step('{ADD_PROPOSAL_PRIVATE_INDUSTRY} Then the proposal has been created and the page contains (.*)') def ADD_PROPOSAL_PRIVATE_INDUSTRY_verify_creation(step, confirmation): - try: - assert confirmation in world.browser.page_source - except: - world.browser.save_screenshot('error_screenshot.png') - raise + assert confirmation in world.browser.page_source diff --git a/features/steps/proposal_research.py b/features/steps/proposal_research.py index 883b3cc..9616a10 100644 --- a/features/steps/proposal_research.py +++ b/features/steps/proposal_research.py @@ -5,14 +5,10 @@ @step('{ADD_PROPOSAL_RESEARCH} And set title to (.*)') def ADD_PROPOSAL_RESEARCH_set_title(step, val): - try: - el = world.browser.find_element_by_id('edit-title') - el.clear() - el.send_keys(val) - sleep(world.delay) - except: - world.browser.save_screenshot('error_screenshot.png') - raise + el = world.browser.find_element_by_id('edit-title') + el.clear() + el.send_keys(val) + sleep(world.delay) @step('{ADD_PROPOSAL_RESEARCH} And set scientific goals to (.*)') def ADD_PROPOSAL_RESEARCH_set_scientific_goals(step, val): @@ -176,8 +172,4 @@ def ADD_PROPOSAL_RESEARCH_save(step): @step('{ADD_PROPOSAL_RESEARCH} Then the proposal has been created and the page contains (.*)') def ADD_PROPOSAL_RESEARCH_verify_creation(step, confirmation): - try: - assert confirmation in world.browser.page_source - except: - world.browser.save_screenshot('error_screenshot.png') - raise + assert confirmation in world.browser.page_source diff --git a/features/steps/proposal_teaching.py b/features/steps/proposal_teaching.py index b40b626..e00f82a 100644 --- a/features/steps/proposal_teaching.py +++ b/features/steps/proposal_teaching.py @@ -5,15 +5,10 @@ @step('{ADD_PROPOSAL_TEACHING} And set title to (.*)') def ADD_PROPOSAL_TEACHING_set_title(step, val): - try: - - el = world.browser.find_element_by_id('edit-title') - el.clear() - el.send_keys(val) - sleep(world.delay) - except: - world.browser.save_screenshot('error_screenshot.png') - raise + el = world.browser.find_element_by_id('edit-title') + el.clear() + el.send_keys(val) + sleep(world.delay) @step('{ADD_PROPOSAL_TEACHING} And set description to (.*)') def ADD_PROPOSAL_TEACHING_set_description(step, description): @@ -30,8 +25,4 @@ def ADD_PROPOSAL_TEACHING_save(step): @step('{ADD_PROPOSAL_TEACHING} Then the proposal has been created and the page contains (.*)') def ADD_PROPOSAL_TEACHING_verify_creation(step, confirmation): - try: - assert confirmation in world.browser.page_source - except: - world.browser.save_screenshot('error_screenshot.png') - raise + assert confirmation in world.browser.page_source