tests: Add a small delay in the tests after right click.

Otherwise, the test is sometimes flaky and fails.
This commit is contained in:
Alexis Métaireau 2024-10-23 16:17:05 +02:00 committed by Yohan Boniface
parent 617c0cee56
commit c0aef13021

View file

@ -267,7 +267,7 @@ def test_websocket_connection_can_sync_cloned_polygons(
b_polygon = peerB.locator("path") b_polygon = peerB.locator("path")
# Clone on peer B and save # Clone on peer B and save
b_polygon.click(button="right") b_polygon.click(button="right", delay=200)
peerB.get_by_role("button", name="Clone this feature").click() peerB.get_by_role("button", name="Clone this feature").click()
expect(peerB.locator("path")).to_have_count(2) expect(peerB.locator("path")).to_have_count(2)