Skip to content

Commit 6dfbca9

Browse files
committed
fix: flaky edit profile page test when run locally
1 parent bac37ca commit 6dfbca9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/web/features/profile/edit/EditProfilePage.test.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ describe("Edit profile", () => {
7878

7979
await user.clear(aboutMeInput);
8080
await waitFor(() => expect(aboutMeInput).toHaveValue(""));
81-
await user.type(aboutMeInput, aboutMeText);
81+
// Use paste instead of type for large text - much faster, avoids a
82+
// re-render of the whole form per keystroke
83+
await user.click(aboutMeInput);
84+
await user.paste(aboutMeText);
8285

8386
const saveButton = await screen.findByRole("button", {
8487
name: t("global:save_changes"),

0 commit comments

Comments
 (0)