Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Webdriver.io v9 #154

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
test:
resource_class: large
docker:
- image: cimg/node:18.10-browsers
- image: cimg/node:20.16-browsers
auth:
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_ACCESS_TOKEN
Expand All @@ -12,17 +12,17 @@ jobs:
- checkout
- restore_cache:
keys:
- node18-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- node18-deps-{{ .Branch }}
- node18-deps
- node20-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- node20-deps-{{ .Branch }}
- node20-deps
- run:
name: Create Download Directory
command: mkdir ~/app/build/downloads && chmod 0777 ~/app/build/downloads
- run:
name: Install Dependencies
command: yarn install --ignore-engines --frozen-lockfile --prod
- save_cache:
key: node18-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
key: node20-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- ~/.cache
- run: yarn lint
Expand All @@ -44,7 +44,6 @@ jobs:
webhook: ${SLACK_WEBHOOK_SUCCESS}

workflows:
version: 2
commit:
jobs:
- test:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
build/*
!build/.gitkeep
.env
.env.ci
*.cid
package-lock.json

Expand Down
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@
"clean": "del-cli build/* !build/.gitkeep"
},
"engines": {
"node": ">=18",
"node": ">=20",
"yarn": ">=1"
},
"dependencies": {
"@axe-core/webdriverio": "^4.7.3",
"@axe-core/webdriverio": "^4.10.0",
"@babel/core": "^7.23.0",
"@babel/plugin-proposal-export-default-from": "^7.22.17",
"@babel/preset-env": "^7.22.20",
"@babel/register": "^7.22.15",
"@wdio/cli": "^8.0.0",
"@wdio/cucumber-framework": "^8.0.0",
"@wdio/dot-reporter": "^8.16.17",
"@wdio/globals": "^8.16.7",
"@wdio/junit-reporter": "^8.0.0",
"@wdio/local-runner": "^8.0.0",
"@wdio/mocha-framework": "^8.16.17",
"@wdio/spec-reporter": "^8.0.0",
"@wdio/testingbot-service": "^8.0.0",
"@wdio/types": "^8.16.7",
"@wdio/cli": "^9.0.0",
"@wdio/cucumber-framework": "^9.0.0",
"@wdio/dot-reporter": "^9.0.0",
"@wdio/globals": "^9.0.0",
"@wdio/junit-reporter": "^9.0.0",
"@wdio/local-runner": "^9.0.0",
"@wdio/mocha-framework": "^9.0.0",
"@wdio/spec-reporter": "^9.0.0",
"@wdio/testingbot-service": "^9.0.0",
"@wdio/types": "^9.0.4",
"axios": "^1.6.0",
"chromedriver": "^119.0.1",
"chromedriver": "^128.0.0",
"del-cli": "^5.1.0",
"dotenv": "^16.3.1",
"eslint": "^8.50.0",
Expand All @@ -43,7 +43,6 @@
"eslint-plugin-wdio": "^8.8.7",
"eslint-watch": "^8.0.0",
"minimist": "^1.2.8",
"typescript": "^5.2.2",
"wdio-chromedriver-service": "^8.1.1"
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion support/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export async function checkSelectorContent(selector, content, seconds = WAIT_SEC
throw new Error(`Expected element "${selector}" to exist`);
}

return checkText(await $(selector), content, seconds);
return checkText(await $(selector).getElement(), content, seconds);
}

/**
Expand Down
1 change: 0 additions & 1 deletion wdio.local.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ config.capabilities[0]['goog:chromeOptions'].args = [
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
];
config.services.push('chromedriver');

exports.config = config;
Loading