MCPcopy
hub / github.com/vercel/next.js / navigateTo

Function navigateTo

test/integration/client-navigation-a11y/test/index.test.ts:15–19  ·  view source on GitHub ↗
(browser, selector)

Source from the content-addressed store, hash-verified

13const appDir = join(__dirname, '../')
14
15const navigateTo = async (browser, selector) =>
16 await browser
17 .waitForElementByCss('#' + selector + '-link')
18 .click()
19 .waitForElementByCss('#' + selector)
20
21const getAnnouncedTitle = async (browser) =>
22 await browser.waitForElementByCss('#__next-route-announcer__').text()

Callers 1

index.test.tsFile · 0.70

Calls 2

waitForElementByCssMethod · 0.80
clickMethod · 0.80

Tested by

no test coverage detected