Let 'waitForCellAtIndexPath' actually wait for a cell at a given index p...#414
Conversation
|
If I understand your change correctly, you are waiting for reloadData to be called and for it to complete. That is different than what the title of the pull request says, but nevertheless this is a good change. If you squash the commits I can merge it in. |
|
Rebased and forced push. Well, yes, basically with this pull request KIF, will wait the cell to be visible before failing. Let's say you have a View Controller where a tableview displays a list of products obtained through a http request. Without the pull request we have a fail just after 1, with the pull request the test will succeed. |
Let 'waitForCellAtIndexPath' actually wait for a cell at a given index p...
...ath
This pull request gives more flexibility when dealing with tableviews and collectionviews.
In our application we usually show an empty tableview, where the content is updated through a web request.
Currently on KIF the method waits only the tableview, assuming that if we have the table view, we should have also the cell, that's not always true, indeed in our application it always result on "cell not found" error.
I expanded the method to actually wait for an existent cell at a given index path.