Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('Example Test Suite', function(){
- describe('Test the form', function(){
- it('starts with empty inputs', function(){
- var $username = $("#username"),
- $password = $("#password");
- expect($username.val()).to.equal('');
- expect($password.val()).to.equal('');
- });
- changeThePage('by clicking the login button', function(done) {
- doClick();
- done();
- });
- });
- describe('Test the results', function(){
- it('logged in successfully', function(){
- var $tag = $("#login-success");
- expect($tag.length).to.equal(1);
- });
- markAsFinalSuite();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement