Skip to content

Commit

Permalink
fix: πŸ› await for ngapimock init
Browse files Browse the repository at this point in the history
* ci: 🎑 run integration tests for webdriverio v5 and v6 (#6)

* ci: 🎑 run integration tests for webdriverio v5 and v6

* ci: 🎑 set maxinstances to 1

* ci: 🎑 set maxinstances to 5
  • Loading branch information
mdasberg committed Jun 18, 2020
1 parent 280fbee commit 589acff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
run: npm ci
- name: build
run: npm run compile
- name: integration test wdio-v5
run: npm run itest5
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
FORCE_EXIT: true
- name: integration test wdio-v6
run: npm run itest6
env:
Expand Down
3 changes: 1 addition & 2 deletions itest/wdio-v5/test/wdio.ci.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ const defaultBrowserSauceOptions = {
screenResolution: '1600x1200',
seleniumVersion: '3.141.59',
};

config.maxInstances = 5;
config.params = {
environment: 'CI',
default_directory: '/tmp'
};
config.maxInstances = 5;

config.user = process.env.SAUCE_USERNAME;
config.key = process.env.SAUCE_ACCESS_KEY;
Expand Down
2 changes: 1 addition & 1 deletion itest/wdio-v6/test/wdio.ci.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const defaultBrowserSauceOptions = {
screenResolution: '1600x1200',
seleniumVersion: '3.141.59',
};
config.maxInstances = 5;
config.params = {
environment: 'CI',
default_directory: '/tmp'
};
config.maxInstances = 5;

config.user = process.env.SAUCE_USERNAME;
config.key = process.env.SAUCE_ACCESS_KEY;
Expand Down
2 changes: 1 addition & 1 deletion src/webdriverio.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export default class NgApimockService {
async before(capabilities: any): Promise<any> {
const plugin = new WebdriverIOClient(this.baseUrl);
(global as any)[this.globalName] = plugin;
plugin.setNgApimockCookie();
await plugin.setNgApimockCookie();
}
}

0 comments on commit 589acff

Please sign in to comment.