MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / dontSeeCurrentPathEquals

Method dontSeeCurrentPathEquals

lib/helper/WebDriver.js:1877–1882  ·  view source on GitHub ↗

* {{> dontSeeCurrentPathEquals }}

(path)

Source from the content-addressed store, hash-verified

1875 * {{> dontSeeCurrentPathEquals }}
1876 */
1877 async dontSeeCurrentPathEquals(path) {
1878 const currentUrl = await this.browser.getUrl()
1879 const baseUrl = this.options.url || 'http://localhost'
1880 const actualPath = new URL(currentUrl, baseUrl).pathname
1881 return equals('url path').negate(normalizePath(path), normalizePath(actualPath))
1882 }
1883
1884 /**
1885 * Wraps [execute](http://webdriver.io/api/protocol/execute.html) command.

Callers

nothing calls this directly

Calls 3

equalsFunction · 0.90
normalizePathFunction · 0.90
negateMethod · 0.80

Tested by

no test coverage detected