File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
tests/integration/callbacks Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ def global_callback_error_handler(err):
12
12
html .Button ("start-global" , id = "start-global" ),
13
13
html .Div (id = "output" ),
14
14
html .Div (id = "output-global" ),
15
+ html .Div (id = "error-message" ),
15
16
]
16
17
17
18
def on_callback_error (err ):
18
- set_props ("output" , {"children" : f"callback: { err } " })
19
+ set_props ("error-message" , {"children" : f"message: { err } " })
20
+ return f"callback: { err } "
19
21
20
22
@app .callback (
21
23
Output ("output" , "children" ),
@@ -38,6 +40,7 @@ def on_start_global(_):
38
40
dash_duo .find_element ("#start-local" ).click ()
39
41
40
42
dash_duo .wait_for_text_to_equal ("#output" , "callback: local error" )
43
+ dash_duo .wait_for_text_to_equal ("#error-message" , "message: local error" )
41
44
42
45
dash_duo .find_element ("#start-global" ).click ()
43
46
dash_duo .wait_for_text_to_equal ("#output-global" , "global: global error" )
You can’t perform that action at this time.
0 commit comments