Below is my markup
{{post.title}}
<
-
The answer from nilsK helped me, but didn't work completely. The code below did the trick:
element.all(by.repeater('post in posts')).then(function(posts) {
var titleElement = posts[0].element(by.className('title'));
expect(titleElement.getText()).toEqual('YourEnteredTitle');
});
- 热议问题