next.js/test/e2e/error-handler-not-found-req-url/error-handler-not-found-req-url.test.ts
error-handler-not-found-req-url.test.ts14 lines409 B
import { nextTestSetup } from 'e2e-utils'

describe('error-handler-not-found-req-url', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should log the correct request url and asPath for not found _error page', async () => {
    const browser = await next.browser('/3')
    const p = await browser.elementByCss('p')
    expect(await p.text()).toBe('reqUrl: /3, asPath: /3')
  })
})
Quest for Codev2.0.0
/
SIGN IN