Skip to content

Commit

Permalink
chore: Fixing test imports and formatting files. #3
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Sep 20, 2023
1 parent 721cf7b commit da7ef2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:ui';

import 'package:app/main.dart';
import 'package:file_picker/file_picker.dart';
Expand Down Expand Up @@ -201,7 +200,7 @@ class HomePageState extends State<HomePage> {
mediaPickSettingSelector: (context) {
return Future.value(MediaPickSettingE.Gallery);
},
)
),
],
);

Expand Down
14 changes: 6 additions & 8 deletions test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import 'package:cross_file/cross_file.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:visual_editor/visual-editor.dart';
import 'package:flutter_quill_extensions/embeds/toolbar/image_button.dart';
import 'package:flutter_quill/flutter_quill_test.dart';

import 'package:app/main.dart';
import 'package:mockito/annotations.dart';
Expand Down Expand Up @@ -74,8 +72,8 @@ void main() {
expect(find.text('Flutter Quill'), findsOneWidget);

// Enter 'hi' into Quill Editor.
await tester.tap(find.byType(QuillEditor));
await tester.quillEnterText(find.byType(QuillEditor), 'hi\n');
await tester.tap(find.byType(VisualEditor));
await tester.enterText(find.byType(VisualEditor), 'hi\n');
await tester.pumpAndSettle();
});

Expand All @@ -100,8 +98,8 @@ void main() {
expect(find.text('Flutter Quill'), findsOneWidget);

// Enter 'hi' into Quill Editor.
await tester.tap(find.byType(QuillEditor));
await tester.quillEnterText(find.byType(QuillEditor), 'hi\n');
await tester.tap(find.byType(VisualEditor));
await tester.enterText(find.byType(VisualEditor), 'hi\n');
await tester.pumpAndSettle();

final imageButton = find.byType(ImageButton);
Expand Down Expand Up @@ -129,8 +127,8 @@ void main() {
expect(find.text('Flutter Quill'), findsOneWidget);

// Enter 'hi' into Quill Editor.
await tester.tap(find.byType(QuillEditor));
await tester.quillEnterText(find.byType(QuillEditor), 'hi\n');
await tester.tap(find.byType(VisualEditor));
await tester.enterText(find.byType(VisualEditor), 'hi\n');
await tester.pumpAndSettle();
});
}

0 comments on commit da7ef2f

Please sign in to comment.