Skip to content

Commit a37a984

Browse files
committed
test: cover solid deferred streaming order
1 parent f2c27eb commit a37a984

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

e2e/solid-start/basic-test-suite/src/streaming.spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ test('Directly visiting the deferred route', async ({ page }) => {
2727
)
2828
})
2929

30+
test('deferred route streams boundaries independently', async ({ page }) => {
31+
await page.goto('/deferred', { waitUntil: 'commit' })
32+
33+
await expect(page.getByTestId('regular-person')).toContainText('John Doe')
34+
await expect(page.getByText('Loading person...')).toBeVisible()
35+
await expect(page.getByText('Loading stuff...')).toBeVisible()
36+
37+
await expect(page.getByTestId('deferred-person')).toContainText(
38+
'Tanner Linsley',
39+
)
40+
await expect(page.getByText('Loading stuff...')).toBeVisible()
41+
await expect(page.getByTestId('deferred-stuff')).toContainText(
42+
'Hello deferred!',
43+
)
44+
})
45+
3046
test('streaming loader data', async ({ page }) => {
3147
await page.goto('/stream')
3248

0 commit comments

Comments
 (0)