mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +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);
|
||
|
}
|
||
|
}
|