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

ci: 🎡 run integration tests for webdriverio v5 and v6 #6

Merged
merged 4 commits into from
Jun 18, 2020
Merged
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
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();
}
}