Skip to content

Commit 0f76b03

Browse files
committed
Upgrade test dependencies
- Upgrade Python to 3.9 now that cffi provides musllinux packages - Upgrade Selenium standalone Chrome to 4.8.1 for newer ESM support - Run tests in verbose mode and update one Selenium import - Update find_elements?_by_.*(...) calls to find_elements?(By..., ...) since SeleniumHQ/selenium#10712 - Close driver during teardown even when there is no result outcome, to avoid keeping connections open for too long - Add remote connection timeout to detect connection issues earlier per SeleniumHQ/selenium#11596 - Remove some Python 2 import attempt - Axe report: Do not exit out if file does not exist - Adjust move_to_element_with_offset calls to work in center element, based on SeleniumHQ/selenium#11402 - Quit driver and set to None at teardown. This should properly close the session, allowing the connection to be reused for another test. - Update browser-sync
1 parent 3455db7 commit 0f76b03

14 files changed

+280
-173
lines changed

package-lock.json

Lines changed: 157 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"production": "cross-env NODE_ENV=production webpack --config=node_modules/laravel-mix/setup/webpack.config.js",
99
"test": "./run-test.sh",
1010
"nyc-report": "cross-env NODE_ENV=test nyc report --temp-dir test/coverage/output --reporter lcov --report-dir test/coverage",
11-
"axe-report": "cross-env NODE_ENV=test node axe-report.js && tr '\\r' '\\n' < test/accessibility/report.txt.csv > test/accessibility/report.csv"
11+
"axe-report": "cross-env NODE_ENV=test node axe-report.js && [ -f test/accessibility/report.txt.csv ] && tr '\\r' '\\n' < test/accessibility/report.txt.csv > test/accessibility/report.csv || exit 0"
1212
},
1313
"devDependencies": {
1414
"@ictu/axe-reports": "^1.1.11",
@@ -17,7 +17,7 @@
1717
"babel-loader": "^9.1.2",
1818
"babel-plugin-istanbul": "^6.1.1",
1919
"babel-preset-env": "^1.7.0",
20-
"browser-sync": "^2.27.12",
20+
"browser-sync": "^2.28.1",
2121
"browser-sync-webpack-plugin": "^2.3.0",
2222
"express": "^4.18.2",
2323
"html-webpack-plugin": "^5.5.0",

run-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ for name in $VISUALIZATION_NAMES; do
202202
done
203203
echo "Starting test"
204204

205-
docker exec -u `id -u`:`id -g` $TEST_CONTAINER python /work/test.py
205+
docker exec -u `id -u`:`id -g` $TEST_CONTAINER python /work/test.py -v
206206
status=$?
207207

208208
container_logs

0 commit comments

Comments
 (0)