Skip to content

Allow to pass in kind to act.tap #103

@ABausG

Description

@ABausG

While migrating some tests from default flutter_test to spot I noticed that act.tap does not support setting the kind. We require this to test certain behaviour thats different based on touch vs mouse input.

flutter_test implementation:

    await tester.tap(
      find.text('MyFinder'),
      kind: PointerDeviceKind.mouse,
    );

Expected api:

    await act.tap(
      spotText('MyFinder'),
      kind: PointerDeviceKind.mouse,
    );

Same goes probably for all other tap/drag interactions that spot provides

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions