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
fix: grid cell date time test (#6406)
Lucas1ffd653515ca
diff --git a/frontend/appflowy_flutter/integration_test/desktop/database/database_cell_test.dart b/frontend/appflowy_flutter/integration_test/desktop/database/database_cell_test.dartindex 28f50bf817..33ed0acf4f 100644--- a/frontend/appflowy_flutter/integration_test/desktop/database/database_cell_test.dart+++ b/frontend/appflowy_flutter/integration_test/desktop/database/database_cell_test.dart@@ -211,21 +211,21 @@ void main() {await tester.toggleIncludeTime();// Select a date- final today = DateTime.now();- await tester.selectDay(content: today.day);+ final now = DateTime.now();+ await tester.selectDay(content: now.day);await tester.dismissCellEditor();tester.assertCellContent(rowIndex: 0,fieldType: FieldType.DateTime,- content: DateFormat('MMM dd, y').format(today),+ content: DateFormat('MMM dd, y').format(now),);await tester.tapCellInGrid(rowIndex: 0, fieldType: fieldType);// Toggle include time- final now = DateTime.now();+ // When toggling include time, the time value is from the previous existing date time, not the current timeawait tester.toggleIncludeTime();await tester.dismissCellEditor();