Why is the data-test element for Username on the div instead of the input element? #1085
              
                
                  
                  
                    Answered
                  
                  by
                    robertguss
                  
              
          
                  
                    
                      FrankAmsterdam
                    
                  
                
                  asked this question in
                General
              
            -
| I'm having a lot of fun playing around with the Cypress RWA. Searching for the data-test attributes for username and password on the login page I expected them to be on the input element but found them on a div parent element. I noticed in my tests that it was possible to use these div to type in the text which suprises me a little bit. | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            robertguss
          
      
      
        Sep 14, 2021 
      
    
    Replies: 1 comment 2 replies
-
| Hi @FrankAmsterdam this is because we are using Material UI components to render these inputs. You can see how they are being used here: Hopefully that helps clarify things. | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        FrankAmsterdam
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Hi @FrankAmsterdam this is because we are using Material UI components to render these inputs. You can see how they are being used here:
cypress-realworld-app/src/components/SignUpForm.tsx
Line 129 in 86bc319
cypress-realworld-app/src/components/SignUpForm.tsx
Line 137 in 86bc319
Hopefully that helps clarify things.