feat: icon-based status strip with search and log actions
This commit is contained in:
1 parent
0423027e97
commit
2a307b2f48
3 files changed
+218
-13
No files matched your search
@@ -50,6 +50,19 @@ void main() {
|
||||
expect(find.text('待新识'), findsOneWidget);
|
||||
expect(find.text('开始学习'), findsOneWidget);
|
||||
|
||||
// 顶部状态标识:接力用闪电、同步用云图标,不再用文字表达状态。
|
||||
expect(find.byIcon(Icons.bolt_rounded), findsOneWidget);
|
||||
expect(find.text('今日记忆'), findsOneWidget);
|
||||
expect(find.text('59'), findsOneWidget);
|
||||
expect(find.byIcon(Icons.cloud_done_rounded), findsOneWidget);
|
||||
expect(find.byTooltip('搜索条目'), findsOneWidget);
|
||||
expect(find.byTooltip('学习日志'), findsOneWidget);
|
||||
|
||||
// 学习域的四个快捷入口。
|
||||
for (final String label in <String>['收藏夹', '自我测试', '附带资料', '计划设置']) {
|
||||
expect(find.text(label), findsOneWidget);
|
||||
}
|
||||
|
||||
// 未接入内核的入口点击后要有反馈,不能静默无响应。
|
||||
await tester.tap(find.text('开始学习'));
|
||||
await tester.pump();
|
||||
|
||||
Reference in new issue
Block a user