Open evanblasband opened 2 years ago
Did you find any solutions? I'm thinking of swapping out this widget for something testable, as essentially it isn't that important / nice, and not being able to test-automate is seen as more important than fancy/styled pin code field
This worked...
await driver.runUnsynchronized(() async {
final pinField = find.descendant(
of: find.byType('PinCodeTextField'),
matching: find.byType('AnimatedContainer'),
firstMatchOnly: true,
);
await driver.tapElement(pinField);
await driver.enterText('1234');
});
I have a questions on how to test this package in my app. Specifically I want to navigate to this page and run through different scenarios (i.e. enter correct pin, enter incorrect pin etc.) and verify the given action is correct. However I am not sure how to enter text into this widget for an input. I am currently doing the following:
where the key is for the
PinCodeTextField
widget in my app. Any insight would be much appreciated.