File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
test/e2e/app-dir/global-not-found/metadata Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11import { 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} )
You can’t perform that action at this time.
0 commit comments