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

Method seeCurrentPathEquals

lib/helper/Playwright.js:2454–2459  ·  view source on GitHub ↗

* {{> seeCurrentPathEquals }}

(path)

Source from the content-addressed store, hash-verified

2452 * {{> seeCurrentPathEquals }}
2453 */
2454 async seeCurrentPathEquals(path) {
2455 const currentUrl = await this._getPageUrl()
2456 const baseUrl = this.options.url || 'http://localhost'
2457 const actualPath = new URL(currentUrl, baseUrl).pathname
2458 return equals('url path').assert(normalizePath(path), normalizePath(actualPath))
2459 }
2460
2461 /**
2462 * {{> dontSeeCurrentPathEquals }}

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected