File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed
tests/address_bar_and_search Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ jobs:
112
112
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
113
113
Start-Process -FilePath $env:FX_EXECUTABLE -ArgumentList "--version" -Wait -NoNewWindow
114
114
pipenv run python choose_ci_set.py
115
- Start-Process pipenv run pytest -ArgumentList (Get-Content .\ selected_tests) -wait -NoNewWindow
115
+ pipenv run pytest -n 4 $(cat selected_tests)
116
116
$env:TEST_EXIT_CODE = $LASTEXITCODE
117
117
mv artifacts artifacts-win || true
118
118
exit $env:TEST_EXIT_CODE
@@ -125,7 +125,7 @@ jobs:
125
125
mv ./ci_pyproject_headed.toml ./pyproject.toml;
126
126
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
127
127
pipenv run python choose_ci_set.py
128
- Start-Process pipenv run pytest -ArgumentList (Get-Content .\ selected_tests) -wait -NoNewWindow
128
+ pipenv run pytest $(cat selected_tests)
129
129
$env:TEST_EXIT_CODE = $LASTEXITCODE
130
130
rm artifacts/assets -r -Force
131
131
Get-ChildItem -Path "artifacts" | ForEach-Object {
Original file line number Diff line number Diff line change @@ -14,10 +14,8 @@ markers = [
14
14
" locale_gb: tests run in GB locale versions" ,
15
15
" noxvfb: tests that should not run in xvfb sessions"
16
16
]
17
- testpaths = [
18
- " tests"
19
- ]
20
- addopts = " -vs -n 4 --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
17
+
18
+ addopts = " -vs --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
21
19
22
20
[tool .ruff ]
23
21
target-version = " py310"
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ markers = [
14
14
" locale_gb: tests run in GB locale versions" ,
15
15
" noxvfb: tests that should not run in xvfb sessions"
16
16
]
17
- testpaths = [
18
- " tests"
19
- ]
20
- addopts = " -vs -n 4 --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not unstable and not headed and not noxvfb' --html=artifacts/report.html"
17
+ addopts = " -vs --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not unstable and not headed and not noxvfb' --html=artifacts/report.html"
21
18
22
19
[tool .ruff ]
23
20
target-version = " py310"
Original file line number Diff line number Diff line change 9
9
10
10
# Constants
11
11
SEARCH_TERM_SPONSORED = "iphone"
12
- SEARCH_TERM_NON_SPONSORED = "wiki "
12
+ SEARCH_TERM_NON_SPONSORED = "wikimedia "
13
13
RETRY_LIMIT = 5
14
14
SECONDS = 3
15
15
@@ -72,5 +72,5 @@ def test_search_suggests_enabled(driver: Firefox):
72
72
with driver .context (driver .CONTEXT_CHROME ):
73
73
nav .get_element ("firefox-suggest" )
74
74
titles = nav .get_elements ("suggestion-titles" )
75
- found_non_sponsored = any ("wikipedia " in title .text for title in titles )
75
+ found_non_sponsored = any ("Wikipedia " in title .text for title in titles )
76
76
assert found_non_sponsored , "Non-sponsored suggestion not found"
You can’t perform that action at this time.
0 commit comments