Skip to content

Commit 58b1472

Browse files
committed
Move test out of callback
1 parent 571d6ce commit 58b1472

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/renderer/test_loading_states.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,17 @@ def test_rdls003_update_title(dash_duo, kwargs, expected_update_title):
198198
)
199199
def update(n):
200200
with lock:
201-
# check for update-title while processing callback
202-
until(lambda: dash_duo.driver.title == expected_update_title, timeout=1)
203-
return n
201+
return n
204202

205203
with lock:
206204
dash_duo.start_server(app)
207-
# check for update-title on load
205+
# check for update-title during startup
208206
until(lambda: dash_duo.driver.title == expected_update_title, timeout=1)
209207

210208
# check for original title after loading
211209
until(lambda: dash_duo.driver.title == "Dash", timeout=1)
212210

213211
with lock:
214212
dash_duo.find_element("#button").click()
213+
# check for update-title while processing callback
214+
until(lambda: dash_duo.driver.title == expected_update_title, timeout=1)

0 commit comments

Comments
 (0)