Skip to content

Commit 574d550

Browse files
committed
Improve test reliability
1 parent 9a94315 commit 574d550

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/dash-core-components/tests/integration/misc/test_persistence.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
import json
3+
from time import sleep
34
from selenium.webdriver.common.keys import Keys
45

56
from dash import Dash, Input, Output, dcc, html
@@ -133,12 +134,14 @@ def make_output(*args):
133134
dash_dcc.find_element("#dropdownsingle .dash-dropdown-search").send_keys(
134135
"one" + Keys.ENTER
135136
)
137+
sleep(0.2)
136138
dash_dcc.find_element("#dropdownsingle .dash-dropdown-option").click()
137139

138140
dash_dcc.find_element("#dropdownmulti").click()
139141
dash_dcc.find_element("#dropdownmulti .dash-dropdown-search").send_keys(
140142
"six" + Keys.ENTER
141143
)
144+
sleep(0.2)
142145
dash_dcc.find_element("#dropdownmulti .dash-dropdown-option").click()
143146

144147
dash_dcc.find_element("#input").send_keys(" maybe")

0 commit comments

Comments
 (0)