Skip to content

Commit

Permalink
fix: integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Nov 15, 2024
1 parent 12b131d commit f16dcd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/android_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ jobs:
# https://github.com/ReactiveCircus/android-emulator-runner
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 32
api-level: 33
arch: x86_64
disk-size: 2048M
working-directory: frontend/appflowy_flutter
disable-animations: true
force-avd-creation: false
target: google_apis
script: flutter test integration_test/mobile/cloud/cloud_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ class _EditorTransactionServiceState extends State<EditorTransactionService> {
redoCommand.execute(widget.editorState);
} else if (type == EditorNotificationType.exitEditing &&
widget.editorState.selection != null) {
widget.editorState.selection = null;
// If the editor is disposed, we don't need to reset the selection.
if (!widget.editorState.isDisposed) {
widget.editorState.selection = null;
}
}
}

Expand Down

0 comments on commit f16dcd4

Please sign in to comment.