Fix route hydration with ssg without early chunk commit (#4654)

* Fix route hydration with ssg without early chunk commit

* fix clobbered port for fullstack spread (merge conflict)

* wait for hydration

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Evan AlmloffandJonathan Kelley authored and GitHub committed 2025-10-03 19:59:47 -07:00
1 parent d8a6c265ab
commit d0c4376790
3 files changed
+24 -15

No files matched your search

@@ -2,11 +2,14 @@
const { test, expect } = require("@playwright/test");
test("spread attributes hydrate", async ({ page }) => {
await page.goto("http://localhost:7979");
await page.goto("http://localhost:7980");
await page.waitForTimeout(2000); // wait for hydration
// Expect the page to contain the button
const counter = page.locator("#counter");
await expect(counter).toHaveText("Count: 0");
// Clicking on the button should increment the count
await counter.click();
await expect(counter).toHaveText("Count: 1");