Created
September 2, 2016 13:08
-
-
Save sminutoli/02994c6b4583b4361f0d486ecb58779a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should have a user field', ()=>{ | |
expect(wrapper.find('.login__user[name="username"]').length).toBe(1); | |
}); | |
it('should have a password field', ()=>{ | |
expect(wrapper.find('.login__password[name="password"][type="password"]').length).toBe(1); | |
}); | |
it('should have a submit button', ()=>{ | |
expect(wrapper.find('.login__btn').length).toBe(1); | |
}); | |
it('should disable the submit button by default', ()=>{ | |
expect(wrapper.find('.login__btn').prop('disabled')).toBe(true); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment