Skip to content

Commit

Permalink
Local fixes to automate chromedriver
Browse files Browse the repository at this point in the history
  • Loading branch information
sanrai committed Oct 26, 2024
1 parent 2c9f4de commit 41443e5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"release": "HUSKY_SKIP_HOOKS=1 release-it --ci",
"test:coverage": "jest --coverage",
"test:unit": "jest",
"test:e2e-local": "wdio run wdio.conf.js env=LOCAL",
"test:e2e-local": "wdio run wdio.local.conf.js env=LOCAL",
"test:e2e-prod": "wdio run wdio.conf.js env=PROD",
"serve": "serve",
"watch": "npm run serve & webpack -w",
Expand Down Expand Up @@ -65,6 +65,7 @@
"@testing-library/react-hooks": "^3.4.2",
"@ungap/structured-clone": "^1.2.0",
"@wdio/cli": "^8.1.2",
"@wdio/devtools-service": "^8.40.2",
"@wdio/local-runner": "^8.1.2",
"@wdio/mocha-framework": "^8.1.2",
"@wdio/spec-reporter": "^8.1.2",
Expand All @@ -80,7 +81,6 @@
"babel-preset-env": "^1.7.0",
"babel-preset-jest": "^22.4.4",
"babel-preset-react": "^6.24.1",
"chromedriver": "^130.0.0",
"commitizen": "^4.2.6",
"copy-webpack-plugin": "^4.6.0",
"cross-env": "^5.2.1",
Expand Down Expand Up @@ -125,7 +125,6 @@
"stylelint-config-standard": "^18.3.0",
"stylelint-webpack-plugin": "^0.9.0",
"uglifyjs-webpack-plugin": "^1.2.4",
"wdio-chromedriver-service": "^8.0.1",
"webpack": "^3.9.1"
},
"husky": {
Expand Down
20 changes: 20 additions & 0 deletions wdio.local.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// eslint-disable-next-line import/extensions
const baseConfig = require('./wdio.conf.js').config;

exports.config = {
...baseConfig,
services: ['devtools'],
capabilities: [{
browserName: 'chrome',
'goog:chromeOptions': {
args: [
'--no-sandbox',
'--disable-infobars',
'--headless', // Remove this line if you want to see the browser
'--disable-gpu',
'--window-size=1440,735',
],
},
}],
// Other configurations...
};

0 comments on commit 41443e5

Please sign in to comment.