rsnext/test/e2e/pages-performance-mark/index.test.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
538 B
TypeScript
Raw Normal View History

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')
})
}
)