Skip to content

Commit

Permalink
Introduce wait before returning from select in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oysteoh committed Jun 29, 2022
1 parent 2edfa18 commit 121e538
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def select_first(dash_duo, selector):
raise AssertionError(f"No selection option for selector {selector}")
text = options[0].text
options[0].click()
wait_a_bit(dash_duo, time_seconds=0.5)
return text


Expand All @@ -87,6 +88,7 @@ def select_by_name(dash_duo, selector, name):
for option in options:
if option.text == name:
option.click()
wait_a_bit(dash_duo, time_seconds=0.5)
return name
raise AssertionError(f" Option {name} not available in {selector}")

Expand Down

0 comments on commit 121e538

Please sign in to comment.