@wdio/webdriver-mock-service 9.20.0 → 9.21.0

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.
Files changed (2) hide show
  1. package/build/index.js +2 -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).once().reply(200, { value: true });
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).once().reply(200, { value: true });
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.20.0",
3
+ "version": "9.21.0",
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",
@@ -30,9 +30,9 @@
30
30
  "@types/uuid": "^10.0.0",
31
31
  "@wdio/protocols": "9.16.2",
32
32
  "@wdio/types": "9.20.0",
33
- "nock": "14.0.5",
33
+ "nock": "14.0.10",
34
34
  "uuid": "^11.1.0",
35
- "webdriverio": "9.20.0"
35
+ "webdriverio": "9.21.0"
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": "6c8694a72b8e173ecdd20dacae5d49d089b2877c"
43
+ "gitHead": "cfbd795427524c3add91b2c980e6866477875332"
44
44
  }