summaryrefslogtreecommitdiff
path: root/test/testHelpMenu.py
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2025-05-14 23:58:39 +0200
committerVictor Kareh <[email protected]>2026-02-13 09:29:25 -0500
commit481968b14fb7082a5233a47173c462f179811cde (patch)
treed6d0d98bec89393d34553696c92f3864db43a907 /test/testHelpMenu.py
parent56853727df29fe2918ebec89eae5b38cda98c5d0 (diff)
downloadatril-481968b14fb7082a5233a47173c462f179811cde.tar.bz2
atril-481968b14fb7082a5233a47173c462f179811cde.tar.xz
Fix tests with AT-SPI2 >= 2.53
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/testHelpMenu.py')
-rwxr-xr-xtest/testHelpMenu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testHelpMenu.py b/test/testHelpMenu.py
index 9acfac7a..fcbdaeb5 100755
--- a/test/testHelpMenu.py
+++ b/test/testHelpMenu.py
@@ -2,7 +2,7 @@
# This test opens the Help menu and runs through the menu items.
-from testCommon import run_app, bail
+from testCommon import run_app, bail, pushButton
from dogtail.procedural import *
@@ -13,7 +13,7 @@ try:
click('About', roleName='menu item')
focus.dialog('About Atril Document Viewer')
click('License', roleName='toggle button')
- click('Close', roleName='push button')
+ click('Close', roleName=pushButton)
focus.frame('')
click('Help', roleName='menu')