Skip to content

Commit 4722de9

Browse files
authored
Feature/webdriverio v5 (#3)
* chore(package): update to webdriverio 5 * chore(package): update wdio config for version 5 * refactor(webdriver-service): implement wdio v5 changes * chore(package): update blackbox tests * fix(wdio-ci-config): add sauce service * chore(wdio-config): set log level * refactor(page-po): await text * refactor(page-steps): add some wait expressions * chore(package): bump version due to breaking change (webdriverio v5.*)
1 parent 8f4045c commit 4722de9

16 files changed

+184
-5135
lines changed

.npmignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# src
22
src
33

4+
# scripts
5+
scripts
6+
47
# test
58
**/*.spec.*
69

@@ -14,4 +17,4 @@ jasmine.json
1417
*.iml
1518

1619
# ci
17-
.circleci
20+
.circleci

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ Enable this plugin in your config file:
88

99
```js
1010
exports.config = {
11-
plugins: {
12-
'@ng-apimock/webdriverio-plugin': {
11+
services: [['wdio-ng-apimock-service'], {
1312
globalName: 'ngApimockWebdriverioPlugin' // optional option (defaults to ngApimock)
14-
}
15-
}
13+
}
14+
]
1615
};
1716
```
1817

@@ -37,10 +36,10 @@ Sets the delay time in milliseconds for the mock. This makes sure the response i
3736
##### echoRequest(name: string, echo: boolean): Promise<any>;
3837
Sets the indicator which enables / disables the request logging.
3938

40-
##### setVariable(key: string, value: string): Promise<any>;
39+
##### setVariable(key: string, value: any): Promise<any>;
4140
Adds or updates the global variable.
4241

43-
##### setVariables(variables: {[key: string]: string;}): Promise<any>;
42+
##### setVariables(variables: {[key: string]: any;}): Promise<any>;
4443
Adds or updates the global variables ie. {'some':'value', 'another': 'value'}.
4544

4645
##### deleteVariable(key: string): Promise<any>;

0 commit comments

Comments
 (0)