Skip to content

Commit 6424f6f

Browse files
committed
Now waits for canvas to render in click and drag calls
1 parent 503b1b5 commit 6424f6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/test_mapview_interaction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def click_and_drag_canvas(
2424
Start and end positions are 0-100 percentages of the canvas size.
2525
"""
2626
canvas = page_session.locator("canvas").first
27+
canvas.wait_for(state="visible", timeout=5000)
2728
bbox = canvas.bounding_box()
2829

2930
# Convert relative coords to absolute pixels

0 commit comments

Comments
 (0)