summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/writer_tests4
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-11-08 11:34:11 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-11-08 16:55:01 +0100
commit4b7316e2ff6e63bbf73e0bcf04f90b807d9829ad (patch)
tree2431f8ddfed52c81920a52d935d7f8c55f7d49f8 /sw/qa/uitest/writer_tests4
parent65606ffdb9fbb133b7c771184fa97284fe6f2c91 (diff)
tdf#155447 a11y: Set accessible ID that Orca expects
Orca commit [1] commit 40a2d302eb52295433fd84e6c254a7dbe5108a24 Author: Joanmarie Diggs <jdiggs@igalia.com> Date: Thu Nov 7 14:15:07 2024 +0100 Spellcheck: Check for accessible id in more places Do the following case-insensitive checks: * If the object's accessible id starts with "suggestions" treat it as the suggestions list. * If the object's accessible id starts with "replacement" treat it as the object (likely entry) which contains the proposed replacement. * If the label's/widget's accessible id starts with "error" treat it as the container displaying the misspelled word. Note that the first of the three is based on what LO 25.2 currently exposes ("suggestionslb"). The other two are not in use yet, but adding them facilitates implementation in, and getting feedback from, apps and toolkits. Also modify the existing check for the window. We were doing an exact match on "SpellingDialog". Making that case insensitive and limiting to starts with "spelling" works with the current LO implementation and removes an implementation detail ("dialog"). introduced logic to identify more UI elements in the spelling dialog by their accessible ID. Adjust the GtkBuilder ID (which gets reported as accessible ID as well) of the drawing area that holds the misspelt text to match the expectations as mentioned in the commit message above. [1] https://gitlab.gnome.org/GNOME/orca/-/commit/40a2d302eb52295433fd84e6c254a7dbe5108a24 Change-Id: I0658de40a47e46a6b2451dfb4ee30d1457b9f9e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176280 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'sw/qa/uitest/writer_tests4')
-rw-r--r--sw/qa/uitest/writer_tests4/spellDialog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/uitest/writer_tests4/spellDialog.py b/sw/qa/uitest/writer_tests4/spellDialog.py
index 17898c4dc5b7..c01e78e10593 100644
--- a/sw/qa/uitest/writer_tests4/spellDialog.py
+++ b/sw/qa/uitest/writer_tests4/spellDialog.py
@@ -189,7 +189,7 @@ frog, dogg, catt"""
with self.ui_test.load_file(get_url_for_data_file("tdf157992.odt")) as document:
with self.ui_test.execute_modeless_dialog_through_command(".uno:SpellingAndGrammarDialog", close_button="") as xDialog:
- sentence = xDialog.getChild('sentence')
+ sentence = xDialog.getChild('errorsentence')
sentence.executeAction('TYPE', mkPropertyValues({'KEYCODE':'RIGHT'}))
sentence.executeAction('TYPE', mkPropertyValues({'KEYCODE':'DELETE'}))
sentence.executeAction('TYPE', mkPropertyValues({'KEYCODE':'DELETE'}))