Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update APIRef.Matchers.md #1112

Merged
merged 1 commit into from
Jan 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/APIRef.Matchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ A common use-case, is adding identifiers to list items. testIDs for FlatList ite
await element(by.text('Product')).atIndex(2);
```
**Usage of `atIndex` is not recommended!**, since the order of matched views can not be guaranteed by the system. Recyclable views in [UITableView](https://developer.apple.com/documentation/uikit/uitableview) / [UICollectionView](https://developer.apple.com/documentation/uikit/uicollectionview) / [RecyclerView](https://developer.android.com/guide/topics/ui/layout/recyclerview) or any custom view may even change during scroll, while views are being recycled with new data.
React Native FlatList items are being traveresed in different ways on the different platforms, causing `atIndex` to return the **opposite indexes on iOS than what it does on Android.**
React Native FlatList items are being traversed in different ways on the different platforms, causing `atIndex` to return the **opposite indexes on iOS than what it does on Android.**


##### TIP: Finding the back button on iOS
Expand All @@ -168,4 +168,4 @@ on iOS 10:

```js
await element(by.type('_UIModernBarButton').and(by.label('Back')));
```
```