Skip to content

Commit 980961f

Browse files
committed
attempt verify sync and asyc mathjax in graph_varia tests
1 parent fa48268 commit 980961f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,11 @@ def test_grva011_without_mathjax(dash_dcc, is_eager):
927927

928928
dash_dcc.start_server(app)
929929
assert dash_dcc.wait_for_element(".gtitle").text == "Apple: $2, Orange: $3"
930+
931+
scripts = dash_dcc.driver.find_elements(By.CSS_SELECTOR, "script")
932+
assert findSyncMathJax(scripts) is None
933+
assert findAsyncMathJax(scripts) is None
934+
930935
assert dash_dcc.get_logs() == []
931936

932937

@@ -949,4 +954,9 @@ def test_grva012_with_mathjax(dash_dcc, is_eager):
949954

950955
dash_dcc.start_server(app)
951956
dash_dcc.wait_for_element(".gtitle-math")
957+
958+
scripts = dash_dcc.driver.find_elements(By.CSS_SELECTOR, "script")
959+
assert findSyncMathJax(scripts) is None
960+
assert findAsyncMathJax(scripts) is None
961+
952962
assert dash_dcc.get_logs() == []

0 commit comments

Comments
 (0)