Skip to content

TF-3034 Prevent duplicate draft warning #1274

TF-3034 Prevent duplicate draft warning

TF-3034 Prevent duplicate draft warning #1274

GitHub Actions / Flutter Tests - default failed Oct 2, 2024 in 1s

381 passed, 1 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
test-report-default.json 381✅ 1❌ 89s

Annotations

Check failure on line 551 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.compose: ► should update _savedEmailDraftHash when user click save draft button and SaveEmailAsDraf...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::_getAllIdentities: Fetch again identity !
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::_getAlwaysReadReceiptSetting:
[TwakeMail] MailAddress::validate: Address = to@linagora.com
[TwakeMail] MailAddress::validate: Address = to@linagora.com
[TwakeMail] _WebEditorState::initState:height: 552.0 | width: 752.0
[TwakeMail] _WebEditorState::initState:dropZoneWidth: 662.0 | dropZoneHeight: 502.0
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following MissingPluginException was thrown running a test (but after the test had completed):
MissingPluginException(No implementation found for method checkPermissionStatus on channel
flutter.baseflow.com/permissions/methods)

When the exception was thrown, this was the stack:
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
<asynchronous suspension>
#1      MethodChannelPermissionHandler.checkPermissionStatus (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:16:20)
<asynchronous suspension>
#2      ComposerController._checkContactPermission (package:tmail_ui_user/features/composer/presentation/composer_controller.dart:1095:30)
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════════════════════════

Check failure on line 622 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.compose: ► should update _savedEmailDraftHash when user click save draft button and UpdateEmailDraf...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::_getAllIdentities: Fetch again identity !
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::_getAlwaysReadReceiptSetting:
[TwakeMail] MailAddress::validate: Address = to@linagora.com
[TwakeMail] MailAddress::validate: Address = to@linagora.com
[TwakeMail] _WebEditorState::initState:height: 552.0 | width: 752.0
[TwakeMail] _WebEditorState::initState:dropZoneWidth: 662.0 | dropZoneHeight: 502.0
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following MissingPluginException was thrown running a test (but after the test had completed):
MissingPluginException(No implementation found for method checkPermissionStatus on channel
flutter.baseflow.com/permissions/methods)

When the exception was thrown, this was the stack:
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
<asynchronous suspension>
#1      MethodChannelPermissionHandler.checkPermissionStatus (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:16:20)
<asynchronous suspension>
#2      ComposerController._checkContactPermission (package:tmail_ui_user/features/composer/presentation/composer_controller.dart:1095:30)
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════════════════════════

Check failure on line 373 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.compose: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentities...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::_getAlwaysReadReceiptSetting:
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 407:31               main.<fn>.<fn>.<fn>.<fn>

Check failure on line 417 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.compose: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentities...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::_getAlwaysReadReceiptSetting:
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 447:31               main.<fn>.<fn>.<fn>.<fn>

Check failure on line 457 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.compose: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentities...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::_getAllIdentities: Fetch again identity !
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::_getAlwaysReadReceiptSetting:
[TwakeMail] ComposerController::handleSuccessViewState():Success = GetAllIdentitiesSuccess
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 494:31               main.<fn>.<fn>.<fn>.<fn>

Check failure on line 504 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.compose: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentities...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::_getAllIdentities: Fetch again identity !
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::_getAlwaysReadReceiptSetting:
[TwakeMail] ComposerController::handleSuccessViewState():Success = GetAllIdentitiesSuccess
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 541:31               main.<fn>.<fn>.<fn>.<fn>

Check failure on line 998 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.editDraft: ► should update _savedEmailDraftHash when user click save draft button and SaveEmailAsDr...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::_getAllIdentities: Fetch again identity !
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] MailAddress::validate: Address = to@linagora.com
[TwakeMail] MailAddress::validate: Address = to@linagora.com
[TwakeMail] MailAddress::validate: Address = cc@linagora.com
[TwakeMail] MailAddress::validate: Address = cc@linagora.com
[TwakeMail] MailAddress::validate: Address = bcc@linagora.com
[TwakeMail] MailAddress::validate: Address = bcc@linagora.com
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following MissingPluginException was thrown running a test (but after the test had completed):
MissingPluginException(No implementation found for method checkPermissionStatus on channel
flutter.baseflow.com/permissions/methods)

When the exception was thrown, this was the stack:
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
<asynchronous suspension>
#1      MethodChannelPermissionHandler.checkPermissionStatus (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:16:20)
<asynchronous suspension>
#2      ComposerController._checkContactPermission (package:tmail_ui_user/features/composer/presentation/composer_controller.dart:1095:30)
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════════════════════════

Check failure on line 780 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.editDraft: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentiti...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
Warning: At least one test in this suite creates an HttpClient. When running a test suite that uses
TestWidgetsFlutterBinding, all HTTP requests will return status code 400, and no network request
will actually be made. Any test expecting a real network connection and status code will fail.
To test code that needs an HttpClient, provide your own HttpClient implementation to the code under
test, so that your test can consistently provide a testable response to the code under test.
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 823:31               main.<fn>.<fn>.<fn>.<fn>

Check failure on line 833 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.editDraft: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentiti...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 875:31               main.<fn>.<fn>.<fn>.<fn>

Check failure on line 885 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.editDraft: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentiti...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::_getAllIdentities: Fetch again identity !
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::handleSuccessViewState():Success = GetAllIdentitiesSuccess
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 932:31               main.<fn>.<fn>.<fn>.<fn>

Check failure on line 942 in test/features/composer/presentation/composer_controller_test.dart

See this annotation in the file changed.

@github-actions github-actions / Flutter Tests - default

test/features/composer/presentation/composer_controller_test.dart ► ComposerController test: hash draft email test: email action type is EmailActionType.editDraft: ► should update _savedEmailDraftHash when _initIdentities is called and listFromIdentiti...

Failed test found in:
  test-report-default.json
Error:
  This test failed after it had already completed.
  Make sure to use a matching library which informs the test runner
  of pending async work.
Raw output
[TwakeMail] ComposerController::_getAllIdentities: Fetch again identity !
[TwakeMail] ComposerController::injectAutoCompleteBindings(): exception: "CacheExceptionThrower" not found. You need to call "Get.put(CacheExceptionThrower())" or "Get.lazyPut(()=>CacheExceptionThrower())"
[TwakeMail] ComposerController::handleSuccessViewState():Success = GetAllIdentitiesSuccess
package:flutter/src/services/platform_channel.dart 332:7                               MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async                                                                             _CustomZone.registerBinaryCallback
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 1095:30  ComposerController._checkContactPermission
===== asynchronous gap ===========================
dart:async                                                                             new Future.delayed
package:tmail_ui_user/features/composer/presentation/composer_controller.dart 247:14   ComposerController.onReady
test/features/composer/presentation/composer_controller_test.dart 988:31               main.<fn>.<fn>.<fn>.<fn>