leancodepl / patrol

Flutter-first UI testing framework. Ready for action!
https://patrol.leancode.co
Apache License 2.0
910 stars 142 forks source link

Write tests for native automation feature #852

Open bartekpacia opened 1 year ago

bartekpacia commented 1 year ago

Patrol's native automation feature doesn't have enough tests. We need to change this.

tap

Test cases:

enterText

Test cases:

Why is enterTextByIndex() not used above? I suggest removing/deprecating enterTextByIndex(). So instead of:

enterTextByIndex("Jane", 0);
enterTextByIndex("Appleseed", 1);

developers will write:

enterText(Selector(index: 0), "Jane");
enterText(Selector(index: 1), "Appleseed");
bartekpacia commented 1 year ago

More random ideas that we should introduce to Patrol: