fix: wait for agnocomplete in test
This commit is contained in:
parent
5295e931a5
commit
ba41ae4000
1 changed files with 2 additions and 1 deletions
|
@ -210,7 +210,8 @@ def test_can_change_owner(map, live_server, login, user):
|
||||||
close = page.locator(".umap-field-owner .close")
|
close = page.locator(".umap-field-owner .close")
|
||||||
close.click()
|
close.click()
|
||||||
input = page.locator("input.edit-owner")
|
input = page.locator("input.edit-owner")
|
||||||
input.type(user.username)
|
with page.expect_response(re.compile(r".*/agnocomplete/.*")):
|
||||||
|
input.type(user.username)
|
||||||
input.press("Tab")
|
input.press("Tab")
|
||||||
save = page.get_by_role("button", name="Save")
|
save = page.get_by_role("button", name="Save")
|
||||||
expect(save).to_be_visible()
|
expect(save).to_be_visible()
|
||||||
|
|
Loading…
Reference in a new issue