@wdio/webdriver-mock-service 8.23.0 → 8.23.2

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 +4 -4
  2. package/package.json +5 -5
package/build/index.js CHANGED
@@ -83,14 +83,14 @@ export default class WebdriverMockService {
83
83
  const elemResponse = { [ELEM_PROP]: ELEMENT_ID };
84
84
  this._mock.command.findElement().times(2).reply(404, NO_SUCH_ELEMENT);
85
85
  this._mock.command.findElement().times(2).reply(200, { value: elemResponse });
86
- this._mock.command.isElementDisplayed(ELEMENT_ID).once().reply(200, { value: true });
86
+ this._mock.command.executeScript(ELEMENT_ID).once().reply(200, { value: false });
87
87
  }
88
88
  isEventuallyDisplayedScenario() {
89
89
  this.nockReset();
90
90
  const elemResponse = { [ELEM_PROP]: ELEMENT_ID };
91
91
  this._mock.command.findElement().times(1).reply(404, NO_SUCH_ELEMENT);
92
92
  this._mock.command.findElement().times(2).reply(200, { value: elemResponse });
93
- this._mock.command.isElementDisplayed(ELEMENT_ID).once().reply(200, { value: true });
93
+ this._mock.command.executeScript(ELEMENT_ID).once().reply(200, { value: true });
94
94
  }
95
95
  staleElementRefetchScenario() {
96
96
  this.nockReset();
@@ -160,8 +160,8 @@ export default class WebdriverMockService {
160
160
  this.nockReset();
161
161
  const elemResponse = { [ELEM_PROP]: ELEMENT_ID };
162
162
  this._mock.command.findElement().once().reply(200, { value: elemResponse });
163
- this._mock.command.isElementDisplayed(ELEMENT_ID).times(4).reply(200, { value: false });
164
- this._mock.command.isElementDisplayed(ELEMENT_ID).once().reply(200, { value: true });
163
+ this._mock.command.executeScript(ELEMENT_ID).times(4).reply(200, { value: false });
164
+ this._mock.command.executeScript(ELEMENT_ID).once().reply(200, { value: true });
165
165
  }
166
166
  cucumberScenario() {
167
167
  this.nockReset();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/webdriver-mock-service",
3
- "version": "8.23.0",
3
+ "version": "8.23.2",
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",
@@ -27,16 +27,16 @@
27
27
  "dependencies": {
28
28
  "@types/uuid": "^9.0.0",
29
29
  "@wdio/protocols": "8.23.0",
30
- "@wdio/types": "8.23.0",
30
+ "@wdio/types": "8.23.1",
31
31
  "nock": "^13.2.4",
32
32
  "uuid": "^9.0.0",
33
- "webdriverio": "8.23.0"
33
+ "webdriverio": "8.23.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@wdio/globals": "8.23.0"
36
+ "@wdio/globals": "8.23.2"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "b17ce5f554deb8588cc156ad9676bd4bd13defe7"
41
+ "gitHead": "b0f0086ea01f3028228d449cef7b5dcdd853f08c"
42
42
  }