Skip to content

Commit

Permalink
Update large file load test
Browse files Browse the repository at this point in the history
Updates the large file load testing to update regex patterns to current.
  • Loading branch information
ItIsJordan committed Nov 29, 2023
1 parent 3af7645 commit 383795d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/test_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,9 @@ def test_large_file_load(app, live_server, admin_idx, logged_in_browser):
assert table_name.text == "Table 1"
assert table_description.text == "Test Table 1"
# Check that the filesize error message and size has displayed
pattern = r"The table size is (\d+(\.\d+)?) MB, which is greater than our threshold of (\d+(\.\d+)?) MB."
assert re.match(
r"Table size is: (\d+(\.\d+)?) MB",
pattern,
browser.find_element(By.ID, "filesize_table_size").text
)
# Check for load button/contents
Expand Down

0 comments on commit 383795d

Please sign in to comment.