How to properly test this component with Jest and React Testing Library? #633
              
                Unanswered
              
          
                  
                    
                      marcosclorian
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| I would rather try and find it using accessible label, and that's the way RTL usually recommends finding elements. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm trying to test this component by doing this:
const inputsDate = await screen.findAllByRole("spinbutton");In this way, I can see every input number and select one by one, there is another way to test it?
Beta Was this translation helpful? Give feedback.
All reactions