Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. describe('Example Test Suite', function(){
  2.  
  3. describe('Test the form', function(){
  4.  
  5. it('starts with empty inputs', function(){
  6.  
  7. var $username = $("#username"),
  8. $password = $("#password");
  9.  
  10. expect($username.val()).to.equal('');
  11. expect($password.val()).to.equal('');
  12. });
  13.  
  14. changeThePage('by clicking the login button', function(done) {
  15.  
  16. doClick();
  17. done();
  18. });
  19. });
  20.  
  21. describe('Test the results', function(){
  22.  
  23. it('logged in successfully', function(){
  24.  
  25. var $tag = $("#login-success");
  26. expect($tag.length).to.equal(1);
  27. });
  28.  
  29. markAsFinalSuite();
  30. });
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement