We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a9446 commit c3a7403Copy full SHA for c3a7403
tests/integration/callbacks/test_prevent_update.py
@@ -47,14 +47,15 @@ def callback2(value):
47
dash_duo.start_server(app)
48
49
input_ = dash_duo.find_element("#input")
50
- input_.send_keys("xyz")
51
- dash_duo.wait_for_text_to_equal("#input", "initial inputxyz")
+ for i, key in enumerate("xyz"):
+ input_.send_keys(key)
52
+ until(
53
+ lambda: callback1_count.value == i + 2,
54
+ timeout=3,
55
+ msg="callback1 runs 4x (initial page load and 3x through send_keys)",
56
+ )
57
- until(
- lambda: callback1_count.value == 4,
- timeout=3,
- msg="callback1 runs 4x (initial page load and 3x through send_keys)",
- )
58
+ dash_duo.wait_for_text_to_equal("#input", "initial inputxyz")
59
60
assert (
61
callback2_count.value == 0
0 commit comments