Open bartekpacia opened 1 year ago
Patrol's native automation feature doesn't have enough tests. We need to change this.
Test cases:
tap(Selector(text: "Log in"))
tap(Selector(text: "Log in", index: 1))
enterText(Selector(index: 0), "Jane")
enterText(Selector(index: 1), "Jane")
Why is enterTextByIndex() not used above? I suggest removing/deprecating enterTextByIndex(). So instead of:
enterTextByIndex()
enterTextByIndex("Jane", 0); enterTextByIndex("Appleseed", 1);
developers will write:
enterText(Selector(index: 0), "Jane"); enterText(Selector(index: 1), "Appleseed");
More random ideas that we should introduce to Patrol:
patrol develop
internal
$.native
Patrol's native automation feature doesn't have enough tests. We need to change this.
tap
Test cases:
tap(Selector(text: "Log in"))
is calledtap(Selector(text: "Log in", index: 1))
is calledtap(Selector(text: "Log in", index: 1))
is calledenterText
Test cases:
enterText(Selector(index: 0), "Jane")
is calledenterText(Selector(index: 1), "Jane")
is calledenterText(Selector(index: 1), "Jane")
is calledWhy is
enterTextByIndex()
not used above? I suggest removing/deprecatingenterTextByIndex()
. So instead of:developers will write: