fix: wait for agnocomplete in test

This commit is contained in:
David Larlet 2024-03-01 11:42:03 -05:00 committed by Yohan Boniface
parent 5295e931a5
commit ba41ae4000

View file

@ -210,6 +210,7 @@ def test_can_change_owner(map, live_server, login, user):
close = page.locator(".umap-field-owner .close")
close.click()
input = page.locator("input.edit-owner")
with page.expect_response(re.compile(r".*/agnocomplete/.*")):
input.type(user.username)
input.press("Tab")
save = page.get_by_role("button", name="Save")