Skip to content

Commit ea24105

Browse files
committed
Add wait time for usage breadthfirst layout test
1 parent 53b85fb commit ea24105

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_usage.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import importlib
33
import pytest
4+
import time
45

56

67
def create_usage_test(dash_duo, filename, dir_name="usage"):
@@ -9,6 +10,10 @@ def create_usage_test(dash_duo, filename, dir_name="usage"):
910
dash_duo.start_server(app)
1011
dash_duo.wait_for_element_by_id("cytoscape", 20)
1112

13+
# Wait for the flickr images to load
14+
if filename == "demos.usage-breadthfirst-layout":
15+
time.sleep(1)
16+
1217
directory_path = os.path.join(os.path.dirname(__file__), "screenshots", dir_name)
1318

1419
# Create directory if it doesn't already exist

0 commit comments

Comments
 (0)