@wdio/webdriver-mock-service 9.19.2 → 9.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -2
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -212,7 +212,7 @@ var WebdriverMockService = class {
|
|
|
212
212
|
const elemResponse = { [ELEM_PROP]: ELEMENT_ID };
|
|
213
213
|
this._mock.command.findElement().times(1).reply(404, NO_SUCH_ELEMENT);
|
|
214
214
|
this._mock.command.findElement().times(2).reply(200, { value: elemResponse });
|
|
215
|
-
this._mock.command.executeScript(ELEMENT_ID).
|
|
215
|
+
this._mock.command.executeScript(ELEMENT_ID).times(2).reply(200, { value: true });
|
|
216
216
|
}
|
|
217
217
|
staleElementRefetchScenario() {
|
|
218
218
|
this.nockReset();
|
|
@@ -298,7 +298,7 @@ var WebdriverMockService = class {
|
|
|
298
298
|
const elemResponse = { [ELEM_PROP]: ELEMENT_ID };
|
|
299
299
|
this._mock.command.findElement().once().reply(200, { value: elemResponse });
|
|
300
300
|
this._mock.command.executeScript(ELEMENT_ID).times(4).reply(200, { value: false });
|
|
301
|
-
this._mock.command.executeScript(ELEMENT_ID).
|
|
301
|
+
this._mock.command.executeScript(ELEMENT_ID).times(2).reply(200, { value: true });
|
|
302
302
|
}
|
|
303
303
|
cucumberScenario() {
|
|
304
304
|
this.nockReset();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/webdriver-mock-service",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.20.1",
|
|
4
4
|
"description": "A WebdriverIO service to stub all endpoints for internal testing purposes.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-webdriver-mock-service",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@types/uuid": "^10.0.0",
|
|
31
31
|
"@wdio/protocols": "9.16.2",
|
|
32
|
-
"@wdio/types": "9.
|
|
32
|
+
"@wdio/types": "9.20.0",
|
|
33
33
|
"nock": "14.0.5",
|
|
34
34
|
"uuid": "^11.1.0",
|
|
35
|
-
"webdriverio": "9.
|
|
35
|
+
"webdriverio": "9.20.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@wdio/globals": "9.17.0"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ac132d5e6c95ad0b9f4e92cb0090c9a60296da4c"
|
|
44
44
|
}
|