Fix hydration error suspense (#4640)
* Fix hydration of error boundaries * add a regression test * add more comments * fix typos * more typos * fix clippy
This commit is contained in:
1 parent
ad40f81607
commit
d65f9a53c4
15 files changed
+249
-36
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// @ts-check
|
||||
const { test, expect } = require("@playwright/test");
|
||||
|
||||
test("errors", async ({ page }) => {
|
||||
await page.goto("http://localhost:3232");
|
||||
|
||||
// Make sure the error that was thrown on the server is shown in the error boundary on the client
|
||||
const errors = page.locator("#error-fallback-button");
|
||||
await expect(errors).toContainText("Error fallback button clicked 0 times");
|
||||
// Make sure the fallback is interactive
|
||||
await errors.click();
|
||||
await expect(errors).toContainText("Error fallback button clicked 1 times");
|
||||
});
|
||||
Reference in new issue
Block a user