Skip to content

[Espresso-Flutter] Testing API for Flutter's ListView/GridView #412

Open
@adazh

Description

@adazh

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 flutter/flutter#12319).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions