fix: resolve test

This commit is contained in:
Jake Howell
2026-02-24 16:36:54 +00:00
parent bd02ba0284
commit 11b8cd89ff
@@ -65,10 +65,10 @@ describe("AccountPage", () => {
renderWithAuth(<AccountPage />);
await fillAndSubmitForm();
const errorMessage = await screen.findByText(
const errorMessages = await screen.findAllByText(
"Username is already in use",
);
expect(errorMessage).toBeDefined();
expect(errorMessages.length).toBeGreaterThanOrEqual(2);
expect(API.updateProfile).toBeCalledTimes(1);
expect(API.updateProfile).toBeCalledWith("me", newData);
});