我正在使用flutter_driver编写集成测试,以使用输入文本后必须输入(键盘事件)的文本字段进行搜索,我找不到在flutter_Driver中生成键盘事件的任何解决方案,有什么解决方案吗?
test('search tests, search a user by name', () async {
print('Waiting for join now button');
print('search test started');
await driver.clearTimeline();
print('pause for 5 sec');
await Future.delayed(Duration(seconds: 5));
print('Tapping search field');
await driver.waitFor(searchbar.searchFieldFinder);
await driver.tap(searchbar.searchFieldFinder);
print('enter user searching');
await driver.enterText('Test user');
//**Enter Keyboard Event here**
}, timeout: Timeout(Duration(minutes: 2)));