mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-25 09:12:13 +00:00

* fix: undo redo for the transforming block will raise an error * test: add golden for editing document * test: add undo redo test
37 lines
910 B
Dart
37 lines
910 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:integration_test/integration_test.dart';
|
|
|
|
import '../util/util.dart';
|
|
|
|
void main() {
|
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
group('cover image', () {
|
|
const location = 'cover_image';
|
|
|
|
setUp(() async {
|
|
await TestFolder.cleanTestLocation(location);
|
|
await TestFolder.setTestLocation(location);
|
|
});
|
|
|
|
tearDown(() async {
|
|
await TestFolder.cleanTestLocation(location);
|
|
});
|
|
|
|
tearDownAll(() async {
|
|
await TestFolder.cleanTestLocation(null);
|
|
});
|
|
|
|
testWidgets(
|
|
'hovering on cover image will display change and delete cover image buttons',
|
|
(tester) async {
|
|
await tester.initializeAppFlowy();
|
|
|
|
await tester.tapGoButton();
|
|
await tester.editor.hoverOnCoverPluginAddButton();
|
|
|
|
tester.expectToSeePluginAddCoverAndIconButton();
|
|
});
|
|
});
|
|
}
|