next.js / test /e2e /error-handler-not-found-req-url /error-handler-not-found-req-url.test.ts
AbdulElahGwaith's picture
Upload folder using huggingface_hub
b91e262 verified
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')
})
})