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

Method dontSeeCurrentPathEquals

lib/helper/Puppeteer.js:1776–1781  ·  view source on GitHub ↗

* {{> dontSeeCurrentPathEquals }}

(path)

Source from the content-addressed store, hash-verified

1774 * {{> dontSeeCurrentPathEquals }}
1775 */
1776 async dontSeeCurrentPathEquals(path) {
1777 const currentUrl = await this._getPageUrl()
1778 const baseUrl = this.options.url || 'http://localhost'
1779 const actualPath = new URL(currentUrl, baseUrl).pathname
1780 return equals('url path').negate(normalizePath(path), normalizePath(actualPath))
1781 }
1782
1783 /**
1784 * {{> see }}

Callers 1

testsFunction · 0.45

Calls 4

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

Tested by

no test coverage detected