Skip to content

Commit

Permalink
Add sleep before asserts in system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbrittain committed Oct 8, 2024
1 parent d730dad commit 7174c63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/system/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def select_project(driver, project_name):
option_to_select = driver.find_element(By.XPATH, f'//div[text()="{project_name}"]')
option_to_select.click()
# assert that the project is selected
time.sleep(1)
assert dropdown.text == project_name


Expand All @@ -92,6 +93,7 @@ def page_upload(driver):
)
upload_link.click()
# assert that the upload page is loaded
time.sleep(1)
assert driver.find_element(By.TAG_NAME, "h1").text == "Upload data"
return PageUpload(driver)

Expand All @@ -115,6 +117,7 @@ def select_parser(self, parser_name):
By.XPATH, f'//div[text()="{parser_name}"]'
)
option_to_select.click()
time.sleep(1)
assert dropdown.text == parser_name

def select_data_file(self, file_path):
Expand Down

0 comments on commit 7174c63

Please sign in to comment.