next.js/test/e2e/geist-font/geist-font.test.ts
geist-font.test.ts23 lines643 B
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')
  })
})
Quest for Codev2.0.0
/
SIGN IN