Skip to content

Commit dff280a

Browse files
committed
static metadata case
1 parent 02b8303 commit dff280a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Loading

test/e2e/app-dir/global-not-found/metadata/global-not-found-basic.test.ts renamed to test/e2e/app-dir/global-not-found/metadata/metadata.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { nextTestSetup } from 'e2e-utils'
22

3-
describe('global-not-found - basic', () => {
3+
describe('global-not-found - metadata', () => {
44
const { next } = nextTestSetup({
55
files: __dirname,
66
})
@@ -12,6 +12,8 @@ describe('global-not-found - basic', () => {
1212
expect($('meta[name="description"]').attr('content')).toBe(
1313
'global-not-found description'
1414
)
15+
// pick up static icon svg
16+
expect($('link[rel="icon"]').attr('type')).toBe('image/svg+xml')
1517

1618
// assert hydrated metadata
1719
const browser = await next.browser('/does-not-exist')
@@ -21,5 +23,8 @@ describe('global-not-found - basic', () => {
2123
expect(await description.getAttribute('content')).toBe(
2224
'global-not-found description'
2325
)
26+
// pick up static icon svg
27+
const icon = await browser.elementByCss('link[rel="icon"]')
28+
expect(await icon.getAttribute('type')).toBe('image/svg+xml')
2429
})
2530
})

0 commit comments

Comments
 (0)