Fix tests: "NVDA restarts on quit" and first time opening notepad failing#18631
Merged
SaschaCowley merged 3 commits intomasterfrom Aug 8, 2025
Merged
Fix tests: "NVDA restarts on quit" and first time opening notepad failing#18631SaschaCowley merged 3 commits intomasterfrom
SaschaCowley merged 3 commits intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes two intermittent test failures in NVDA's system tests by addressing timing issues in the test infrastructure. The changes increase timeout tolerance and improve robustness of the notepad startup process.
- Increases timeout for waiting for NVDA exit after crash from 3 to 10 seconds
- Adds fallback mechanism for notepad focus when initial focus attempt fails
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/system/robot/startupShutdownNVDA.py | Increases timeout for NVDA crash exit detection from 3 to 10 seconds |
| tests/system/libraries/NotepadLib.py | Adds try-catch block with fallback task switching when notepad fails to get focus initially |
5 tasks
SaschaCowley
approved these changes
Aug 8, 2025
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:
Fixes some issues from #18597
Summary of the issue:
Description of user facing changes:
none
Description of developer facing changes:
none
Description of development approach:
Testing strategy:
Ran each test 50 times
results:
17 failures out of 50 runs of 4 test suites.
This is around the same rate as #18597, however there is an increase to timeout issues (likely due to reduced resources for 50x4 matrix jobs).
It is likely that these timeout issues will occur with a lower frequency on normal builds.
Test failures:
Note that the failures noted in #18597 and targeted by this fix do not occur:
Startup/shutdown:
Known issues with pull request:
see test failures
Code Review Checklist:
@coderabbitai summary