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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
test: fix flaky sort editor bloc test (#6520)
Richard Shiue66fd0c19dacc
diff --git a/frontend/appflowy_flutter/test/bloc_test/grid_test/sort/sort_editor_bloc_test.dart b/frontend/appflowy_flutter/test/bloc_test/grid_test/sort/sort_editor_bloc_test.dartindex 585a08c281..91cb81b0c2 100644--- a/frontend/appflowy_flutter/test/bloc_test/grid_test/sort/sort_editor_bloc_test.dart+++ b/frontend/appflowy_flutter/test/bloc_test/grid_test/sort/sort_editor_bloc_test.dart@@ -146,9 +146,9 @@ void main() {test('delete all sorts', () async {final selectOptionField = getFirstFieldByType(FieldType.SingleSelect);final checkboxField = getFirstFieldByType(FieldType.Checkbox);- sortBloc- ..add(SortEditorEvent.createSort(fieldId: selectOptionField.id))- ..add(SortEditorEvent.createSort(fieldId: checkboxField.id));+ sortBloc.add(SortEditorEvent.createSort(fieldId: selectOptionField.id));+ await gridResponseFuture();+ sortBloc.add(SortEditorEvent.createSort(fieldId: checkboxField.id));await gridResponseFuture();expect(sortBloc.state.sorts.length, 2);