18 lines
538 B
TypeScript
18 lines
538 B
TypeScript
|
import { createNextDescribe } from 'e2e-utils'
|
||
|
|
||
|
// This test case doesn't indicate rendering duplicate head in _document is valid,
|
||
|
// but it's a way to reproduce the performance mark crashing.
|
||
|
createNextDescribe(
|
||
|
'pages performance mark',
|
||
|
{
|
||
|
files: __dirname,
|
||
|
skipDeployment: true,
|
||
|
},
|
||
|
({ next }) => {
|
||
|
it('should render the page correctly without crashing with performance mark', async () => {
|
||
|
const browser = await next.browser('/')
|
||
|
expect(await browser.elementByCss('h1').text()).toBe('home')
|
||
|
})
|
||
|
}
|
||
|
)
|