element(by.model('<modelName>')).getAttribute('placeholder').then(function(element){
expect(element).toEqual('<expected placeholder txt>');
});
This works for me. I have used it with model
, you can use it with any item you are testing.
source
to share