File size: 409 Bytes
b91e262
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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')
  })
})