Skip to content

Commit

Permalink
tests: increase sleep time after mouse actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Nov 10, 2023
1 parent 2ca6018 commit 9ac8b2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_mouse_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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

Expand Down

0 comments on commit 9ac8b2b

Please sign in to comment.