Skip to content

Instantly share code, notes, and snippets.

@sminutoli
Created September 2, 2016 13:08
Show Gist options
  • Save sminutoli/02994c6b4583b4361f0d486ecb58779a to your computer and use it in GitHub Desktop.
Save sminutoli/02994c6b4583b4361f0d486ecb58779a to your computer and use it in GitHub Desktop.
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