Skip to content

Commit 7c185d9

Browse files
committed
fix test
1 parent 2a84d62 commit 7c185d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/vite-hmr-hdr-rsc-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ test.describe("Vite HMR & HDR (RSC)", () => {
392392
await page.waitForLoadState("networkidle");
393393
await expect(hmrStatus).toHaveText("Client Route HMR: 0");
394394
// state is not preserved when switching from server to client route
395-
await expect(input).toHaveValue("");
395+
await input.clear();
396396
await input.type("client stateful");
397397
expect(page.errors).toEqual([]);
398398
await edit("app/routes/hmr/route.tsx", (contents) =>
@@ -415,7 +415,7 @@ test.describe("Vite HMR & HDR (RSC)", () => {
415415
await page.waitForLoadState("networkidle");
416416
await expect(hmrStatus).toHaveText("Server Route HMR: 0");
417417
// State is not preserved when switching from client to server route
418-
await expect(input).toHaveValue("");
418+
await input.clear();
419419
await input.type("server stateful");
420420
expect(page.errors).toEqual([]);
421421
await edit("app/routes/hmr/route.tsx", (contents) =>

0 commit comments

Comments
 (0)