passsy / spot

Chainable powerful Flutter widget selector API, screenshots and assertions for awesome widget tests.
https://pub.dev/packages/spot
Apache License 2.0
63 stars 2 forks source link

Suggestion: add bool #30

Open danielmolnar opened 11 months ago

danielmolnar commented 11 months ago

It would be great to have an implementation that replaces something like this:

bool hasBurgerMenu() {
    return spot<Tooltip>().whereMessage((it) => it.equals('Open navigation menu')).finder.evaluate().isNotEmpty;
}