Skip to content

Commit

Permalink
Update UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiaro committed Dec 4, 2019
1 parent aae6408 commit d9a836e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cove_ocds/tests_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def _url_input_browser(source_filename, output_source_url=False):
source_url = httpserver.url + '/' + source_filename

browser.get(server_url)
browser.find_element_by_partial_link_text('Link').click()
time.sleep(0.5)
browser.find_element_by_id('id_source_url').send_keys(source_url)
browser.find_element_by_css_selector("#fetchURL > div.form-group > button.btn.btn-primary").click()
Expand Down Expand Up @@ -129,8 +128,8 @@ def buttons():

time.sleep(0.5)
assert buttons() == [True, False, False]
assert 'Upload a file (.json, .csv, .xlsx)' in browser.find_elements_by_tag_name('label')[0].text
browser.find_element_by_partial_link_text('Link').click()
assert 'Supply a URL' in browser.find_elements_by_tag_name('label')[0].text
browser.find_element_by_partial_link_text('Upload').click()
browser.implicitly_wait(1)
time.sleep(0.5)
assert buttons() == [False, True, False]
Expand Down

0 comments on commit d9a836e

Please sign in to comment.