Skip to content

Commit e6547a5

Browse files
committed
switch validation_layout test to use input instead of dropdown
looks like dropdown is generating warnings from React ATM
1 parent ce6a82c commit e6547a5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/integration/devtools/test_callback_validation.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -730,11 +730,7 @@ def multipage_app(validation=False):
730730
layout_page_2 = html.Div(
731731
[
732732
html.H2("Page 2"),
733-
dcc.Dropdown(
734-
id="page-2-dropdown",
735-
options=[{"label": i, "value": i} for i in ["LA", "NYC", "MTL"]],
736-
value="LA",
737-
),
733+
dcc.Input(id="page-2-input", value="LA"),
738734
html.Div(id="page-2-display-value"),
739735
html.Br(),
740736
dcc.Link('Navigate to "/"', id="p2_index", href="/"),
@@ -776,7 +772,7 @@ def update_output(n_clicks, input1, input2):
776772

777773
# Page 2 callbacks
778774
@app.callback(
779-
Output("page-2-display-value", "children"), [Input("page-2-dropdown", "value")]
775+
Output("page-2-display-value", "children"), [Input("page-2-input", "value")]
780776
)
781777
def display_value(value):
782778
print("display_value")
@@ -792,7 +788,7 @@ def test_dvcv014_multipage_errors(dash_duo):
792788
specs = [
793789
[
794790
"ID not found in layout",
795-
['"page-2-dropdown"', "page-2-display-value.children"],
791+
['"page-2-input"', "page-2-display-value.children"],
796792
],
797793
["ID not found in layout", ['"submit-button"', "output-state.children"]],
798794
[

0 commit comments

Comments
 (0)