From 9ac8b2be35f0bcd1b705c4552fa49a0861649e8b Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Thu, 9 Nov 2023 23:39:47 -0500 Subject: [PATCH] tests: increase sleep time after mouse actions --- tests/test_mouse_interaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_mouse_interaction.py b/tests/test_mouse_interaction.py index ccbc85b48..dbfc7ba2e 100644 --- a/tests/test_mouse_interaction.py +++ b/tests/test_mouse_interaction.py @@ -64,6 +64,7 @@ def test_double_click(browser_name, get_new_browser): button = browser.find_by_css(".db-button") button.double_click() + time.sleep(5) assert browser.find_by_css(".should-be-visible-after-double-click").is_visible( wait_time=20, ) @@ -79,7 +80,7 @@ def test_right_click(browser_name, get_new_browser): element = browser.find_by_css(".right-clicable") element.right_click() - time.sleep(2) + time.sleep(5) result_1 = browser.find_by_text("right clicked", wait_time=20).text result_2 = browser.find_by_css(".right-clicable").text