angular-super-seed icon indicating copy to clipboard operation
angular-super-seed copied to clipboard

home.def.js will only work for first feature

Open RefuX opened this issue 10 years ago • 1 comments

   expect(element(by.repeater('feature in features')).getText()).to.eventually.contain(feature);

Will always get the text of the first feature.

So if you changed your home.feature test to be: Then I should see the feature "Feature specific configuration"

It would fail.

Which seems a little surprising.

RefuX avatar May 23 '14 07:05 RefuX

You're right. I'd like this test to be more robust but haven't invested the time yet to get to know protractor. Do you have any idea what the expect statement should be like if we wanted to check all features in the repeater?

SpoBo avatar May 27 '14 10:05 SpoBo