Skip to content

Commit a895624

Browse files
committed
more fixes
1 parent 8435da1 commit a895624

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

integration/form-test.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,16 +1031,13 @@ test.describe("Forms", () => {
10311031
`/form-method?method=${method}&submitterFormMethod=${overrideMethod}`,
10321032
true
10331033
);
1034-
await app.clickElement(`text=Submit with ${overrideMethod}`);
1034+
await page.locator(`text=Submit with ${overrideMethod}`).click();
10351035
if (overrideMethod !== "GET") {
1036-
await page.waitForSelector("#action-method");
1037-
expect(await app.getHtml("pre#action-method")).toBe(
1038-
`<pre id="action-method">${overrideMethod}</pre>`
1036+
await expect(page.locator("pre#action-method")).toHaveText(
1037+
overrideMethod
10391038
);
10401039
}
1041-
expect(await app.getHtml("pre#loader-method")).toBe(
1042-
`<pre id="loader-method">GET</pre>`
1043-
);
1040+
await expect(page.locator("pre#loader-method")).toHaveText("GET");
10441041
});
10451042
});
10461043
});

0 commit comments

Comments
 (0)