File size: 641 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import { nextTestSetup } from 'e2e-utils'
import { assertNoRedbox } from 'next-test-utils'
describe('geist-font', () => {
const { next } = nextTestSetup({
files: __dirname,
// `geist@latest` has a peer dependency issue with the latest Next.js.
// see: https://github.com/vercel/geist-font/pull/117
skipDeployment: true,
dependencies: {
geist: 'latest',
},
})
it('should work with geist font in pages router', async () => {
const browser = await next.browser('/foo')
await assertNoRedbox(browser)
const text = await browser.elementByCss('p').text()
expect(text).toBe('Foo page')
})
})
|