Skip to content

Commit

Permalink
Increase wait times in large file load e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ItIsJordan committed Nov 28, 2023
1 parent 2f062a1 commit 5092601
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/test_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def test_large_file_load(app, live_server, admin_idx, logged_in_browser):
tables = browser.find_element(By.ID, "table-list").find_elements(By.TAG_NAME, "li")

# Wait for the table to attempt to load
WebDriverWait(browser, 10).until(
WebDriverWait(browser, 15).until(
EC.visibility_of(table_name)
)
# Check the contents of the top table data
Expand All @@ -539,13 +539,13 @@ def test_large_file_load(app, live_server, admin_idx, logged_in_browser):
load_button.click()
# Check that the animation is now visible and wait for loading
assert EC.visibility_of(browser.find_element(By.ID, "filesize_table_loading"))
WebDriverWait(browser, 10).until(
WebDriverWait(browser, 15).until(
EC.visibility_of(data_table)
)

# Swap to a new table and wait (this one is under the size)
tables[1].click()
WebDriverWait(browser, 5).until(
WebDriverWait(browser, 15).until(
EC.visibility_of(data_table)
)

Expand Down

0 comments on commit 5092601

Please sign in to comment.