Skip to content

Commit 975177d

Browse files
committed
adding time sleep to have the button wait for rendering adjustments
1 parent 4ed0050 commit 975177d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

34
from dash import Dash, Input, Output, State, dcc, html
45
import plotly.graph_objects as go
@@ -205,5 +206,6 @@ def update_figures(n_clicks):
205206
dash_dcc.wait_for_text_to_equal("#generate-btn", "Generate Figures")
206207
dash_dcc.find_element("#generate-btn").click()
207208
dash_dcc.wait_for_text_to_equal("#bounding-output", "loaded")
209+
time.sleep(.1) ## must wait for the full render
208210
dash_dcc.find_element("#bounding-btn").click()
209211
dash_dcc.wait_for_text_to_equal("#bounding-output", "true")

0 commit comments

Comments
 (0)