Repository navigation
Add unit tests for comment threads in Word via UIA - #20924
Open
LeonarddeR wants to merge 3 commits into
Open
LeonarddeR wants to merge 3 commits into
LeonarddeR wants to merge 3 commits into
Conversation
LeonarddeR
requested review from
SaschaCowley
and
a balanced review from Copilot
October 2, 2026 05:22
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The suite misses dateless reply/resolved behavior and does not fully verify deferred reply fetching.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Adds UIA Word comment-thread unit coverage and reorganizes NVDA object tests into a dedicated package.
Changes:
- Adds tests for comment presentation, resolution, navigation, and reporting.
- Moves existing UIA and IA2 web tests into
test_NVDAObjects.
| File | Description |
|---|---|
tests/unit/test_NVDAObjects/__init__.py |
Defines the new test package. |
tests/unit/test_NVDAObjects/test_UIA.py |
Relocates existing UIA tests. |
tests/unit/test_NVDAObjects/test_IAccessible_ia2Web.py |
Relocates existing IA2 web tests. |
tests/unit/test_NVDAObjects/test_UIA_wordDocument.py |
Adds Word comment-thread tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
LeonarddeR
force-pushed
the
wordCommentTests
branch
from
October 21, 2026 17:33
5961a68 to
9a71cfe
Compare
The tests cover the presentation of comments and replies, the detection of resolved comments, the lookup of comment threads, the nesting of replies in the elements list, listing a comment once in the elements list, the speech and braille output of NVDA+Alt+C, and the deprecated comment functions. Assisted-by: Claude:claude-opus-5-5
Assisted-by: Claude:claude-opus-5-5
LeonarddeR
force-pushed
the
wordCommentTests
branch
from
November 10, 2026 08:17
9a71cfe to
f88fea1
Compare
Collaborator
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Link to issue number:
Follow-up of #20894
Summary of the issue:
#20894 changed how NVDA reads comment threads in Microsoft Word via UI Automation. It was merged without unit tests, these were diverged to a later pr.
Description of user facing changes:
None.
Description of developer facing changes:
The unit tests for NVDA objects move into a
tests/unit/test_NVDAObjectspackage.test_NVDAObjects_UIA.pybecomestest_NVDAObjects/test_UIA.py.test_NVDAObjects_IAccessible_ia2Web.pybecomestest_NVDAObjects/test_IAccessible_ia2Web.py.Description of development approach:
A new module,
test_NVDAObjects/test_UIA_wordDocument.py, tests the comment support of Word via UI Automation. The UIA elements are mocks. The text ranges come fromBasicTextProviderin the unit test helpers.The tests cover:
NVDA+alt+c, and the browseable message when the command is pressed twice.getCommentInfoFromPositionandgetPresentableCommentInfoFromPosition.Testing strategy:
Unit tests.
Known issues with pull request:
None.
Code Review Checklist: