title: Unit testing UI application
body: <p>Can a UI application be unit tested? Lets consider a UI application which has a simple login form. What would form part of unit test for this UI application. Should the backend response validation form part of unit test for login form? </p>
  
  <p>In my opinion, It should include; </p>
  
  <ol>
  <li>appropriate rendering of UI components in the form. </li>
  <li>enabling/Disabling of components based on user actions (password can not be empty message when password is not entered and form is submitted).</li>
  </ol>
  
  <p>Are there any guidelines/rule of thumbs which should be used while devising unit test cases for UI application? Should an application behavior considered in unit testing?  </p>