Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9d24e84

Browse files
committedMar 15, 2025·
rename
1 parent c1aba7f commit 9d24e84

File tree

14 files changed

+7
-8
lines changed

14 files changed

+7
-8
lines changed
 

‎test/e2e/app-dir/metadata-streaming/app/parallel-routes-no-children/layout.tsx renamed to ‎test/e2e/app-dir/metadata-streaming/app/parallel-routes-default/layout.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default function Layout({ bar, foo, children }) {
66
<h1>Parallel Routes Layout - No Children</h1>
77
<div id="foo-slot">{foo}</div>
88
<div id="bar-slot">{bar}</div>
9+
10+
{/* hitting default.js */}
911
{children}
1012
</div>
1113
)
@@ -15,7 +17,6 @@ export async function generateMetadata() {
1517
await connection()
1618
await new Promise((resolve) => setTimeout(resolve, 300))
1719
return {
18-
title: 'parallel-routes-no-children layout title',
19-
description: 'parallel-routes-no-children layout description',
20+
title: 'parallel-routes-default layout title',
2021
}
2122
}

‎test/e2e/app-dir/metadata-streaming/metadata-streaming.test.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,16 @@ describe('app-dir - metadata-streaming', () => {
128128
})
129129

130130
it('should still render metadata if children is not rendered in parallel routes layout', async () => {
131-
const browser = await next.browser('/parallel-routes-no-children')
131+
const browser = await next.browser('/parallel-routes-default')
132132

133133
expect((await browser.elementsByCss('title')).length).toBe(1)
134134
expect(await browser.elementByCss('body title').text()).toBe(
135-
'parallel-routes-no-children layout title'
135+
'parallel-routes-default layout title'
136136
)
137137

138-
const $ = await next.render$('/parallel-routes-no-children')
138+
const $ = await next.render$('/parallel-routes-default')
139139
expect($('title').length).toBe(1)
140-
expect($('body title').text()).toBe(
141-
'parallel-routes-no-children layout title'
142-
)
140+
expect($('body title').text()).toBe('parallel-routes-default layout title')
143141
})
144142

145143
describe('dynamic api', () => {

0 commit comments

Comments
 (0)
Please sign in to comment.