rsnext/test/integration/production/pages/prefetch.js
JJ Kasper f89d55f10d Add selenium-webdriver and testing cross-browser in PRs (#9821)
* Migrate from wd to selenium-webdriver

* Add chaining for next-webdriver

* Re-add browserStackLocal global for teardown

* Add additional element methods

* Use freshWindow helper for chrome

* Add selenium-server

* Add cross-env for windows compat

* Fix single quote windows

* Update production preload tests

* Update preload tests count

* Update CircleCi for testing other browsers

* Update CI configs

* Update config

* Add browser.url command

* Add more methods

* Update xcode version

* Make sure to add chromedriver to path

* Add forceExit flag

* Update config

* Update config

* Disable safari

* Fix bug in test

* Add teardown logging

* Update jest teardown

* Move testing ie11 to Azure

* Update job names

* Remove force exiting on long teardown

* Update Azure config

* Re-add safari testing with BrowserStack

* Update config

* Update prefetch tests for ie11

* Update prefetch for safari and ids for ie11 testing

* trigger prefetching manually in ie
2019-12-26 15:01:22 -05:00

30 lines
629 B
JavaScript

import Link from 'next/link'
export default () => {
return (
<div>
<ul>
<li>
<Link href="/" prefetch>
<a id="prefetch-1">index</a>
</Link>
</li>
<li>
<Link href="/process-env" prefetch>
<a id="prefetch-2">process env</a>
</Link>
</li>
<li>
<Link href="/counter" prefetch>
<a id="prefetch-3">counter</a>
</Link>
</li>
<li>
<Link href="/about" prefetch>
<a id="prefetch-4">about</a>
</Link>
</li>
</ul>
</div>
)
}