Skip to content

Re-enable start from desktop shortcut test#18582

Merged
SaschaCowley merged 3 commits intomasterfrom
enableDesktopTest
Jul 30, 2025
Merged

Re-enable start from desktop shortcut test#18582
SaschaCowley merged 3 commits intomasterfrom
enableDesktopTest

Conversation

@seanbudd
Copy link
Copy Markdown
Member

@seanbudd seanbudd commented Jul 29, 2025

Link to issue number:

Closes #14293

Summary of the issue:

The system test 'Starts from desktop shortcut' as part of the 'Basic start and exit tests' defined in startupShutdownNVDA.robot relied on NVDA to be running to send the keyboard shortcut which is intended to start NVDA.
As such it was flakey and disabled.

Description of user facing changes:

none

Description of developer facing changes:

none

Description of development approach:

call keyevents directly rather than through NVDA

Testing strategy:

Known issues with pull request:

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

Copilot AI review requested due to automatic review settings July 29, 2025 09:09
@seanbudd seanbudd requested a review from a team as a code owner July 29, 2025 09:09
@seanbudd seanbudd requested a review from SaschaCowley July 29, 2025 09:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR re-enables a previously disabled system test that verifies NVDA can start from its desktop shortcut. The test was previously disabled due to reliability issues caused by relying on an already running NVDA instance to send the keyboard shortcut.

  • Replaces NVDA's emulateKeyPress with direct Windows API calls using keybd_event
  • Updates type annotations to use modern Python syntax (collections.abc imports and union types)
  • Removes the exclusion tags that disabled the test from running

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/system/robot/startupShutdownNVDA.robot Removes test exclusion tags to re-enable the desktop shortcut test
tests/system/robot/startupShutdownNVDA.py Replaces NVDA's keyboard emulation with direct Windows API calls and updates type imports
tests/system/libraries/SystemTestSpy/windows.py Adds sendKeyboardEvent wrapper function and modernizes type annotations

@SaschaCowley SaschaCowley enabled auto-merge (squash) July 29, 2025 23:38
@SaschaCowley SaschaCowley merged commit 8c43146 into master Jul 30, 2025
21 checks passed
@SaschaCowley SaschaCowley deleted the enableDesktopTest branch July 30, 2025 00:04
@SaschaCowley SaschaCowley added this to the 2025.3 milestone Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System test 'Starts from desktop shortcut' relies on NVDA.

3 participants