Skip to content

Commit 8277de8

Browse files
committed
chore: fix font test
1 parent 06949c5 commit 8277de8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/e2e/app-dir/next-font.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('app dir next-font', () => {
159159
})
160160

161161
if (!isDev) {
162-
describe('preload', () => {
162+
describe.only('preload', () => {
163163
it('should preload correctly with server components', async () => {
164164
const html = await renderViaHTTP(next.url, '/')
165165
const $ = cheerio.load(html)
@@ -188,7 +188,7 @@ describe('app dir next-font', () => {
188188
as: 'font',
189189
crossorigin: 'anonymous',
190190
"data-next-font": 'size-adjust',
191-
href: '/_next/static/media/b2104791981359ae-s.p.woff2',
191+
href: '/_next/static/media/e9b9dc0d8ba35f48-s.p.woff2',
192192
rel: 'preload',
193193
type: 'font/woff2',
194194
})
@@ -216,15 +216,15 @@ describe('app dir next-font', () => {
216216
as: 'font',
217217
crossorigin: 'anonymous',
218218
"data-next-font": 'size-adjust',
219-
href: '/_next/static/media/e1053f04babc7571.p.woff2',
219+
href: '/_next/static/media/feab2c68f2a8e9a4-s.p.woff2',
220220
rel: 'preload',
221221
type: 'font/woff2',
222222
})
223223
expect($('link[as="font"]').get(2).attribs).toEqual({
224224
as: 'font',
225225
crossorigin: 'anonymous',
226226
"data-next-font": 'size-adjust',
227-
href: '/_next/static/media/feab2c68f2a8e9a4.p.woff2',
227+
href: '/_next/static/media/e9b9dc0d8ba35f48-s.p.woff2',
228228
rel: 'preload',
229229
type: 'font/woff2',
230230
})
@@ -252,7 +252,7 @@ describe('app dir next-font', () => {
252252
as: 'font',
253253
crossorigin: 'anonymous',
254254
"data-next-font": 'size-adjust',
255-
href: '/_next/static/media/75c5faeeb9c86969.p.woff2',
255+
href: '/_next/static/media/e9b9dc0d8ba35f48-s.p.woff2',
256256
rel: 'preload',
257257
type: 'font/woff2',
258258
})
@@ -280,7 +280,7 @@ describe('app dir next-font', () => {
280280
as: 'font',
281281
crossorigin: 'anonymous',
282282
"data-next-font": 'size-adjust',
283-
href: '/_next/static/media/568e4c6d8123c4d6.p.woff2',
283+
href: '/_next/static/media/e9b9dc0d8ba35f48-s.p.woff2',
284284
rel: 'preload',
285285
type: 'font/woff2',
286286
})

0 commit comments

Comments
 (0)