Skip to content

Commit 6623ba2

Browse files
committed
verify that it is left as normal text
1 parent 7c12efa commit 6623ba2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

components/dash-core-components/tests/integration/graph/test_graph_varia.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,9 +913,20 @@ def load_chart(n_clicks):
913913
def test_grva011_without_mathjax(dash_dcc, is_eager):
914914
app = Dash(__name__, eager_loading=is_eager, assets_folder="../../assets")
915915

916-
app.layout = html.Div([dcc.Graph(id="output", figure={"data": [{"y": [3, 1, 2]}]})])
916+
app.layout = html.Div(
917+
[
918+
dcc.Graph(
919+
id="output",
920+
figure={
921+
"data": [{"y": [3, 1, 2]}],
922+
"layout": {"title": {"text": "Apple: $2, Orange: $3"}},
923+
},
924+
)
925+
]
926+
)
917927

918928
dash_dcc.start_server(app)
929+
assert dash_dcc.wait_for_element(".gtitle").text == "Apple: $2, Orange: $3"
919930
assert dash_dcc.get_logs() == []
920931

921932

0 commit comments

Comments
 (0)