Skip to content

Commit 5420b62

Browse files
committed
test: tweak
1 parent e34088b commit 5420b62

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/plugin-rsc/e2e/starter.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,14 @@ function defineTest(f: Fixture, variant?: 'no-ssr') {
117117
await page.goto(f.url())
118118
await waitForHydration(page)
119119
await using _ = await expectNoReload(page)
120+
await expect(page.getByText('Vite + RSC')).toBeVisible()
120121
const editor = f.createEditor('src/root.tsx')
121-
editor.edit((s) => s.replace('Server Counter', 'Server [edit] Counter'))
122-
await expect(
123-
page.getByRole('button', { name: 'Server [edit] Counter: 0' }),
124-
).toBeVisible()
122+
editor.edit((s) =>
123+
s.replace('<h1>Vite + RSC</h1>', '<h1>Vite x RSC</h1>'),
124+
)
125+
await expect(page.getByText('Vite x RSC')).toBeVisible()
125126
editor.reset()
126-
await expect(
127-
page.getByRole('button', { name: 'Server Counter: 0' }),
128-
).toBeVisible()
127+
await expect(page.getByText('Vite + RSC')).toBeVisible()
129128
})
130129
})
131130

0 commit comments

Comments
 (0)