{ const canvas = within(canvasElement); await userEvent.click(canvas.getByRole("button", { name: /alice/i })); await userEvent.click(await canvas.findByRole("menuitem", { name: /bob/i })); await waitFor(() => expect(args.onSwitchAccount).toHaveBeenCalledWith("did:plc:bob")); }} />