dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
1 year ago
|
# Flutter Quill Test
|
||
|
|
||
1 year ago
|
Test utilities for [flutter_quill](https://pub.dev/packages/flutter_quill)
|
||
|
which include methods to simplify interacting with the editor in test cases.
|
||
1 year ago
|
|
||
1 year ago
|
## Table of Contents
|
||
|
- [Flutter Quill Test](#flutter-quill-test)
|
||
|
- [Table of Contents](#table-of-contents)
|
||
|
- [Installation](#installation)
|
||
|
- [Testing](#testing)
|
||
|
- [Contributing](#contributing)
|
||
|
|
||
1 year ago
|
## Installation
|
||
|
|
||
|
Run the command in your project root folder:
|
||
|
```
|
||
|
dart pub add dev:flutter_quill_test
|
||
|
```
|
||
|
|
||
1 year ago
|
Example of how it will look like:
|
||
1 year ago
|
|
||
|
```yaml
|
||
|
dev_dependencies:
|
||
|
flutter_quill_test: any # Use latest Version
|
||
|
flutter_lints: any
|
||
|
flutter_test:
|
||
|
sdk: flutter
|
||
|
```
|
||
|
|
||
1 year ago
|
## Testing
|
||
|
To aid in testing applications using the editor an extension to the flutter `WidgetTester` is provided which includes methods to simplify interacting with the editor in test cases.
|
||
|
|
||
|
Import the test utilities in your test file:
|
||
|
|
||
|
```dart
|
||
1 year ago
|
import 'package:flutter_quill_test/flutter_quill_test.dart';
|
||
1 year ago
|
```
|
||
|
|
||
|
and then enter text using `quillEnterText`:
|
||
|
|
||
|
```dart
|
||
|
await tester.quillEnterText(find.byType(QuillEditor), 'test\n');
|
||
|
```
|
||
|
|
||
|
## Contributing
|
||
|
|
||
|
We welcome contributions!
|
||
|
|
||
1 year ago
|
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](../CONTRIBUTING.md) for more details.
|