Skip to content

Commit 6435cdd

Browse files
authored
Merge 31fd31f into 26439b1
2 parents 26439b1 + 31fd31f commit 6435cdd

7 files changed

Lines changed: 13 additions & 7 deletions

File tree

tests/system/libraries/ChromeLib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# A part of NonVisual Desktop Access (NVDA)
2-
# Copyright (C) 2020-2021 NV Access Limited
2+
# Copyright (C) 2020-2022 NV Access Limited, Cyrille Bougot
33
# This file may be used under the terms of the GNU General Public License, version 2 or later.
44
# For more details see: https://www.gnu.org/licenses/gpl-2.0.html
55

@@ -97,6 +97,7 @@ def start_chrome(self, filePath: str, testCase: str) -> Window:
9797
" --disable-notifications"
9898
" --no-experiments"
9999
" --no-default-browser-check"
100+
" --lang=en-US"
100101
f' "{filePath}"',
101102
shell=True,
102103
alias='chromeStartAlias',
@@ -141,7 +142,7 @@ def _writeTestFile(testCase) -> str:
141142
<head>
142143
<title>{ChromeLib.getUniqueTestCaseTitle(testCase)}</title>
143144
</head>
144-
<body onload="document.getElementById('loadStatus').innerHTML='{ChromeLib._loadCompleteString}'">
145+
<body lang="en" onload="document.getElementById('loadStatus').innerHTML='{ChromeLib._loadCompleteString}'">
145146
<p>{ChromeLib._beforeMarker}</p>
146147
<p id="loadStatus">Loading...</p>
147148
{testCase}

tests/system/nvdaSettingsFiles/standard-doShowWelcomeDialog.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
schemaVersion = 2
22
[general]
3+
language = en
34
showWelcomeDialogAtStartup = True
45
[update]
56
askedAllowUsageStats = True

tests/system/nvdaSettingsFiles/standard-dontShowExitDialog.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
schemaVersion = 2
22
[general]
3+
language = en
34
showWelcomeDialogAtStartup = True
45
askToExit = False
56
[update]

tests/system/nvdaSettingsFiles/standard-dontShowWelcomeDialog.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
schemaVersion = 2
22
[general]
3+
language = en
34
showWelcomeDialogAtStartup = False
45
[update]
56
askedAllowUsageStats = True

tests/system/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ E.G. to run all tests with the chrome tag use:
2525
runsystemtests -i "chrome" ...
2626
```
2727

28-
Other options exit for specifying tests to run (e.g. by suite, tag, etc).
28+
Note: For tests based on Chrome, be sure that no previous instance of Chrome is open when you launch the test, specifically on non-English systems.
29+
30+
Other options exist for specifying tests to run (e.g. by suite, tag, etc).
2931
Consult `runsystemtests --help`
3032

3133
### Tags are required

tests/system/robot/chromeTests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# A part of NonVisual Desktop Access (NVDA)
2-
# Copyright (C) 2020-2021 NV Access Limited, Leonard de Ruijter
2+
# Copyright (C) 2020-2022 NV Access Limited, Leonard de Ruijter, Cyrille Bougot
33
# This file may be used under the terms of the GNU General Public License, version 2 or later.
44
# For more details see: https://www.gnu.org/licenses/gpl-2.0.html
55

@@ -57,7 +57,7 @@ def checkbox_labelled_by_inner_element():
5757

5858
REVIEW_CURSOR_FOLLOW_CARET_KEY = ["reviewCursor", "followCaret"]
5959
REVIEW_CURSOR_FOLLOW_FOCUS_KEY = ["reviewCursor", "followFocus"]
60-
READ_DETAILS_GESTURE = "NVDA+\\" # see chrome-gestures.ini
60+
READ_DETAILS_GESTURE = "NVDA+d"
6161

6262

6363
def _getNoVBuf_AriaDetails_sample() -> str:

tests/system/robot/chromeTests.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# A part of NonVisual Desktop Access (NVDA)
2-
# Copyright (C) 2019 NV Access Limited
2+
# Copyright (C) 2019-2022 NV Access Limited, Cyrille Bougot
33
# This file may be used under the terms of the GNU General Public License, version 2 or later.
44
# For more details see: https://www.gnu.org/licenses/gpl-2.0.html
55
*** Settings ***
@@ -24,7 +24,7 @@ default teardown
2424
quit NVDA
2525
2626
default setup
27-
start NVDA standard-dontShowWelcomeDialog.ini chrome-gestures.ini
27+
start NVDA standard-dontShowWelcomeDialog.ini
2828
enable_verbose_debug_logging_if_requested
2929
3030
*** Test Cases ***

0 commit comments

Comments
 (0)