Another solution would be to have the ng-repeat on <td> instead of <span>. But the tests would have to be updated.