Skip to content

Fix Chrome system tests#19121

Merged
SaschaCowley merged 2 commits into
rcfrom
fixChromeSystemTests
Oct 20, 2025
Merged

Fix Chrome system tests#19121
SaschaCowley merged 2 commits into
rcfrom
fixChromeSystemTests

Conversation

@SaschaCowley

@SaschaCowley SaschaCowley commented Oct 20, 2025

Copy link
Copy Markdown
Member

Link to issue number:

None

Summary of the issue:

A recent update to chrome has introduced a "Ask Google about this page" option in the omnibox (address bar). This option is sometimes spoken, even though it isn't focused, when focusing the address bar. This causes system tests which rely on Chrome to fail, as they are unable to recognise that the address bar has been focused.
This breaks some tests in the Chrome, symbols, and image descriptions system test suites.

Description of user facing changes:

None.

Description of developer facing changes:

System tests work again.

Description of development approach:

When setting up a system test that uses Chrome, after sending alt+d to focus the address bar, if the speech is not what we expect, try reporting the focused object (NVDA+tab) to double-check.
This works because "Address and search bar" speech is cancelled by the "Ask Google about this page" speech, so the system tests are unaware where the focus has landed. By explicitly checking the current focus, we work around this issue.

Testing strategy:

Ran the Chrome system test "checkbox labelled by inner element" locally, with and without this patch, to ensure that it was broken on my machine without the patch, and fixed with it.
Ran in CI.

Known issues with pull request:

This does not fix the underlying issue, which will still likely inconvenience users. However, as this is stopping us being able to create snapshot, beta, rc or release builds, this fix needed to be prioritised..

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.

@SaschaCowley SaschaCowley marked this pull request as ready for review October 20, 2025 05:49
@SaschaCowley SaschaCowley requested a review from a team as a code owner October 20, 2025 05:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes Chrome system tests that were failing due to a recent Chrome update introducing an "Ask Google about this page" option that interferes with address bar focus detection. The fix implements a fallback mechanism to double-check focus when the expected speech output isn't detected.

  • Adds workaround logic to detect when Chrome's new omnibox option interferes with expected speech
  • Implements fallback focus reporting using NVDA+tab when address bar speech is clobbered
  • Fixes trailing comma formatting issues in error logging statements

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/system/libraries/ChromeLib.py Adds fallback logic to handle Chrome's interfering "Ask Google" speech output
source/_remoteClient/secureDesktop.py Fixes missing trailing commas in f-string log statements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread tests/system/libraries/ChromeLib.py
@SaschaCowley SaschaCowley enabled auto-merge (squash) October 20, 2025 06:20
@SaschaCowley SaschaCowley merged commit 6f4dffa into rc Oct 20, 2025
29 of 30 checks passed
@SaschaCowley SaschaCowley deleted the fixChromeSystemTests branch October 20, 2025 06:51
@github-actions github-actions Bot added this to the 2026.1 milestone Oct 20, 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.

4 participants