Experiement Test Case

describe('Phone detail view', function() {

  beforeEach(function() {
    browser.get('app/index.html#/phones/nexus-s');
  });
  it('should display atleast 4 images', function(){
    var phoneImg = element.all(by.repeater('img in phone.images'));
    expect(phoneImg.count()).toBeGreaterThan(3);
  });
});
Advertisements