Skip to content

how to properly use tap with ignore pointer #127

@vasilich6107

Description

@vasilich6107

Hi @passsy

I'm testing the implementation when I have the button wrapped in ignore pointer and I'm intentionally want to be able to tap on the button and verify that the tap callback was not called. So when using tap, there is an ignoring point there. So my question is how to properly use the tap to be able to test on the widgets.

await act.tap(spot<FilledButton>());
// fails with exception here.
verify(() => mockOnPressed()).called(0);

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