summaryrefslogtreecommitdiff
path: root/test/testEditMenu.py
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2025-05-14 23:58:39 +0200
committerColomban Wendling <[email protected]>2025-05-14 23:58:39 +0200
commitb6a19c50b04b7800f54a3bfef7271fedb1a9d50c (patch)
tree439bb1af539c865849f790c36510342cc6a20839 /test/testEditMenu.py
parent239ebd2f3ce65f394bb94089a57aae8e40f953aa (diff)
downloadatril-failing-tests.tar.bz2
atril-failing-tests.tar.xz
Fix tests with AT-SPI2 >= 2.53failing-tests
Role name for push buttons changed from "push button" to "button" for uniformizing APIs, but that means the names Dogtail use have to match, as it's not using the role IDs but names. Fix this by trying to ask AT-SPI2 for the name, and falling back on the historical name in the odd case it'd fail.
Diffstat (limited to 'test/testEditMenu.py')
-rwxr-xr-xtest/testEditMenu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testEditMenu.py b/test/testEditMenu.py
index 1b81fd07..2a8e89b5 100755
--- a/test/testEditMenu.py
+++ b/test/testEditMenu.py
@@ -2,7 +2,7 @@
# This test opens the Edit menu and runs through the menu items.
-from testCommon import run_app, bail
+from testCommon import run_app, bail, pushButton
from dogtail.procedural import *
@@ -20,7 +20,7 @@ try:
focus.frame('test-links.pdf')
type('link')
- click('Find Previous', roleName='push button')
+ click('Find Previous', roleName=pushButton)
click('Edit', roleName='menu')
click('Find Next', roleName='menu item')