Skip to content

Commit bc38c13

Browse files
committed
Rename cancel -> shared_cancel
1 parent 384e12a commit bc38c13

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/integration/long_callback/app_page_cancel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
[
2020
dcc.Link("page1", "/"),
2121
dcc.Link("page2", "/2"),
22-
html.Button("Cancel", id="cancel"),
22+
html.Button("Cancel", id="shared_cancel"),
2323
page_container,
2424
]
2525
)
@@ -59,7 +59,7 @@
5959
],
6060
cancel=[
6161
Input("cancel1", "n_clicks"),
62-
Input("cancel", "n_clicks"),
62+
Input("shared_cancel", "n_clicks"),
6363
],
6464
background=True,
6565
prevent_initial_call=True,
@@ -78,7 +78,7 @@ def on_click1(n_clicks):
7878
],
7979
cancel=[
8080
Input("cancel2", "n_clicks"),
81-
Input("cancel", "n_clicks"),
81+
Input("shared_cancel", "n_clicks"),
8282
],
8383
background=True,
8484
prevent_initial_call=True,

tests/integration/long_callback/test_basic_long_callback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def test_lcbc016_multi_page_cancel(dash_duo, manager):
570570
dash_duo.start_server(app)
571571
dash_duo.find_element("#start1").click()
572572
dash_duo.wait_for_text_to_equal("#progress1", "running")
573-
dash_duo.find_element("#cancel").click()
573+
dash_duo.find_element("#shared_cancel").click()
574574
dash_duo.wait_for_text_to_equal("#progress1", "idle")
575575
time.sleep(2.1)
576576
dash_duo.wait_for_text_to_equal("#output1", "initial")
@@ -586,7 +586,7 @@ def test_lcbc016_multi_page_cancel(dash_duo, manager):
586586

587587
dash_duo.find_element("#start2").click()
588588
dash_duo.wait_for_text_to_equal("#progress2", "running")
589-
dash_duo.find_element("#cancel").click()
589+
dash_duo.find_element("#shared_cancel").click()
590590
dash_duo.wait_for_text_to_equal("#progress2", "idle")
591591
time.sleep(2.1)
592592
dash_duo.wait_for_text_to_equal("#output2", "initial")

0 commit comments

Comments
 (0)