Skip to content

fix for callbacks waiting issue #1627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix the empty initial string condition in test
  • Loading branch information
eff-kay committed May 13, 2021
commit 9701eb60372f8f6d13b47c7528582c5361c3343b
10 changes: 10 additions & 0 deletions tests/integration/callbacks/test_multiple_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,20 @@ def set_display_children(selected_country, selected_city):

dash_duo.start_server(app)

not_null = (
lambda: dash_duo.find_element("#display-selected-values").get_attribute(
"innerText"
)
!= ""
)

wait.until(not_null, 20)

new_york_text = "New York City is a city in America"
current_text = dash_duo.find_element("#display-selected-values").get_attribute(
"innerText"
)

assert current_text == new_york_text, "{} should equal {}".format(
current_text, new_york_text
)
Expand Down