mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-11-04 03:54:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			422 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			422 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:flutter/services.dart';
 | 
						|
import 'package:flutter_test/flutter_test.dart' as flutter_test;
 | 
						|
 | 
						|
class FlowyTestKeyboard {
 | 
						|
  static Future<void> simulateKeyDownEvent(
 | 
						|
    List<LogicalKeyboardKey> keys, {
 | 
						|
    required flutter_test.WidgetTester tester,
 | 
						|
  }) async {
 | 
						|
    for (final LogicalKeyboardKey key in keys) {
 | 
						|
      await flutter_test.simulateKeyDownEvent(key);
 | 
						|
      await tester.pumpAndSettle();
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 |