Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: remove the selection_menu_widget_test.dart

Lucas.Xu62c2da06d478
diff --git a/frontend/app_flowy/packages/appflowy_editor/test/render/selection_menu/selection_menu_item_widget_test.dart b/frontend/app_flowy/packages/appflowy_editor/test/render/selection_menu/selection_menu_item_widget_test.dart
deleted file mode 100644
index 01c1403738..0000000000
--- a/frontend/app_flowy/packages/appflowy_editor/test/render/selection_menu/selection_menu_item_widget_test.dart
+++ /dev/null
@@ -1,49 +0,0 @@
-import 'package:appflowy_editor/src/render/selection_menu/selection_menu_item_widget.dart';
-import 'package:appflowy_editor/src/render/selection_menu/selection_menu_service.dart';
-import 'package:appflowy_editor/src/render/selection_menu/selection_menu_widget.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_test/flutter_test.dart';
-import '../../infra/test_editor.dart';
-
-void main() async {
- setUpAll(() {
- TestWidgetsFlutterBinding.ensureInitialized();
- });
-
- group('selection_menu_item_widget.dart', () {
- testWidgets('test selection menu item widget', (tester) async {
- bool flag = false;
- final editorState = tester.editor.editorState;
- final menuService = _TestSelectionMenuService();
- const icon = Icon(Icons.abc);
- final item = SelectionMenuItem(
- name: 'example',
- icon: icon,
- keywords: ['example A', 'example B'],
- handler: (editorState, menuService, context) {
- flag = true;
- },
- );
- final widget = SelectionMenuItemWidget(
- editorState: editorState,
- menuService: menuService,
- item: item,
- isSelected: true,
- );
- await tester.pumpWidget(MaterialApp(home: widget));
- await tester.tap(find.byType(SelectionMenuItemWidget));
- expect(flag, true);
- });
- });
-}
-
-class _TestSelectionMenuService implements SelectionMenuService {
- @override
- void dismiss() {}
-
- @override
- void show() {}
-
- @override
- Offset get topLeft => throw UnimplementedError();
-}
diff --git a/frontend/app_flowy/packages/appflowy_editor/test/render/selection_menu/selection_menu_widget_test.dart b/frontend/app_flowy/packages/appflowy_editor/test/render/selection_menu/selection_menu_widget_test.dart
index cc9a2fbd0b..6ac10d593a 100644
--- a/frontend/app_flowy/packages/appflowy_editor/test/render/selection_menu/selection_menu_widget_test.dart
+++ b/frontend/app_flowy/packages/appflowy_editor/test/render/selection_menu/selection_menu_widget_test.dart
@@ -1,5 +1,4 @@
import 'package:appflowy_editor/appflowy_editor.dart';
-import 'package:appflowy_editor/src/document/built_in_attribute_keys.dart';
import 'package:appflowy_editor/src/render/selection_menu/selection_menu_item_widget.dart';
import 'package:appflowy_editor/src/render/selection_menu/selection_menu_service.dart';
import 'package:appflowy_editor/src/render/selection_menu/selection_menu_widget.dart';