Commit 6f4dffa
authored
Fix Chrome system tests (#19121)
### 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.1 parent a8f4f80 commit 6f4dffa
File tree
2 files changed
+13
-9
lines changed- source/_remoteClient
- tests/system/libraries
2 files changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
0 commit comments