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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events