mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
23 lines
643 B
TypeScript
23 lines
643 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
import { waitForNoRedbox } 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 waitForNoRedbox(browser)
|
|
const text = await browser.elementByCss('p').text()
|
|
expect(text).toBe('Foo page')
|
|
})
|
|
})
|