File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
components/dash-core-components/tests/integration/graph Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -268,18 +268,16 @@ def set_data(dataset):
268
268
dash_dcc .wait_for_element ("#test-change" )
269
269
270
270
dash_dcc .find_elements ('input[type="radio"]' )[0 ].click ()
271
-
272
- assert (
273
- dash_dcc .wait_for_element ("#relayout-data" ).get_attribute ("innerHTML" ) == ""
271
+ assert dash_dcc .wait_for_text_to_equal (
272
+ "#relayout-data" , ""
274
273
), "initial graph data must contain empty string"
275
274
276
275
dash_dcc .find_elements ('input[type="radio"]' )[1 ].click ()
277
- assert (
278
- dash_dcc .wait_for_element ("#relayout-data" ).get_attribute ("innerHTML" )
279
- == "[0, 1, 2]"
276
+ assert dash_dcc .wait_for_text_to_equal (
277
+ "#relayout-data" , "[0, 1, 2]"
280
278
), "graph data must contain frame [0,1,2]"
279
+
281
280
dash_dcc .find_elements ('input[type="radio"]' )[2 ].click ()
282
- assert (
283
- dash_dcc .wait_for_element ("#relayout-data" ).get_attribute ("innerHTML" )
284
- == "[0, -1, -2]"
281
+ assert dash_dcc .wait_for_text_to_equal (
282
+ "#relayout-data" , "[0, -1, -2]"
285
283
), "graph data must contain frame [0,-1,-2]"
You can’t perform that action at this time.
0 commit comments