describe("", function() {
  var rootEl;
  beforeEach(function() {
    rootEl = browser.rootEl;
    browser.get("examples/example-ngList-directive/index-jquery.html");
  });
  
  var listInput = element(by.model('names'));
  var names = element(by.binding('{{names}}'));
  var valid = element(by.binding('myForm.namesInput.$valid'));
  var error = element(by.css('span.error'));

  it('should initialize to model', function() {
    expect(names.getText()).toContain('["igor","misko","vojta"]');
    expect(valid.getText()).toContain('true');
    expect(error.getCssValue('display')).toBe('none');
  });

  it('should be invalid if empty', function() {
    listInput.clear();
    listInput.sendKeys('');

    expect(names.getText()).toContain('');
    expect(valid.getText()).toContain('false');
    expect(error.getCssValue('display')).not.toBe('none');        });
});