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

Commit cf77754

Browse files
committed
make test more robust
1 parent 316e83a commit cf77754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/SeleniumTests/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_download_file(self):
8080
if is_continue:
8181
file_link.click()
8282
wait.until(
83-
lambda d: str(d.get_downloadable_files()[0]).endswith(file_name)
83+
lambda d: len(d.get_downloadable_files()) > 0 and str(d.get_downloadable_files()[0]).endswith(file_name)
8484
)
8585
self.assertTrue(str(driver.get_downloadable_files()[0]).endswith(file_name))
8686

0 commit comments

Comments
 (0)