Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
make test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoeben committed Dec 17, 2023
1 parent 316e83a commit cf77754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SeleniumTests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_download_file(self):
if is_continue:
file_link.click()
wait.until(
lambda d: str(d.get_downloadable_files()[0]).endswith(file_name)
lambda d: len(d.get_downloadable_files()) > 0 and str(d.get_downloadable_files()[0]).endswith(file_name)
)
self.assertTrue(str(driver.get_downloadable_files()[0]).endswith(file_name))

Expand Down

0 comments on commit cf77754

Please sign in to comment.