commit 764da660efc5ccb0b95936af6f14e08b3a4f9607 parent b7cceee4e5be10204d0c06f3623d090c6ae8b78c Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st> Date: Fri, 3 Jul 2026 03:18:06 -0400 e2e: refill rename fields before second submit (React 19 form reset) Diffstat:
| M | editor/e2e/channel-rename.spec.ts | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/editor/e2e/channel-rename.spec.ts b/editor/e2e/channel-rename.spec.ts @@ -29,7 +29,9 @@ test("rename requires the exact current slug and then moves the channel", async // Still on the old channel (a trailing ?site= query may be appended). await expect(page).toHaveURL(new RegExp(`/channels/${OLD}(\\?|$)`)); - // Correct confirmation renames and redirects to the new URL. + // Correct confirmation renames and redirects to the new URL. Refill both + // fields — React 19 resets the <form action> inputs after the failed submit. + await newSlug.fill(NEW); await confirm.fill(OLD); await submit.click(); await expect(page).toHaveURL(new RegExp(`/channels/${NEW}`));