From 39949c88cfb7705fc3b56f2b964a937765262ca9 Mon Sep 17 00:00:00 2001 From: Johannes Wilm Date: Tue, 6 Feb 2024 07:49:16 +0100 Subject: [PATCH] additional test robustness --- fiduswriter/document/tests/test_collaboration.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fiduswriter/document/tests/test_collaboration.py b/fiduswriter/document/tests/test_collaboration.py index 5ba2d0c41..b6483e225 100644 --- a/fiduswriter/document/tests/test_collaboration.py +++ b/fiduswriter/document/tests/test_collaboration.py @@ -865,10 +865,12 @@ def test_comment(self): len(self.get_comment(self.driver)), len(self.get_comment(self.driver2)), ) - + time.sleep(1) # Add comment answer - self.driver2.find_element( - By.CSS_SELECTOR, ".margin-box.comment" + WebDriverWait(self.driver2, self.wait_time).until( + EC.element_to_be_clickable( + (By.CSS_SELECTOR, ".margin-box.comment") + ) ).click() WebDriverWait(self.driver2, self.wait_time).until( EC.presence_of_element_located(