Focus the Apps edit control before keyboard activation
This commit is contained in:
1 parent
36f4e141e4
commit
4749d9ed58
1 file changed
+7
@@ -493,6 +493,13 @@ with contextlib.ExitStack() as stack:
|
||||
driver.press(label="Edit apps", role="button")
|
||||
driver.wait(label="Done", role="button")
|
||||
assert driver.find(label="Move app", role="button", visible=True)
|
||||
# Pointer activation does not promise keyboard focus.
|
||||
# Reach Done through the real Tab order before Enter.
|
||||
for _ in range(40):
|
||||
if driver.wait(label="Done", role="button")["focused"]:
|
||||
break
|
||||
driver.key("tab")
|
||||
assert driver.wait(label="Done", role="button")["focused"]
|
||||
driver.key("enter")
|
||||
driver.wait(label="Edit apps", role="button")
|
||||
open_profile(log)
|
||||
|
||||
Reference in new issue
Block a user