Skip to content

Commit

Permalink
feat(plugin): saucelabs setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mdasberg committed Jul 16, 2018
1 parent 1e73e29 commit cf63516
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ workflows:
version: 2
build:
jobs:
- node-v6
- node-v8
- node-v9
- node-v10
Expand Down Expand Up @@ -33,10 +32,6 @@ jobs:
name: Integration
command: npm run wdio-ci

node-v6:
<<: *node-base
docker:
- image: node:6
node-v8:
<<: *node-base
docker:
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import WebdriverIOClient from './webdriverio';

module.exports = (async () => {
const client = new WebdriverIOClient();
return client.setNgApimockCookie();
return await client.setNgApimockCookie();
})();
2 changes: 1 addition & 1 deletion test/step_definitions/page.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
const expected = fs.readFileSync(path.join(__dirname, '..', responses.getItems[scenario].file));
return actual.equals(expected);
} else {
return browser.params.environment === 'CI'
return browser.options.params.environment === 'CI'
}
}, 5000, 'expected download to be completed');
}
Expand Down
9 changes: 7 additions & 2 deletions test/wdio.ci.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ config.params = {
};

config.services = ['sauce'];
console.log("PROCESS", process.env.HELLO)
config.user = process.env.SAUCE_USERNAME;
config.key = process.env.SAUCE_ACCESS_KEY;
config.sauceConnect = true;
config.sauceConnectOpts = {
verbose: true,
tunnelIdentifier: process.env.CIRCLE_BUILD_NUM,
connectRetries: 3,
connectRetryTimeout: 10000
};

config.capabilities = [{
browserName: 'chrome',
name: 'ngApimock - webdriverio',
'tunnel-identifier': process.env.CIRCLE_BUILD_URL,
build: process.env.CIRCLE_BUILD_NUM,
chromeOptions: {
args: ['--no-sandbox', '--test-type=browser'],
Expand Down

0 comments on commit cf63516

Please sign in to comment.