describe("module:ng.directive:ngSubmit", function() {
  beforeEach(function() {
    browser.get("./examples/example-example32/index-jquery.html");
  });

  it('should check ng-submit', function() {
    expect(element(by.binding('list')).getText()).toBe('list=[]');
    element(by.css('#submit')).click();
    expect(element(by.binding('list')).getText()).toContain('hello');
    expect(element(by.model('text')).getAttribute('value')).toBe('');
  });
  it('should ignore empty strings', function() {
    expect(element(by.binding('list')).getText()).toBe('list=[]');
    element(by.css('#submit')).click();
    element(by.css('#submit')).click();
    expect(element(by.binding('list')).getText()).toContain('hello');
   });
});