diff --git a/test/basic.test.ts b/test/basic.test.ts
index 65f30fb711..5216fe3118 100644
--- a/test/basic.test.ts
+++ b/test/basic.test.ts
@@ -1444,7 +1444,8 @@ describe('server components/islands', () => {
await page.getByText('Go to page without lazy server component').click()
const text = await page.innerText('pre')
- expect(text).toMatchInlineSnapshot('" End page
This is a .server (20ms) async component that was very long ...
42
Sugar Counter 12 x 1 = 12
The component bellow is not a slot but declared as interactive
This is a .server (20ms) async component that was very long ...
42
Sugar Counter 12 x 1 = 12
The component bellow is not a slot but declared as interactive
"')
+ text.replace(/nuxt-ssr-client="([^"])"/g, (_, content) => `'nuxt-ssr-client="${content.split('-')[0]}"`)
+ expect(text).toMatchInlineSnapshot('" End page This is a .server (20ms) async component that was very long ...
42
Sugar Counter 12 x 1 = 12
The component bellow is not a slot but declared as interactive
This is a .server (20ms) async component that was very long ...
42
Sugar Counter 12 x 1 = 12
The component bellow is not a slot but declared as interactive
"')
expect(text).toContain('async component that was very long')
// Wait for all pending micro ticks to be cleared
@@ -1711,19 +1712,20 @@ describe('component islands', () => {
result.props = {}
result.teleports = {}
result.chunks = {}
+ result.html = result.html.replace(/ nuxt-ssr-client="([^"]*)"/g, (_, content) => `'nuxt-ssr-client="${content.split('-')[0]}"`)
expect(result).toMatchInlineSnapshot(`
- {
- "chunks": {},
- "head": {
- "link": [],
- "style": [],
- },
- "html": " This is a .server (20ms) async component that was very long ...
2
Sugar Counter 12 x 1 = 12
The component bellow is not a slot but declared as interactive
",
- "props": {},
- "state": {},
- "teleports": {},
- }
- `)
+ {
+ "chunks": {},
+ "head": {
+ "link": [],
+ "style": [],
+ },
+ "html": " This is a .server (20ms) async component that was very long ...
2
Sugar Counter 12 x 1 = 12
The component bellow is not a slot but declared as interactive
",
+ "props": {},
+ "state": {},
+ "teleports": {},
+ }
+ `)
const propsEntries = Object.entries(props)
const teleportsEntries = Object.entries(teleports)