Skip to content

Commit

Permalink
Refactor source functional tests related to codenames and collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
nabla-c0d3 committed Mar 28, 2022
1 parent 1cc675f commit a792280
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 199 deletions.
8 changes: 0 additions & 8 deletions securedrop/tests/functional/source_navigation_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,6 @@ def submit_page_loaded():

self.wait_for(submit_page_loaded)

def _source_continues_to_submit_page_with_colliding_journalist_designation(self):
self.safe_click_by_id("continue-button")

self.wait_for(lambda: self.driver.find_element_by_css_selector(".error"))
flash_error = self.driver.find_element_by_css_selector(".error")
assert "There was a temporary problem creating your account. Please try again." \
== flash_error.text

def _source_submits_a_file(self):
with tempfile.NamedTemporaryFile() as file:
file.write(self.secret_message.encode("utf-8"))
Expand Down
Loading

0 comments on commit a792280

Please sign in to comment.