diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-29 14:23:07 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-29 14:23:07 +0100 |
commit | 739b3dd6aa383f70e5442e74fb4d217d5619d110 (patch) | |
tree | 54d9ef6fad57c7dbc6283b0a2cc2cd73955dc80c /ctrack/users | |
parent | 8edc6a41c160ff75e964db45371e4ae63fb68c17 (diff) |
IncidentReport model in place and func test passing so far
Diffstat (limited to 'ctrack/users')
-rw-r--r-- | ctrack/users/tests/test_functional.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ctrack/users/tests/test_functional.py b/ctrack/users/tests/test_functional.py index 882c974..55f8de3 100644 --- a/ctrack/users/tests/test_functional.py +++ b/ctrack/users/tests/test_functional.py @@ -127,9 +127,20 @@ def test_stakeholder_logs_into_system_and_submits_incident_form( time.sleep(1) current_url = browser.current_url assert current_url == live_server + "/" + time.sleep(1) + + browser.get(current_url) # Clicks the Report a NIS incident button - browser.find_element_by_id("id_submit_incident_button").submit() + # browser.find_element_by_id("id_submit_incident_button").submit() + button = browser.find_element_by_xpath('//*[@id="id_submit_incident_button"]') + + button.click() + time.sleep(1) + + current_url = browser.current_url + + browser.get(current_url) # Gets to the correct page assert "Submit a new NIS Incident Report to DfT" in browser.title |