Skip to content

Commit

Permalink
Upgrade test dependencies
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
lhelwerd committed Mar 3, 2023
1 parent 3455db7 commit 0f76b03
Show file tree
Hide file tree
Showing 14 changed files with 280 additions and 173 deletions.
229 changes: 157 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -8,7 +8,7 @@
"production": "cross-env NODE_ENV=production webpack --config=node_modules/laravel-mix/setup/webpack.config.js",
"test": "./run-test.sh",
"nyc-report": "cross-env NODE_ENV=test nyc report --temp-dir test/coverage/output --reporter lcov --report-dir test/coverage",
"axe-report": "cross-env NODE_ENV=test node axe-report.js && tr '\\r' '\\n' < test/accessibility/report.txt.csv > test/accessibility/report.csv"
"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"
},
"devDependencies": {
"@ictu/axe-reports": "^1.1.11",
Expand All @@ -17,7 +17,7 @@
"babel-loader": "^9.1.2",
"babel-plugin-istanbul": "^6.1.1",
"babel-preset-env": "^1.7.0",
"browser-sync": "^2.27.12",
"browser-sync": "^2.28.1",
"browser-sync-webpack-plugin": "^2.3.0",
"express": "^4.18.2",
"html-webpack-plugin": "^5.5.0",
Expand Down
2 changes: 1 addition & 1 deletion run-test.sh
Expand Up @@ -202,7 +202,7 @@ for name in $VISUALIZATION_NAMES; do
done
echo "Starting test"

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

container_logs
Expand Down

0 comments on commit 0f76b03

Please sign in to comment.