How do i check if element exists by id with Jasmine?
Using Protractor v1.x (without angularjs-jasmine-matchers):
expect(element(by.id('my-id')).isPresent()).toBe(true);
To use the angularjs-jasmine-matchers, you could write the test like this:
expect('#my-id').not.toExist();