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

Method seeCurrentPathEquals

lib/helper/WebDriver.js:1867–1872  ·  view source on GitHub ↗

* {{> seeCurrentPathEquals }}

(path)

Source from the content-addressed store, hash-verified

1865 * {{> seeCurrentPathEquals }}
1866 */
1867 async seeCurrentPathEquals(path) {
1868 const currentUrl = await this.browser.getUrl()
1869 const baseUrl = this.options.url || 'http://localhost'
1870 const actualPath = new URL(currentUrl, baseUrl).pathname
1871 return equals('url path').assert(normalizePath(path), normalizePath(actualPath))
1872 }
1873
1874 /**
1875 * {{> dontSeeCurrentPathEquals }}

Callers

nothing calls this directly

Calls 3

equalsFunction · 0.90
normalizePathFunction · 0.90
assertMethod · 0.80

Tested by

no test coverage detected