Skip to content

Commit d09ecbe

Browse files
author
Konstantinacc
committed
Updated function _upload_test in test_user_home.py file.
The function now waits until the uploaded project is found.
1 parent 7009b90 commit d09ecbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/common/user_home/test_user_home.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def _upload_test(self, dropzone_selector, test_fname, sketch_name=None):
6666
"""
6767
try:
6868
upload_name = self.upload_project(dropzone_selector, test_fname, sketch_name)
69-
assert upload_name in self.driver.page_source
69+
selector = '#project_list li[data-name="'+ str(upload_name.lower()) +'"]'
70+
project_uploaded = self.get_element(By.CSS_SELECTOR, selector).text.split('\n')[0]
71+
assert upload_name == project_uploaded
7072
finally:
7173
self.delete_project(upload_name)
7274

0 commit comments

Comments
 (0)