Skip to content

Commit f90b1f5

Browse files
committed
fix test reliability
1 parent 7697442 commit f90b1f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/dash-core-components/tests/integration/dropdown/test_localization.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from time import sleep
12
from dash import Dash
23
from dash.dcc import Dropdown
34
from dash.html import Div
@@ -39,11 +40,13 @@ def test_ddlo001_translations(dash_duo):
3940
)
4041

4142
dash_duo.find_element(".dash-dropdown-search").send_keys(1)
43+
sleep(0.1)
4244
assert dash_duo.find_element(".dash-dropdown-clear").accessible_name == "Annuler"
4345

4446
dash_duo.find_element(".dash-dropdown-action-button:first-child").click()
4547

4648
dash_duo.find_element(".dash-dropdown-search").send_keys(9)
49+
sleep(0.1)
4750
assert dash_duo.find_element(".dash-dropdown-option").text == "Aucun d'options"
4851

4952
assert (
@@ -84,13 +87,15 @@ def test_ddlo002_partial_translations(dash_duo):
8487
assert dash_duo.find_element(".dash-dropdown-search").accessible_name == "Lookup"
8588

8689
dash_duo.find_element(".dash-dropdown-search").send_keys(1)
90+
sleep(0.1)
8791
assert (
8892
dash_duo.find_element(".dash-dropdown-clear").accessible_name == "Clear search"
8993
)
9094

9195
dash_duo.find_element(".dash-dropdown-action-button:first-child").click()
9296

9397
dash_duo.find_element(".dash-dropdown-search").send_keys(9)
98+
sleep(0.1)
9499
assert dash_duo.find_element(".dash-dropdown-option").text == "No options found"
95100

96101
assert (

0 commit comments

Comments
 (0)