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

Method dontSeeCurrentPathEquals

lib/helper/Playwright.js:2464–2469  ·  view source on GitHub ↗

* {{> dontSeeCurrentPathEquals }}

(path)

Source from the content-addressed store, hash-verified

2462 * {{> dontSeeCurrentPathEquals }}
2463 */
2464 async dontSeeCurrentPathEquals(path) {
2465 const currentUrl = await this._getPageUrl()
2466 const baseUrl = this.options.url || 'http://localhost'
2467 const actualPath = new URL(currentUrl, baseUrl).pathname
2468 return equals('url path').negate(normalizePath(path), normalizePath(actualPath))
2469 }
2470
2471 /**
2472 * {{> see }}

Callers

nothing calls this directly

Calls 4

_getPageUrlMethod · 0.95
equalsFunction · 0.90
normalizePathFunction · 0.90
negateMethod · 0.80

Tested by

no test coverage detected