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

Method seeCurrentPathEquals

lib/helper/Puppeteer.js:1766–1771  ·  view source on GitHub ↗

* {{> seeCurrentPathEquals }}

(path)

Source from the content-addressed store, hash-verified

1764 * {{> seeCurrentPathEquals }}
1765 */
1766 async seeCurrentPathEquals(path) {
1767 const currentUrl = await this._getPageUrl()
1768 const baseUrl = this.options.url || 'http://localhost'
1769 const actualPath = new URL(currentUrl, baseUrl).pathname
1770 return equals('url path').assert(normalizePath(path), normalizePath(actualPath))
1771 }
1772
1773 /**
1774 * {{> dontSeeCurrentPathEquals }}

Callers 1

testsFunction · 0.45

Calls 4

_getPageUrlMethod · 0.95
equalsFunction · 0.90
normalizePathFunction · 0.90
assertMethod · 0.80

Tested by

no test coverage detected