This commit is contained in:
yuneng-jiang 2026-08-27 20:08:02 -05:00 • committed by GitHub
commit d5230b0179
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,7 +130,8 @@ describe("UserSearchModal submit payload", () => {
const { onSubmit } = setup();
const user = userEvent.setup({ pointerEventsCheck: PointerEventsCheckLevel.Never });
await user.click(screen.getByLabelText("Member Role"));
act(() => screen.getByLabelText("Member Role").focus());
await user.keyboard("{Enter}");
await user.click(await screen.findByRole("option", { name: /^admin/ }));
await user.click(save());