The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • How to setup a unit test for atlaskit component UserPicker using react testing library & JEST?

How to setup a unit test for atlaskit component UserPicker using react testing library & JEST?

Ansh Chandarana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2024

I am using a atlaskit component UserPicker in my JIRA Custom UI application.
I need to setup a unit test for it. But I cannot find a way to 'expect' the component on the screen(I have tried using ByRole, ById and ByLabel but it didn't work).
It would be really helpful if someone can me guide me on how to setup a unit test atlaskit components like UserPicker.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events