Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

repeater - End to End Scenario Runner and Class Attribute #1393

Closed
j-5-s opened this issue Sep 20, 2012 · 1 comment
Closed

repeater - End to End Scenario Runner and Class Attribute #1393

j-5-s opened this issue Sep 20, 2012 · 1 comment

Comments

@j-5-s
Copy link

j-5-s commented Sep 20, 2012

Perhaps I'm just doing it wrong but i cant figure out why the repeater does not work when I have a nested html tag. for example:

    <li ng-repeat="item in items">
        <input type="checkbox" ng-model="item.complete" ><span class="done-{{item.complete}}">{{item.text}}</span>
    </li>

and in my test case I have:

 expect(repeater('ul.items li').row(0)).toEqual(['go to store']);

just having the with a class attribute will cause the test to fail:

expected ["go to store"] but was []

but changing

<input type="checkbox" ng-model="item.complete" ><span class="done-{{item.complete}}">

to

<input type="checkbox" ng-model="item.complete" ><span SOMETHhingElseclass="done-{{item.complete}}">

will allow the test to pass.

@btford
Copy link
Contributor

btford commented Feb 5, 2014

Not sure either, but I'm closing this since the scenario runner is deprecated and there's been no activity on this issue for a year.

See angular/protractor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants