Skip to content

Commit

Permalink
Merge pull request #4070 from Aisanjiang-W/change-Browserstack-config…
Browse files Browse the repository at this point in the history
…-for-local-run

chore(config): update WebdriverIO local and browserstack configs
  • Loading branch information
DaleMcGrew authored Oct 2, 2024
2 parents a682606 + c4f7151 commit 515dbf9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"scripts": {
"wdio:setup": "node tests/browserstack_automation/buildMobileCapabilities.js",
"wdio": "wdio ./tests/browserstack_automation/config/wdio.config.js",
"wdio-local": "wdio ./tests/browserstack_automation/config/wdio.config.local.js",
"wdio-local-bs": "wdio ./tests/browserstack_automation/config/wdio.config.local.js",
"wdio-local": "wdio ./tests/browserstack_automation/config/wdio.local.config.js",
"build": "node node/buildDateFile.js && npm run build-storybook && PRODUCTION=1 && MINIMIZED=1 webpack --mode production",
"buildCordova": "node node/buildDateFile.js && node node/buildSrcCordova && CORDOVA=1 && webpack --mode development && node node/logCompileDate.js",
"buildCordovaAndLinks": "node node/buildDateFile.js && node node/buildSrcCordova && CORDOVA=1 && webpack --mode development && node node/buildSymLinksRemote.js && bash ./node/unSymLinkIOS.sh && node node/logCompileDate.js",
Expand Down
17 changes: 17 additions & 0 deletions tests/browserstack_automation/config/wdio.local.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const { config } = require('./wdio.config.js');

config.capabilities = [{
maxInstances: 5,
browserName: 'chrome',
acceptInsecureCerts: true,
'goog:chromeOptions': {
args: ['--start-maximized']
}
}];

delete config.user;
delete config.key;
config.services = [];

module.exports = { config };

0 comments on commit 515dbf9

Please sign in to comment.