MCPcopy
hub / github.com/sveltejs/kit / clicknav

Function clicknav

packages/kit/test/utils.js:32–39  ·  view source on GitHub ↗

* @param {string} selector * @param {{ timeout: number }} options

(selector, options)

Source from the content-addressed store, hash-verified

30 * @param {{ timeout: number }} options
31 */
32 async function clicknav(selector, options) {
33 const element = page.locator(selector);
34 if (javaScriptEnabled) {
35 await Promise.all([page.waitForNavigation(options), element.click()]);
36 } else {
37 await element.click();
38 }
39 }
40
41 await use(clicknav);
42 },

Callers 6

test.jsFile · 0.85
client.test.jsFile · 0.85
test.jsFile · 0.85
client.test.jsFile · 0.85
test.jsFile · 0.85
test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected