MCPcopy
hub / github.com/codeceptjs/CodeceptJS / seeDeviceIsLocked

Method seeDeviceIsLocked

lib/helper/Appium.js:701–705  ·  view source on GitHub ↗

* Check whether the device is locked. * * ```js * I.seeDeviceIsLocked(); * ``` * * @return {Promise } * * Appium: support only Android

()

Source from the content-addressed store, hash-verified

699 * Appium: support only Android
700 */
701 async seeDeviceIsLocked() {
702 onlyForApps.call(this, supportedPlatform.android)
703 const res = await this.browser.isLocked()
704 return truth('device', 'to be locked').assert(res)
705 }
706
707 /**
708 * Check whether the device is not locked.

Callers 3

Appium_test.jsFile · 0.80
AppiumTs.types.tsFile · 0.80
Appium.types.tsFile · 0.80

Calls 2

truthFunction · 0.90
assertMethod · 0.80

Tested by

no test coverage detected