Skip to content

Commit ca5d66a

Browse files
committed
Modifies loading component test to include id
1 parent 9dcf243 commit ca5d66a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: components/dash-core-components/tests/integration/loading/test_loading_component.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def test_ldcp001_loading_component_initialization(dash_dcc):
1010
app = Dash(__name__)
1111

1212
app.layout = html.Div(
13-
[dcc.Loading([html.Div(id="div-1")], className="loading")], id="root"
13+
[dcc.Loading([html.Div(id="div-1")], id="loading", className="loading")],
14+
id="root",
1415
)
1516

1617
@app.callback(Output("div-1", "children"), [Input("root", "n_clicks")])
@@ -20,7 +21,7 @@ def updateDiv(children):
2021

2122
with lock:
2223
dash_dcc.start_server(app)
23-
dash_dcc.find_element(".loading .dash-spinner")
24+
dash_dcc.find_element("#loading .loading .dash-spinner")
2425
# ensure inner component is also mounted
2526
dash_dcc.wait_for_text_to_equal("#div-1", "")
2627

0 commit comments

Comments
 (0)