Unverified Commit fb23f7b6 authored by Corbin Crutchley's avatar Corbin Crutchley Committed by GitHub

chore: add test for in-fragment HEAD reflection (#35320)

parent 01629113
...@@ -6,6 +6,9 @@ export function Meta(props) { ...@@ -6,6 +6,9 @@ export function Meta(props) {
<Head> <Head>
<meta name="test-head-3" content="hello" /> <meta name="test-head-3" content="hello" />
<meta name="test-head-4" content="hello" /> <meta name="test-head-4" content="hello" />
<>
<meta name="test-in-fragment" content="hello" />
</>
</Head> </Head>
</> </>
) )
......
...@@ -44,6 +44,13 @@ describe('should set-up next', () => { ...@@ -44,6 +44,13 @@ describe('should set-up next', () => {
} }
}) })
it('should have correct head tags from a fragment', async () => {
const html = await renderViaHTTP(next.url, '/')
const $ = cheerio.load(html)
expect($(`meta[name="test-in-fragment"]`).attr()['content']).toBe('hello')
})
it('should have correct head tags after hydration', async () => { it('should have correct head tags after hydration', async () => {
const browser = await webdriver(next.url, '/') const browser = await webdriver(next.url, '/')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment