Skip to content

Commit e949c96

Browse files
committed
use wait_for the title update in pare001
1 parent 1a6b59a commit e949c96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration/multi_page/test_pages_relative_path.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ def test_pare001_relative_path(dash_duo, clear_pages_state):
5050
for page in dash.page_registry.values():
5151
dash_duo.find_element("#" + page["id"]).click()
5252
dash_duo.wait_for_text_to_equal("#text_" + page["id"], "text for " + page["id"])
53-
assert dash_duo.driver.title == page["title"], "check that page title updates"
53+
dash_duo._wait_for(
54+
lambda _: dash_duo.driver.title == page["title"],
55+
msg="check that page title updates",
56+
timeout=3,
57+
)
5458

5559
assert dash_duo.get_logs() == [], "browser console should contain no error"
5660

0 commit comments

Comments
 (0)