mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 18:15:09 +00:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			448 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			448 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
|   | import 'package:flutter/material.dart'; | ||
|  | import 'package:flutter_test/flutter_test.dart'; | ||
|  | 
 | ||
|  | import 'base.dart'; | ||
|  | 
 | ||
|  | extension EmojiTestExtension on WidgetTester { | ||
|  |   /// Must call [openEmojiPicker] first
 | ||
|  |   Future<void> switchToEmojiList() async { | ||
|  |     final icon = find.byIcon(Icons.tag_faces); | ||
|  |     await tapButton(icon); | ||
|  |   } | ||
|  | 
 | ||
|  |   Future<void> tapEmoji(String emoji) async { | ||
|  |     final emojiWidget = find.text(emoji); | ||
|  |     await tapButton(emojiWidget); | ||
|  |   } | ||
|  | } |