Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 30, 2016 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/b974c1ad84dda0951b5336fabfe75d6d to your computer and use it in GitHub Desktop.
Save matthieu-D/b974c1ad84dda0951b5336fabfe75d6d to your computer and use it in GitHub Desktop.
it('should set then clear the value of an input', () => {
let value = "Some text";
let elem = element(by.id('input-one'));
elem.sendKeys(value);
expect(elem.getAttribute('value')).toBe(value);
elem.clear();
expect(elem.getAttribute('value')).toBe('');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment