android / android/android-test
[Espresso-Flutter] Testing API for Flutter's ListView/GridView
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 342
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 2
Description
Like Espresso's onData API for interacting with native AdapterView/RecyclerView, we'd like to have similar testing API for Flutter's ListView/GridView. ListView has support for:
- A set of fixed children items;
- Dynamically built child items through its ListView.builder;
- An infinite number of children items without specifying the `itemCount` in its ListView.builder.
After doing some experiments, it's doable to match against the sliver which backs up the ListView data, but we cannot jump to a given position/index in the ListView today (blocked by https://github.com/flutter/flutter/issues/12319).
Contributor guide
Research direction
Start by reviewing the requested Espresso-Flutter API behavior in this issue and the linked Flutter issue 12319 about jumping to a ListView position. Define how matching should work for fixed children, builder-created children, and builders without an itemCount; the work is done when those cases have a usable testing API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter
- Domain
- mobile, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100