I am trying to select radio in my flutter integration test. Here is my test.dart code. I do not get any error on running this lines, however the radio button do not get selected.
final roleRadioBtn = find.byKey(const ValueKey('rbRole')).at(2); await tester.tap(roleRadioBtn);
The developer code for radio button looks like this:
Radio userRoleRadio( BuildContext context, String role, String currentRole) { return Radio( key: const Key("rbRole"), value: role, groupValue: currentRole, onChanged: () { context.read().add(OnChange(role)); }, ); }