Skip to content

Commit 7951f56

Browse files
committed
removing time from the test
1 parent 1740f4f commit 7951f56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pytest
2-
import time
32

43
from dash import Dash, Input, Output, State, dcc, html
54
import plotly.graph_objects as go
@@ -206,6 +205,7 @@ def update_figures(n_clicks):
206205
dash_dcc.wait_for_text_to_equal("#generate-btn", "Generate Figures")
207206
dash_dcc.find_element("#generate-btn").click()
208207
dash_dcc.wait_for_text_to_equal("#bounding-output", "loaded")
209-
time.sleep(0.3) # must wait for the full render
208+
dash_dcc.find_element(".dash-graph .js-plotly-plot.dash-graph--pending")
209+
dash_dcc.find_element(".dash-graph .js-plotly-plot:not(.dash-graph--pending)")
210210
dash_dcc.find_element("#bounding-btn").click()
211211
dash_dcc.wait_for_text_to_equal("#bounding-output", "true")

0 commit comments

Comments
 (0)